Last active
November 28, 2017 20:05
-
-
Save samflores/8cad2bfac6db8a2ae8fd894999318850 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=123123 | |
HTTP/1.1 200 OK | |
Access-Token: LnTGqAFRdSnHt9hZa5xlfg | |
Cache-Control: max-age=0, private, must-revalidate | |
Client: rFVBonJgvKLh7Vm0IaE0qg | |
Connection: keep-alive | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 28 Nov 2017 20:01:45 GMT | |
Etag: W/"ef20f595211824df6fdc677c91cf6b21" | |
Expiry: 1543435306 | |
Server: Cowboy | |
Token-Type: Bearer | |
Transfer-Encoding: chunked | |
Uid: [email protected] | |
Via: 1.1 vegur | |
X-Request-Id: 506ba484-d9f3-480a-87aa-f9e9edc4bbb7 | |
X-Runtime: 0.378816 | |
{ | |
"data": { | |
"email": "[email protected]", | |
"id": 1, | |
"image": null, | |
"name": "Samuel Flores", | |
"nickname": null, | |
"provider": "email", | |
"uid": "[email protected]" | |
} | |
} | |
> export ACCESS_TOKEN='LnTGqAFRdSnHt9hZa5xlfg' | |
> export CLIENT='rFVBonJgvKLh7Vm0IaE0qg' | |
> http GET https://smartnexpoc.herokuapp.com/initial_state uid:[email protected] client:$CLIENT access-token:$ACCESS_TOKEN | |
HTTP/1.1 200 OK | |
Access-Token: 4zUVgjUosqYQuAE3Y79zgg | |
Cache-Control: max-age=0, private, must-revalidate | |
Client: rFVBonJgvKLh7Vm0IaE0qg | |
Connection: keep-alive | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 28 Nov 2017 20:03:11 GMT | |
Etag: W/"4ffb30909221a1ca103e752b05e43efc" | |
Expiry: 1543435391 | |
Server: Cowboy | |
Token-Type: Bearer | |
Transfer-Encoding: chunked | |
Uid: [email protected] | |
Via: 1.1 vegur | |
X-Request-Id: 96303a6b-c466-4e40-9683-31124e60a793 | |
X-Runtime: 0.382156 | |
{ | |
"houses": [], | |
"user": { | |
"email": "[email protected]", | |
"name": "Samuel Flores", | |
"nickname": null | |
} | |
} | |
> export ACCESS_TOKEN='4zUVgjUosqYQuAE3Y79zgg' | |
> http GET https://smartnexpoc.herokuapp.com/initial_state uid:[email protected] client:$CLIENT access-token:$ACCESS_TOKEN | |
HTTP/1.1 200 OK | |
Access-Token: GQx0TJlr6jdWrstCuJdjoA | |
Cache-Control: max-age=0, private, must-revalidate | |
Client: rFVBonJgvKLh7Vm0IaE0qg | |
Connection: keep-alive | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 28 Nov 2017 20:04:54 GMT | |
Etag: W/"4ffb30909221a1ca103e752b05e43efc" | |
Expiry: 1543435495 | |
Server: Cowboy | |
Token-Type: Bearer | |
Transfer-Encoding: chunked | |
Uid: [email protected] | |
Via: 1.1 vegur | |
X-Request-Id: b40d6541-0fda-42f8-a58a-88b81130b7df | |
X-Runtime: 0.176745 | |
{ | |
"houses": [], | |
"user": { | |
"email": "[email protected]", | |
"name": "Samuel Flores", | |
"nickname": null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment