import foauth.providers


class Runkeeper(foauth.providers.OAuth2):
    # General info about the provider
    provider_url = 'http://runkeeper.com/'
    docs_url = 'http://developer.runkeeper.com/healthgraph/overview'
    category = 'Fitness'

    # URLs to interact with the API
    authorize_url = 'https://runkeeper.com/apps/authorize'
    access_token_url = 'https://runkeeper.com/apps/token'
    api_domain = 'api.runkeeper.com'

    available_permissions = [
        (None, 'access your health and fitness data'),
    ]

    def get_user_id(self, key):
        r = self.api(key, self.api_domains[0], u'/user')
        return unicode(r.json()[u'userID'])

873e180c37e1ecca35d9cd38818a8d803846b49f
<mask token>


class Runkeeper(foauth.providers.OAuth2):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Runkeeper(foauth.providers.OAuth2):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def get_user_id(self, key):
        r = self.api(key, self.api_domains[0], u'/user')
        return unicode(r.json()[u'userID'])

<mask token>


class Runkeeper(foauth.providers.OAuth2):
    provider_url = 'http://runkeeper.com/'
    docs_url = 'http://developer.runkeeper.com/healthgraph/overview'
    category = 'Fitness'
    authorize_url = 'https://runkeeper.com/apps/authorize'
    access_token_url = 'https://runkeeper.com/apps/token'
    api_domain = 'api.runkeeper.com'
    available_permissions = [(None, 'access your health and fitness data')]

    def get_user_id(self, key):
        r = self.api(key, self.api_domains[0], u'/user')
        return unicode(r.json()[u'userID'])

import foauth.providers


class Runkeeper(foauth.providers.OAuth2):
    provider_url = 'http://runkeeper.com/'
    docs_url = 'http://developer.runkeeper.com/healthgraph/overview'
    category = 'Fitness'
    authorize_url = 'https://runkeeper.com/apps/authorize'
    access_token_url = 'https://runkeeper.com/apps/token'
    api_domain = 'api.runkeeper.com'
    available_permissions = [(None, 'access your health and fitness data')]

    def get_user_id(self, key):
        r = self.api(key, self.api_domains[0], u'/user')
        return unicode(r.json()[u'userID'])

import foauth.providers


class Runkeeper(foauth.providers.OAuth2):
    # General info about the provider
    provider_url = 'http://runkeeper.com/'
    docs_url = 'http://developer.runkeeper.com/healthgraph/overview'
    category = 'Fitness'

    # URLs to interact with the API
    authorize_url = 'https://runkeeper.com/apps/authorize'
    access_token_url = 'https://runkeeper.com/apps/token'
    api_domain = 'api.runkeeper.com'

    available_permissions = [
        (None, 'access your health and fitness data'),
    ]

    def get_user_id(self, key):
        r = self.api(key, self.api_domains[0], u'/user')
        return unicode(r.json()[u'userID'])
