You are here: Photobucket API Help > Methods > Web User Login & Logout

Web User Login

Login Token Request

Get a login request token to use during web authentication.

User Login Required

No.

HTTP Method

POST

REST Path

/login/request

Parameters

None.

Request Example

POST http://api.photobucket.com/login/request

oauth_consumer_key=0000000&oauth_nonce=GApxBx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1207064434&oauth_signature=jXH3fqtAmGGcbajk269e5H%2FhxXg=

Response Example

oauth_token=req_47811741486bc734861ef20b2cd6f1ae1fbe33a0&oauth_token_secret=0oauth_token=req_47811001486bc034861ef20b2cd6f1ae1fbe33a0&oauth_token_secret=001gs1590a74c21b82280000c9c886b4ad4d7e5cfa&next_step=http%3A%2F%2Fwww.photobucket.com%2Fapilogin%2Flogin

Get Access Token

Get the end-user access token and token secret for the request token.

User Login Required

No, but this method gets signed with the request token and request token secret. See OAuth Section 6.

REST Path

/login/access

HTTP Method

POST

Parameters

None.

Request Example

POST http://api.photobucket.com/login/access

oauth_consumer_key=00000000&oauth_nonce=GOUFIE&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1207064755&oauth_token=req_1a8d7b9bb26f0f25c62691481558f 81448bac652&oauth_signature=2ggT37NAys3P6xZGoSDhp40twF0=

Response Example

oauth_token=00.00&oauth_token_secret=6c45a02b6e25fffad9168d24fb1ef40fa0126fbb&username=pbapi&subdomain=api123.photobucket.com&homeurl=http%3A%2F%2Fapis123.photobucket.com%2Falbums%2Fcc276%2Fpbapi%2

Login

Interactive user login that allows an API consumer to access the user's albums. This method is secure for the user.

Note: This method is meant for end users, not consumers. Consumer access to this method is strictly disallowed.

User Login Required

No. Requests to this method are not OAuth-signed.

REST Path

http://photobucket.com/apilogin/login

Parameters

Parameter Optional Description Variable
extra Y Extra information to send back to callback. String
oauth_token N Token string given by the login request method. String

Request Example

http://photobucket.com/apilogin/login?oauth_token=req_918b3db09d0754f7999fb093b98668f67f866abe

Response

This method redirects to the API to the callback URL as specified in API key sign-up. The parameters given back are:

Parameter Optional Description Variable
oauth_consumer_key N My consumer key to deauthorize. String
extra Y Extra information to send back to callback. String

 

Published 25-June-10. See developer.photobucket.com for additional resources.