Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

/api/users/:id/sessions

Invalidates the access token and user sessions specified by user ID.

Resource Information

Resource URL

https://service.belladati.com/api/users/:username/sessions

HTTP Method

DELETE

 

Request Parameters

Parameter

Detail

Example

usernameUsername of the userjohndoe

Sample Request / Response

Using curl:

Code Block
curl -X "DELETE" -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/johndoe/sessions

When the request has been executed successfully, the server replies with an HTTP status code of 200 and an empty body. 



Sv translation
languageja

/api/users/:id/sessions

ユーザーIDで指定されたアクセストークンとユーザーセッションを無効にします。

リソース情報


リクエストパラメーター

パラメーター

詳細

usernameユーザーのユーザー名johndoe

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

curl使用:

Code Block
curl -X "DELETE" -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/johndoe/sessions

リクエストが正常に実行されると、サーバーはHTTPステータスコード200と空の本文を返します。