Add link to Foursquare OAuth token tool in README

Thanks to @simonw for creating https://your-foursquare-oauth-token.glitch.me
as mentioned in https://github.com/dogsheep/swarm-to-sqlite/issues/4
This commit is contained in:
Phil Gyford
2019-09-04 18:26:36 +01:00
parent 1358b864ae
commit 12b92e9355

View File

@@ -39,6 +39,20 @@ To get the `AccessToken` for your Foursquare app, you will have to go through th
### 4. Get an access token
There are two ways to do this: (A) The quick way, using a third-party website or (B) the slow way, on the command line. Use (A) unless the website isn't working.
#### (A) The quick way
Go to https://your-foursquare-oauth-token.glitch.me and follow the link to log
in with Foursquare.
Accept the permissions, and then copy the long code, which is your Access
Token, into your `config.ini`.
That's it. [Thanks to Simon Willison for that.](https://github.com/dogsheep/swarm-to-sqlite/issues/4)
#### (B) The slow way
On https://foursquare.com/developers/apps, in your app, set the Redirect URI to `http://localhost:8000/`
In a terminal window, open a python shell:
@@ -76,6 +90,7 @@ This will output another long code, which is your Access Token.
Enter this in your `config.ini`.
## Run the script
You're ready to go: