Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 5, 2017
1 parent 4012ffc commit 2cbd278
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -42,7 +42,7 @@

setuptools.setup(
name = "facebook_api",
version = "0.1.9",
version = "0.1.10",
author = "Hive Solutions Lda.",
author_email = "development@hive.pt",
description = "Facebook API Client",
Expand Down
2 changes: 1 addition & 1 deletion src/examples/base.py
Expand Up @@ -42,7 +42,7 @@
import facebook

def get_api():
return facebook.Api(
return facebook.API(
client_id = appier.conf("FB_ID"),
client_secret = appier.conf("FB_SECRET"),
redirect_url = appier.conf("FB_REDIRECT_URL")
Expand Down
4 changes: 2 additions & 2 deletions src/facebook/__init__.py
Expand Up @@ -37,5 +37,5 @@
from . import base
from . import user

from .base import BASE_URL, Api
from .user import UserApi
from .base import BASE_URL, API
from .user import UserAPI
8 changes: 4 additions & 4 deletions src/facebook/base.py
Expand Up @@ -63,13 +63,13 @@
""" The list of permissions to be used to create the
scope string for the oauth value """

class Api(
appier.OAuth2Api,
user.UserApi
class API(
appier.OAuth2API,
user.UserAPI
):

def __init__(self, *args, **kwargs):
appier.OAuth2Api.__init__(self, *args, **kwargs)
appier.OAuth2API.__init__(self, *args, **kwargs)
self.client_id = appier.conf("FB_ID", CLIENT_ID)
self.client_secret = appier.conf("FB_SECRET", CLIENT_SECRET)
self.redirect_url = appier.conf("FB_REDIRECT_URL", REDIRECT_URL)
Expand Down
2 changes: 1 addition & 1 deletion src/facebook/user.py
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class UserApi(object):
class UserAPI(object):

def self_user(self, fields = None):
url = self.base_url + "me"
Expand Down

0 comments on commit 2cbd278

Please sign in to comment.