auth.invalidateToken

This method will invalidate your current token.

Request Parameters

(none)

Response Parameters

successboolean
Returns true if your token was invalidated successfully.

Code Examples

JSON

{"method":"auth.invalidateToken","params":{}, "id":0}

{"id":0,"result":{"success":true}}

Java

//This is how you had logged in/created token
SaploClient client = new SaploClient("YOUR_API_KEY", "YOUR_SECRET_KEY");

//In order to invalidate your token, 
//you just need to shut down the SaploClient instance
client.shutdown();

cURL

curl -d '{"method":"auth.invalidateToken","params":{}, "id":0}' 'https://api.saplo.com/rpc/json?access_token=AT7178779339720628266'

{"id":0,"result":{"success":true}}