user_data2 input from Mios?

How do I get user_data2 input from Mios? I used the following link, but with correct user, password, and serial:
https://fwd1.mios.com/user/password/3480/data_request?id=user_data2&output_format=json

What I got was invalid username and password even though it was correct. Am I missing something? Where do I put the serial number in the link? Do I need to register my app first with Mios first?

Thanks for your time.

With findvera.com, I was previously able to get the user data by :
https://ra1.findvera.com/username/password/49451/data_request?id=user_data&output_format=json

It looks like Mios is a lot more involved. From the wiki at:
http://wiki.micasaverde.com/index.php/Luup_Secure_Plugins

…it gives the following URL as an example:
https://[fwd_server]/username/password/serial_number/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreateDevice&deviceType=anytype&internalID=ACME_PHONE_CO_2135551212&Description=phoneapp&PluginNum=144&Reload=1&NoDupId=1&AesKey=abc123&username=john&password=johnspassword

Questions I have are:

  1. Where does the port number go?
  2. Is the AesKey required?
  3. I don’t have a Mios plugin number since I’m working on a phone app. Do I use the plugin ID of the smartphone web interface?