Closed
Bug 1013456
Opened 12 years ago
Closed 12 years ago
Improve documentation on how to access api (authorization)
Categories
(Marketplace Graveyard :: API, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: glind, Assigned: andy+bugzilla)
Details
(Whiteboard: [qa-])
Problem: Existing docs [1] have strong assumptions about people understand all the steps to get to OAUTH token.
Use case: for data scientists, this stuff isn't totally obvious!
Suggested fix: new section of doc with "Steps for access", written a bit more explicitly, maybe with screenshots, and links to python / curl examples.
[1] http://firefox-marketplace-api.readthedocs.org/en/latest/index.html
https://github.com/mozilla/zamboni/blob/master/docs/api/topics/authentication.rst
======
from #marketplace
10:40 < chuck> to get a token.
10:41 < andym> gregglind: which api's do you want to play with?
10:41 -!- ilana [Adium@moz-509EC4E3.sfba.hfc.comcastbusiness.net] has joined #marketplace
10:41 -!- billmaggs [Adium@moz-62518563.mtv2.mozilla.com] has quit [Quit: Leaving.]
10:41 -!- billmaggs [Adium@moz-62518563.mtv2.mozilla.com] has joined #marketplace
10:42 < gregglind> ilana -> andym> gregglind: which api's do you want to play with?
10:42 < gregglind> ilana, is the consumer here :) She is working on the AARRR dashboard.
10:42 < andym> whats AARRR ?
10:42 < ilana> andym: we're hoping for aggregate stats, such as in https://marketplace.firefox.com/api/v1/stats/global/apps_installed/
10:43 < ilana> andym: it's the way of measuing the success of a product - http://500hats.typepad.com/500blogs/2007/09/startup-metrics.html
10:43 < andym> those require OAuth access
10:43 < gregglind> we are data scientists, not FANCY APP DEVS, so 'get a token' is a little mysterious in practice.
10:43 < andym> are you using python as a client?
10:43 < andym> php?
10:43 < ilana> andym, i'll use whatever you want :)
10:43 < gregglind> anything is fine. curl, python.
10:43 < andym> so you need to make an account on the server and then make sure has given you the correct permissions
10:43 < gregglind> do you have a strong suggestion?
10:44 < andym> then grab the oauth tokens
10:44 < chuck> andym: stats also require a permission, right?
10:44 < ilana> andym: "make an account on the server" - which server?
10:44 < ashort> andym: oh did i not r+ that already, woops :)
10:44 < andym> ilana: the server you wish to grab data on, so go log into the marketplace
10:44 < ilana> we'll also eventually need access to $$ stats, but that is a higher mountain for another day :)
10:44 < ilana> logged on
10:44 < gregglind> (this is all the parts that seem missing from: https://github.com/mozilla/zamboni/blob/master/docs/api/topics/authentication.rst) :)
10:45 -!- hoosteeno is now known as hoosteeno|out
10:45 < andym> then go to https://marketplace.firefox.com/developers/api
10:45 < andym> then go to https://marketplace.firefox.com/developers/api
10:45 < andym> application name and redirect uri don't mean anything i presume in this case, you can enter junk there as long as it validates
0:46 < gregglind> (so, everyone who wants stats here should be acting as though they are app devs? that's the access model?)
10:46 < andym> so here's some examples of using the API using OAuth
10:46 < andym> https://github.com/andymckay/test-manifest
10:47 < andym> https://github.com/mozilla/Marketplace.Python/
10:47 < gregglind> andym, you want this re-summarized as a pull request? GH bug?
10:47 < ilana> andym: i'm not exactly sure what i'm supposed to be looking at here
10:47 < andym> gregglind: the only access models we've built are you either an app developer and get access to your stats, or you have been approved to access all the
stats
10:47 < gregglind> bugzilla bug?
10:47 < ilana> https://github.com/mozilla/Marketplace.Python/blob/master/setup.py ?
[10:48] [gregglind(+ixz)] [73:MOZ/#marketplace(+nt)]
10:48 < andym> gregglind: bugzilla bug, pull request for the docs as they make sense to you
10:48 < andym> ilana: https://github.com/mozilla/Marketplace.Python/tree/master/example
10:49 < ilana> andym: fantastic- that's so much! I still don't know where the consumer_key is coming from, though
10:49 < ilana> is that what i generated from the previous form?
10:49 < andym> yes
10:49 < ilana> ok
10:50 < ilana> i still don't know what a redirect uri is =/
10:50 < andym> its designed for people who are implementing oauth in an api
10:50 < andym> for use in a website
10:50 < ilana> andym: sure. is there a dummy variable i can put there?
10:50 < andym> i'm presuming you are aren't doing that, so you can answer anything
10:50 < andym> http://whatever.you.want/
10:51 < ilana> andym: thanks :D
10:51 < ilana> andym: this was incredibly helpful; thank you!
| Assignee | ||
Updated•12 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 1•12 years ago
|
||
https://gist.github.com/andymckay/f9a04d1830c52de84f90 has an example extending the existing client.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → amckay
| Assignee | ||
Comment 2•12 years ago
|
||
I think https://github.com/mozilla/zamboni/pull/2346 improved things a lot, any suggestions or improvements welcome.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 3•12 years ago
|
||
I am not sure how to verify this one. If you have any suggestions please help me or mark it as [qa-]
Flags: needinfo?(amckay)
| Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(amckay)
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•