Created
November 28, 2017 18:18
-
-
Save samflores/74b41e2acef951a1a205e6759ab87bbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> http post https://smartnexpoc.herokuapp.com/auth/sign_in [email protected] password=password | |
HTTP/1.1 200 OK | |
Access-Token: IDzSDVazKCkSMkoyy5qnKA | |
Cache-Control: max-age=0, private, must-revalidate | |
Client: DoXkvlRBluA9gk2smTvbxg | |
Connection: keep-alive | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 28 Nov 2017 18:13:42 GMT | |
Etag: W/"ec0df88a45df76267fffbcd7c65ad716" | |
Expiry: 1543428823 | |
Server: Cowboy | |
Token-Type: Bearer | |
Transfer-Encoding: chunked | |
Uid: [email protected] | |
Via: 1.1 vegur | |
X-Request-Id: 790be743-e9cd-4be5-ac1d-79d9385858cf | |
X-Runtime: 1.180219 | |
{ | |
"data": { | |
"email": "[email protected]", | |
"id": 2, | |
"image": null, | |
"name": "Murilo", | |
"nickname": "Murilov", | |
"provider": "email", | |
"uid": "[email protected]" | |
} | |
} | |
> export ACCESS_TOKEN='IDzSDVazKCkSMkoyy5qnKA' | |
> export CLIENT='DoXkvlRBluA9gk2smTvbxg' | |
> http POST https://smartnexpoc.herokuapp.com/executions uid:[email protected] client:$CLIENT access-token:$ACCESS_TOKEN device=3 command=4 | |
HTTP/1.1 202 Accepted | |
Access-Token: _Uy_B-e5mVmhABOcN6MDDQ | |
Cache-Control: no-cache | |
Client: DoXkvlRBluA9gk2smTvbxg | |
Connection: keep-alive | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 28 Nov 2017 18:17:08 GMT | |
Expiry: 1543429028 | |
Server: Cowboy | |
Token-Type: Bearer | |
Transfer-Encoding: chunked | |
Uid: [email protected] | |
Via: 1.1 vegur | |
X-Request-Id: 47c1ac96-53d0-4ec7-9aad-5c45826c5d16 | |
X-Runtime: 0.392390 | |
{ | |
"id": 811, | |
"status": "received" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment