作者 陈俊学

2.4.1

增加 同意好友请求(新) http://doc.gzntkj.com/web/#/22?page_id=1706
... ... @@ -4,5 +4,5 @@ SERVER:
reconnect_interval: 3
VERSION:
code: 130
name: 2.4.0
\ No newline at end of file
code: 131
name: 2.4.1
\ No newline at end of file
... ...
... ... @@ -1627,12 +1627,12 @@ class FacebookClient(Client):
j = self._payload_post("/ajax/add_friend/action.php?dpr=1", data)
return j
def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id, source):
def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id):
"""同意好友请求"""
#TODO:source 多种未抓,文档
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": source, "actor_id": self.uid,
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": 'friends_tab',
"actor_id": self.uid,
"client_mutation_id": self.get_client_mutation_id()}, "scale": 2}
res = self.graphql_api('FriendingCometFriendRequestCancelMutation', '3226051994092510', var)
res = self.graphql_api('FriendingCometFriendRequestConfirmMutation', '3269854426413944', var)
try:
return {'success': True, 'data': res['data']}
except:
... ...