Exemplo n.º 1
0
    def __init__(self, project_id, auth_key):
        Behance.__init__(self, auth_key)
        self.project_id = project_id
        self.base_url = url_join(ENDPOINTS["api"], ENDPOINTS["project"])

        # Call behance API and populate data
        self._get_project_details()
Exemplo n.º 2
0
    def __init__(self, wip_id, auth_key):
        #super(Behance, self).__init__(auth_key)
        Behance.__init__(self, auth_key)
        self.wip_id = wip_id
        self.base_url = url_join(ENDPOINTS['api'], ENDPOINTS['wip'])

        self._get_wip_details()
Exemplo n.º 3
0
    def __init__(self, project_id, auth_key):
        Behance.__init__(self, auth_key)
        self.project_id = project_id
        self.base_url = url_join(ENDPOINTS['api'], ENDPOINTS['project'])

        #Call behance API and populate data
        self._get_project_details()
Exemplo n.º 4
0
 def __init__(self, username):
     config = ConfigParser.ConfigParser()
     config.read('./config.properties')
     self.pinterest = Pinterest(username, config)
     self.googleplus = GooglePlus(username, config)
     self.youtube = YouTube(username, config)
     self.twitch = Twitch(username, config)
     self.vimeo = Vimeo(username, config)
     self.behance = Behance(username, config)
     self.instagram = Instagram(username, config)
     self.twitter = Twitter(username, config)
     self.github = Github(username, config)
     self.dict = dict()
Exemplo n.º 5
0
class SocialMediaApi(object):
    def __init__(self, username):
        config = ConfigParser.ConfigParser()
        config.read('./config.properties')
        self.pinterest = Pinterest(username, config)
        self.googleplus = GooglePlus(username, config)
        self.youtube = YouTube(username, config)
        self.twitch = Twitch(username, config)
        self.vimeo = Vimeo(username, config)
        self.behance = Behance(username, config)
        self.instagram = Instagram(username, config)
        self.twitter = Twitter(username, config)
        self.github = Github(username, config)
        self.dict = dict()

    def getAllInfo(self):
        pinterestcount = self.pinterest.getPinterestInfoForUser()
        googlepluscount = self.googleplus.getGooglePlusInfoForUser()
        youtubecount = self.youtube.getYouTubeInfoForUser()
        twitchcount = self.twitch.getTwitchInfoForUser()
        vimeocount = self.vimeo.getVimeoInfoForUser()
        behancecount = self.behance.getBehanceInfoForUser()
        instagramcount = self.instagram.getInstagramInfoForUser()
        twittercount = self.twitter.getTwitterInfoForUser()
        githubcount = self.github.getGitHubInfoForUser()
        self.dict['GITHUB'] = githubcount
        self.dict['TWITTER'] = twittercount
        self.dict['INSTAGRAM'] = instagramcount
        self.dict['BEHANCE'] = behancecount
        self.dict['PINTEREST'] = pinterestcount
        self.dict['GOOGLEPLUS'] = googlepluscount
        self.dict['YOUTUBE'] = youtubecount
        self.dict['TWITCH'] = twitchcount
        self.dict['VIMEO'] = vimeocount

    def printDict(self):
        print("\n ********Output********* \n")
        pprint.pprint(self.dict)
Exemplo n.º 6
0
    def __init__(self, collection_id, auth_key):
        Behance.__init__(self, auth_key)
        self.collection_id = collection_id
        self.base_url = url_join(ENDPOINTS['api'], ENDPOINTS['collection'])

        self._get_collection_details()
Exemplo n.º 7
0
    def __init__(self, collection_id, auth_key):
        Behance.__init__(self, auth_key)
        self.collection_id = collection_id
        self.base_url = url_join(ENDPOINTS['api'], ENDPOINTS['collection'])

        self._get_collection_details()
Exemplo n.º 8
0
    def __init__(self, user_id, auth_key):
        Behance.__init__(self, auth_key)
        self.user_id = user_id
        self.base_url = url_join(ENDPOINTS['api'], ENDPOINTS['user'])

        self._get_user_details()