For authenticating the user and retrieving an access token you need to construct a URL with your client app's details and direct your user to that URL. After they authenticate successfully, they will be redirected back to your site and the access token will be in the URL. You have probably seen this already, but in case you haven't, I'm referring to
Method 1 in our authentication docs.
Once you have the access token, you'll need to make ajax calls to our API based on our documentation. What we do for parts of
leaguevine.com is we extend jQuery's ajax call a bit in order to be able to pass in arbitrary API parameters in addition to the resource name.
Here's the script we use to do this. It expects that jQuery is imported and it has access to a variable called 'access_token'. This then allows us to make calls such as this: