Ejemplo n.º 1
0
 def get_mentioned_comment(self):
     request_url = 'https://api.weibo.com/2/comments/mentions.json'
     request_params = {
         'access_token': self.access_token,
     }
     request_url = request_url + '?' + common_tools.dict_to_url_params(
         request_params)
     res = common_tools.get(request_url,
                            show_data=False,
                            show_headers=False)
     res = json.loads(res)
     if 'error' in res:
         return
     return res
Ejemplo n.º 2
0
 def online_admin(self):
     url = main_url + '/test/onlineadmin'
     res = json.loads(common_tools.get(url, headers=self.headers))
     # print(res)
     return res