[关闭]
@bergus 2016-01-16T04:59:34.000000Z 字数 1841 阅读 1442

plan_morning

plan_morning


https://developer.uber.com/dashboard/app/wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1

https://login.uber.com/oauth/authorize?scope=profile+history+history_lite&state=nafFNPGeRW8ND3sxBgCdJWezCmHp8mbx&redirect_uri=http%3A%2F%2Flocalhost%3A7000%2Fsubmit&response_type=code&client_id=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"

https://login.uber.com/oauth/authorize?scopes=profile%2Chistory&redirect_uri=http%3A%2F%2Flocalhost%3A7000%2Fsubmit&response_type=code&client_id=wVdgLDhHReP6zgTyBus0GqzwnGlXBfT1

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

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注