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()
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()
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()
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()
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)
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()
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()