@bergus
2016-01-16T12:59:34.000000Z
字数 1841
阅读 1505
plan_morning
https://developer.uber.com/dashboard/app/wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1
client Id
wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1
client secret
P7MTdtXK13opLb_OkCmG38mGK11-3nIBcHBDscqo
Server token
S3FGHZNcmccc0o80aJWJYrDNZqaQ55RmnR_3kOMD
http://localhost:7000/submit
export UBER_CLIENT_ID="wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1"
export UBER_CLIENT_SECRET="P7MTdtXK13opLb_OkCmG38mGK11-3nIBcHBDscqo"
http://localhost:7000/submit?code=F7lbqfP0glY57jBqroWKqrE4NlN4VC
https://developer.uber.com/dashboard/app/wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1
Congratulations! you have successfully authenticated and your token is: is1f9TQmMIcoE4gGMirojUx63SXDoN
{u'last_authenticated': 1452881151, u'access_token': u'wOZ9etTkoiH3pAclqoF4U83Vxme3dw', u'expires_in': 2592000, u'token_type': u'Bearer', u'scope': u'profile history', u'refresh_token': u'YLywdJDsZGKawBV4gcq98QVVLtE5Er'}
https://api.uber.com/v1.1/history?limit=5&offset=0
{'content-length': '75', 'x-xss-protection': '1; mode=block', 'strict-transport-security': 'max-age=0', 'server': 'nginx', 'connection': 'keep-alive', 'date': 'Fri, 15 Jan 2016 19:06:20 GMT', 'x-uber-app': 'uberex-nonsandbox', 'content-type': 'application/json'}
{'Content-Type': 'application/json', 'Authorization': u'bearer 6kRvT5VPYjagfynXnIRuJ1m0tEwCqV'}
http://localhost:7000/submit?code=fjYLJQG4XURvfT4BRUxBmK0OErwZ0J
{'Content-Type': 'application/json', 'Authorization': u'bearer Pw4wlRb9S0LB9WKKW9ZKTsaPatVwaN'}
https://api.uber.com/v1/products?latitude=37.781955&longitude=-122.402367