Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Foursquare has different types of API calls: calls made in a <strong>user context</strong> (which require and access token) or calls made in a <strong>userless context</strong> (which do not require an access token). The foursquare API docs make it pretty clear if you need to call a given endpoint with an access token (<strong>Requires acting user = Yes</strong>) or if you can get away with calling it in a userless context.</p> <p>If your application doesn't require a user to log in to foursquare, and you need to get venue information, many of the venue API endpoints may be called in userless context.</p> <p>If you <strong>do</strong> need to authenticate a foursquare user in your application, you do this by calling foursquare's <strong>authenticate</strong> endpoint. <strong>This is a two-step process,</strong> described here: <a href="https://developer.foursquare.com/overview/auth" rel="nofollow">https://developer.foursquare.com/overview/auth</a></p> <p>First, you call the authenticate endpoint, passing in your client Id and client secret; foursquare handles authenticating your user (or not) and sends you back an auth code. Next, you request an access token, using your client Id, client secret, and the auth code you just got. Foursquare then hands you back an access token. The access token is specific to your app and this user.</p> <p>Just to be clear: <strong>userless context</strong> requires that you include your client Id and client secret in the call. <strong>user context</strong> requires you include the access token you received from the authentication you've already done. (If you are including an access token, you don't need to include the client Id and client secret.)</p> <p>For example, here's a call to the venue search endpoint in userless context. Note that there's no access token required.</p> <pre><code>https://api.foursquare.com/v2/venues/search?ll=40.7,-74&amp;client_id=CLIENT_ID&amp;client_secret=CLIENT_SECRET&amp;v=YYYYMMDD </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload