Skip to content

A client for accessing the Untappd API in a chrome extension with angular

Notifications You must be signed in to change notification settings

infomofo/angular-chrome-untappd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-chrome-untappd

A client for untappd's api using angular for use in a chrome extension or application. You must have a registered api key with untappd.com.

This will provide the ability to authenticate using untappd's oauth api, and the ability to retrieve

Getting started with Untappd API

  1. You need to get yourself an Untappd ClientID and ClientSecret. To do so, go complete the Untappd API Key Form
  2. Create a chrome extension
  3. Find your chrome extensions - for more details view the google documentation.

Instructions

[Optional] Install the module using bower

Install using bower install

bower install infomofo/angular-chrome-untappd

Add the following script import

    <script src="bower_components/angular-chrome-untappd/angular-chrome-untappd.js"></script>

Import the untappd client module

angular.module('myapp',['UntappdClient']);

Add your config with your app id and password to your angular constants

app.constant("UNTAPPD_CONFIG",{
  CLIENT_ID: "INSERT YOUR UNTAPPD CLIENT ID HERE"
});

Optionally, you can also override

    BASE_URL : 'https://untappd.com',
    API_BASE_URL : 'https://api.untappd.com/v4'

Make API Calls

The following api calls are currently supported by the untappd client.

  • UntappdClient.authenticate - Returns a Promise of the authentication token for the specified client id with the given extension id
  • UntappdClient.setToken - If you already have a token, you can set it here
  • UntappdClient.logOut
  • UntappdClient.isLoggedIn
  • UntappdClient.isAuthenticating
  • UntappdClient.getLoggedInUserObject
  • UntappdClient.getUser
  • UntappdClient.getFriends

About

A client for accessing the Untappd API in a chrome extension with angular

Resources

Stars

Watchers

Forks

Packages

No packages published