|
|
goauth2: make the example more general
This version:
1) is more general, you may specify the api and request
2) uses token caching, making it a more comprehensive example, adding -cache and -cachefile flags
3) tested on Mac OS 10.8, Linux/ARM (Raspberry Pi), and Windows XP.
The steps have changed:
$ oauthreq -id $ID -secret $SECRET # get the URL to authorize and obtain the code
$ oauthreq -id $ID -secret $SECRET -code ..... # use the code, caching the token
$ oauthreq -cache # make the request (which of course can be repeated)
this file should replace the obsolete buzz.go
|