This method can be enabled per your commercial agreement with Photobucket
Use with API consumers that do not have interactive web sessions available, such as consumer electronic devices, mobile devices, or proxy services. User information is potentially available to the API consumer with this method.
Note: This method requires a request for special access (developer.photobucket.com) and an IP address.
No. See Consumer Authentication for details.
POST
/login/direct/[identifier]
See Object Identifiers for an [identifier] explanation.
Important! The REST path logindirect is deprecated.
| Parameter | Optional | Description | Variable |
|---|---|---|---|
| identifier | N | Username, email address, or ID to log in. | String |
| password | N | User password. | String |
| hashed | Y | Signals that the password field is an md5 of the actual (recommended to be true!) | Boolean |
The request logs user "pbapi" into the Photobucket service.
POST http://api.photobucket.com/login/direct/pbapi
The successful response provides a userauth that you can use in successive requests:
<response>
<status>OK</status>
<content>
<oauth_token>28.1</oauth_token>
<oauth_token_secret>f768b5a3f56f9ba81bfe982f242ef6733baddb0a</oauth_token_secrett>
<subdomain>api123.photobucket.com</subdomain>
</content>
<format>xml</format>
<method>POST</method>
<timestamp>1202841085</timestamp>
</response>
For a full list of possible errors, see Error Codes.
| Published 2-September-09. See developer.photobucket.com for additional resources. |