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 ebb6f6e commit b613950
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

setuptools.setup(
name = "instagram_api",
version = "0.1.3",
version = "0.1.4",
author = "Hive Solutions Lda.",
author_email = "development@hive.pt",
description = "Instagram API Client",
Expand Down
2 changes: 1 addition & 1 deletion src/examples/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import instagram

def get_api():
return instagram.Api(
return instagram.API(
client_id = appier.conf("INSTAGRAM_ID"),
client_secret = appier.conf("INSTAGRAM_SECRET"),
redirect_url = appier.conf("INSTAGRAM_REDIRECT_URL")
Expand Down
10 changes: 5 additions & 5 deletions src/instagram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
from . import tag
from . import user

from .base import BASE_URL, Api
from .media import MediaApi
from .subscription import SubscriptionApi
from .tag import TagApi
from .user import UserApi
from .base import BASE_URL, API
from .media import MediaAPI
from .subscription import SubscriptionAPI
from .tag import TagAPI
from .user import UserAPI
14 changes: 7 additions & 7 deletions src/instagram/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@
""" The list of permissions to be used to create the
scope string for the oauth value """

class Api(
appier.OAuth2Api,
tag.TagApi,
user.UserApi,
media.MediaApi,
subscription.SubscriptionApi
class API(
appier.OAuth2API,
tag.TagAPI,
user.UserAPI,
media.MediaAPI,
subscription.SubscriptionAPI
):

def __init__(self, *args, **kwargs):
appier.OAuth2Api.__init__(self, *args, **kwargs)
appier.OAuth2API.__init__(self, *args, **kwargs)
self.client_id = appier.conf("INSTAGRAM_ID", CLIENT_ID)
self.client_secret = appier.conf("INSTAGRAM_SECRET", CLIENT_SECRET)
self.redirect_url = appier.conf("INSTAGRAM_REDIRECT_URL", REDIRECT_URL)
Expand Down
2 changes: 1 addition & 1 deletion src/instagram/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class MediaApi(object):
class MediaAPI(object):

def get_media(self, id):
url = self.base_url + "v1/media/%s" % id
Expand Down
2 changes: 1 addition & 1 deletion src/instagram/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class SubscriptionApi(object):
class SubscriptionAPI(object):

def subscribe(self, object = "tag", aspect = "media", object_id = None, callback_url = None):
url = self.base_url + "v1/subscriptions"
Expand Down
2 changes: 1 addition & 1 deletion src/instagram/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class TagApi(object):
class TagAPI(object):

def media_tag(self, tag):
url = self.base_url + "v1/tags/%s/media/recent" % tag
Expand Down
2 changes: 1 addition & 1 deletion src/instagram/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

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

def get_user(self, user_id):
url = self.base_url + "v1/users/%s" % user_id
Expand Down

0 comments on commit b613950

Please sign in to comment.