phamngsinh / goauth2

Automatically exported from code.google.com/p/goauth2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Making the example more general #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Attached is a version of the example program (oauthreq.go) that adds -api and 
-req flags so that you can use it with any specified API, not just a hard-coded 
one.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Here's an example using the calendar API:

./example -id ${ID}  -secret ${SECRET}  -token=${TOKEN} \
 -api=https://www.googleapis.com/auth/calendar \
 -req=https://www.googleapis.com/calendar/v3/users/me/calendarList/

Original issue reported on code.google.com by ajstarks on 9 Aug 2012 at 1:59

Attachments:

GoogleCodeExporter commented 8 years ago
fixed in cf63aeb1b476

Original comment by willnorris@google.com on 7 Jun 2013 at 3:44