Logs

Use logs to update the authentication status of a user.

Request

Method:PUT
Path:/v1/logs
Content-Type:application/x-www-form-urlencoded
Accept Types:application/json

Body

Form URL Encoded String with the following control names:

action:Authenticate or Revoke
status:true or false
auth_request:Unique ID of the authentication request
app_key:Your Service key as specified in the dashboard
secret_key:Base64 encoded secret key.
signature:Base64 encoded RSA Signature of the Secret Key before being Base64 encoded for the secret_key value.

Example

PUT /v1/logs HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Content-Length: 855

action=Authenticate&status=true&auth_request=4yjuyyg59cqf2s890uhhhx3vmtgv115a&app_key=9999999999&secret_key=qGp%2BBP88k4Sh0CbD8L7ERsu4gKNOnCAt0IB3vB0EoWy44jJiZo5nGS6sTR2VSxJ00l7zRvOIRKYi8pgWqurLEx%2B3W0s7xOFvjJeonuomixDc7Y5CMx5fCNkM6i1KCM%2FhDNpIp93uSCYCYvzuo6Gw6cJx0peG6UUyV%2B6%2Bvn%2F36bLq8fKn6WfKrywzTbBTh52ckvk2kiZiixIiWSyIDrkFDYrW3bwXJsgUrbzkC4vNLDaVGdN8JZYmerJ5fNFiEOUXuvt6mhHFgWfCRljgr3AZTN%2BsmOfNyYCBWU4WPjENyZAUXPIURW5FqqSfyJBnf1Fcf%2FxA%2FQRwiEISVJrWi3scfQ%3D%3D&signature=rk1mJeZ4GeqYZmpCZtZCW%2FD1qR5I69WxOeiLW5gELgSC5sFrsSzhxFdn%2BhkQvHWKWZr6gBAvmdDA63HFLdC9OHD9WxWjgClSUygxO%2F04RUFLS1mKaEfyf9DW8gLl7%2Fdp5wuvrIqZ7DJxfLWOQOZKY0L6gopZ6dYF8szfVs%2B50z%2F3xcl24KQZ1yz13YKB6S2ud3nJsifnp0%2FpqVqB%2BM56Tj5sCqFtel1kJmdY5ayVYBvC5SkzKdqAePcYKxDJm9KSM1mjuXKZ4wD%2BC04kq7qZx2XPGQHC5xf6pmLlZgYwCuk%2BynyWDDjxXAiVk5H1HZYKOmNbWJEQPk%2FIzfTazESFsg%3D%3D

Response

Status:200 OK
Content-Type:application/json

Body

JSON string with the following attributes:

message:string Response message

Example

HTTP/1.1 200 OK
Server: nginx
Date: Sun, 10 Nov 2013 03:56:22 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 35
Connection: keep-alive
Strict-Transport-Security: max-age=31536000; includeSubdomains

{"message": "Successfully updated"}

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×