method-users-register
Last edited: October 29th, 2009 by Colin DevroeCreates a Viddler account. *Restricted to only qualified API keys.
Note: ALL arguments are required.
Note: This method supports secure transactions using SSL. Simply change the end-point URL to https://api.viddler.com/rest/v1/
Authentication
This method does not require user authentication.
Arguments
- method
- Should be set to “Viddler.users.register”
- api_key
- Assigned Viddler API Key
- user
- The chosen Viddler user name.
- The email address of the user.
- fname
- The user’s first name.
- lname
- The user’s last name.
- password
- The user’s password with Viddler.
- question
- The text of the user’s secret question.
- answer
- The text of the answer to the secret question.
- lang
- The language of the user for the account.
- termsaccepted
- “1” indicates the user has accepted Viddler’s terms and conditions.
- company (optional)
- The user’s company affiliation.
Example Call
http://api.viddler.com/rest/v1/?method=viddler.users.register&api_key=api_key&user=user&email=user@host.com&fname=John&lname=Doe&password=mypass&question=Where+were+you+born%3f&answer=New%20Jersey&lang=EN&termsaccepted=1&company=partner
Example Response
<?xml version="1.0" encoding="UTF-8"?> <user> <username>user</username> </user>
Error Codes
| Error # | Description |
|---|---|
| 104 | Terms of Service not accepted by user. |
| 105 | Username already in use. |
| 106 | Email address already in use. |