Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

POST /users/{username}/accessToken

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

Note

This resource is available only for Global admin or Domain admin.

Resource Information

Request Parameters

Parameters

Detail

Example

username
(path parameter)

Username of the user the access token is created for.myUsername

validity
(form parameter)

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

30

domain_id
(form parameter)

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

123

Sample Request / Response

Using curl:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "validity=30" -d "domain_id=123" https://service.belladati.com/api/users/myUsername/accessToken

Response in format oauth_token;oauth_token_secret:

Code Block
javascript
javascript
08evn5ieuz84;nd7an9eba41c


Sv translation
languageja

POST /users/{username}/accessToken

ユーザ名で指定されたユーザーのアクセストークン(oauth_token và oauth_token_secret) を作成します。

Note

このリソースは、グローバル管理者またはドメイン管理者のために利用可能です。

リソース情報

リクエストパラメーター

パラメーター

詳細

username
(パスパラメータ)

リクエストが作成されたユーザーのユーザー名。myUsername

validity
(パラメータフォーム)

設定した場合、発行されたトークンの(秒)有効性を指定します。

30

domain_id
(form parameter)

(パラメータフォーム)

アクセスが許可されるべき対象のドメインを指定します。このパラメータは、マルチドメインの展開にのみ適用されます。

123

サンプルリクエスト/レスポンス

curl使用:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "validity=30" -d "domain_id=123" https://service.belladati.com/api/users/myUsername/accessToken

oauth_token;oauth_token_secretフォーマットでのレスポンス

Code Block
javascript
javascript
08evn5ieuz84;nd7an9eba41c