Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 872 Bytes

DELETE_users.md

File metadata and controls

43 lines (28 loc) · 872 Bytes

Users Resources

DELETE users

Description

Delete the logged in user.

Requires authentication

  • A valid access token must be provided in access_token parameter.

The access_token should be sent using an HTTP header like so:

 Authorization: Bearer access_token

An example call with CURL:

 curl --header "Authorization: Bearer jLJeOz8aEIsKtGSdXsqTDGxmtEduUGkZTVJBo3We" https://api.teen-quotes.com/v1/users

Parameters

None

Example request:

curl -X DELETE --header "Authorization: Bearer jLJeOz8aEIsKtGSdXsqTDGxmtEduUGkZTVJBo3We" https://api.teen-quotes.com/v1/users

Return format

A JSON object containing keys status and success.

Errors

No known error.

Example

Request

DELETE https://api.teen-quotes.com/v1/users

Success

{
  "status":"user_deleted",
  "success":"The user has been deleted."
}