DELETE users
Delete the logged in user.
- 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
None
Example request:
curl -X DELETE --header "Authorization: Bearer jLJeOz8aEIsKtGSdXsqTDGxmtEduUGkZTVJBo3We" https://api.teen-quotes.com/v1/users
A JSON object containing keys status
and success
.
No known error.
Request
DELETE https://api.teen-quotes.com/v1/users
{
"status":"user_deleted",
"success":"The user has been deleted."
}