Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
OAuth Documentation Improvements (Suggestion)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bramus!  
View profile  
 More options Aug 17 2010, 6:36 am
From: "Bramus!" <bra...@bram.us>
Date: Tue, 17 Aug 2010 03:36:13 -0700 (PDT)
Local: Tues, Aug 17 2010 6:36 am
Subject: OAuth Documentation Improvements (Suggestion)
Whilst the OAuth Documentation (http://gowalla.com/api/docs/oauth) is
very clear, there were still some uncertainties I had before I started
coding. Although everything was answered whilst developing my app, I
guess it'd be better to make some improvements to the current docs in
order to have it all crystal clear.

In the section "How to get an access token" it states "an access token
will be issued and returned in the response, along with an expiry
timestamp and a refresh token for retrieving a new token once your
access token expires".

What's missing is that the username also is returned in this response.
Above that, it's not clear what exactly the mentioned "timestamp" is.
Before diving into the code, I expected this to be full timestamp to a
date in the future (viz. today + 2 weeks). Turns out the response was
"2 weeks", which makes it more of a "validity period, expressed as a
timestamp"

Additionally this could be expanded with an example, both in case of a
successful response:
{"username":"bramus","refresh_token":"xyz","access_token":"yzx","scope":"re ad","expires_in":
1209599}

as one with an error:
{"detail":"Invalid authorization code or client
credentials.","error":"incorrect_client_credentials"}

Also, it'd be useful to mention the length of the tokens (32
characters), so that developers can craft their databases to it.

Same goes for the section "Refreshing an access token", where a
response would be useful:
{"username":"bramus","access_token":"zyx","refresh_token":"xzy","expires_in ":
1209599}

{"detail":"Invalid authorization code or client
credentials.","error":"incorrect_client_credentials"}

That section also states that an "expiry date" is returned. Would be
better to use the wording as used in "How to get an access token"

Regards,
Bram.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Keys  
View profile  
 More options Aug 17 2010, 12:15 pm
From: Adam Keys <adamkk...@gmail.com>
Date: Tue, 17 Aug 2010 11:15:23 -0500
Local: Tues, Aug 17 2010 12:15 pm
Subject: Re: OAuth Documentation Improvements (Suggestion)
On Aug 17, 2010, at 5:36 AM, Bramus! wrote:

> What's missing is that the username also is returned in this response.
> Above that, it's not clear what exactly the mentioned "timestamp" is.
> Before diving into the code, I expected this to be full timestamp to a
> date in the future (viz. today + 2 weeks). Turns out the response was
> "2 weeks", which makes it more of a "validity period, expressed as a
> timestamp"

Whups! That little detail escaped my testing. I'll fix it to return a proper seconds-since-the-epoch timestamp.

Thanks for the excellent and constructive suggestions! I'll update the docs soon.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »