@@ -0,0 +1,938 @@
+import flask%0Aimport foauth.providers%0A%0A%0Aclass GroupMe(foauth.providers.OAuth2):%0A    # General info about the provider%0A    provider_url = 'https://groupme.com/'%0A    docs_url = 'http://dev.groupme.com/docs/v3'%0A    category = 'Social'%0A%0A    # URLs to interact with the API%0A    authorize_url = 'https://api.groupme.com/oauth/authorize'%0A    api_domain = 'api.groupme.com'%0A%0A    available_permissions = %5B%0A        (None, 'access and manage your profile and messages'),%0A    %5D%0A%0A    def get_authorize_params(self, redirect_uri, scopes):%0A        return %7B'client_id': self.client_id%7D%0A%0A    def callback(self, data, url_name):%0A        # The access token comes back directly in the callback%0A        return data%0A%0A    def bearer_type(self, token, r):%0A        r.headers%5B'X-Access-Token'%5D = token%0A        return r%0A%0A    def get_user_id(self, key):%0A        r = self.api(key, self.api_domain, u'/v3/users/me')%0A        return unicode(r.json()%5Bu'response'%5D%5Bu'id'%5D)%0A

Add support for GroupMe