BellaDati Technical Documentation : POST Create Access Token

POST /users/{username}/accessToken

Creates an access token (oauth_token and oauth_token_secret) for user specified by username.

Resource Information

Parameters

Parameters

Detail

validity
(form paramter)

If set, specifies the validity (in seconds) of issued token.

domainId
(form parameter)

Specifies the domain for which the access should be granted. This parameter is applicable for multi-domain deployments only.

Sample Request / Response

UsingĀ curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/users/username1/accessToken

Response in format oauth_token;oauth_token_secret:

08evn5ieuz84;nd7an9eba41c