Modifications

Sauter à la navigation Sauter à la recherche
447 octets ajoutés ,  7 janvier 2015 à 07:17
Ligne 102 : Ligne 102 :  
]</nowiki>
 
]</nowiki>
   −
{{traduction}}
+
=== Effacer un access_token ===
 +
If you have a bunch of unused tokens and want to clean up, you can delete tokens.
 +
 
 +
DELETE /v1/access_tokens/:token
 +
 
 +
Just as for listing them, send your username and password in an HTTP Basic Auth header.
 +
 
 +
<nowiki># Using curl in your terminal
 +
curl https://api.spark.io/v1/access_tokens/b5b901e8760164e134199bc2c3dd1d228acf2d98 \
 +
    -u joe@example.com:SuperSecret -X DELETE
 +
 
 +
# Example JSON response
 +
{
 +
    "ok": true
 +
}</nowiki>
    
{{Spark.IO-Could-API-TRAILER}}
 
{{Spark.IO-Could-API-TRAILER}}
29 918

modifications

Menu de navigation