You can get a refresh token at:
https://studio.foursquare.com/tokens
Use Tokens
If you are using the REST API, you need to provide the access token in each request.
If you are using a language specific binding, authentication with a refresh token only needs to be done once
curl -X POST https://data-api.foursquare.com/v1/datasets/data?name=My+Dataset
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: text/csv'
--data-binary '@/path/to/my_dataset.csv'
Parameters
Parameter | Type | Description |
---|---|---|
refresh_token | string | Your refresh token retrieved from https://studio.foursquare.com/tokens. |
Authentication Errors
API calls that are unauthorized, do not include a token, include an expired or malformed token, etc. will return an appropriate error in the response.