2.4.1
增加 同意好友请求(新) http://doc.gzntkj.com/web/#/22?page_id=1706
正在显示
2 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -1627,12 +1627,12 @@ class FacebookClient(Client): | @@ -1627,12 +1627,12 @@ class FacebookClient(Client): | ||
| 1627 | j = self._payload_post("/ajax/add_friend/action.php?dpr=1", data) | 1627 | j = self._payload_post("/ajax/add_friend/action.php?dpr=1", data) |
| 1628 | return j | 1628 | return j |
| 1629 | 1629 | ||
| 1630 | - def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id, source): | 1630 | + def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id): |
| 1631 | """同意好友请求""" | 1631 | """同意好友请求""" |
| 1632 | - #TODO:source 多种未抓,文档 | ||
| 1633 | - var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": source, "actor_id": self.uid, | 1632 | + var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": 'friends_tab', |
| 1633 | + "actor_id": self.uid, | ||
| 1634 | "client_mutation_id": self.get_client_mutation_id()}, "scale": 2} | 1634 | "client_mutation_id": self.get_client_mutation_id()}, "scale": 2} |
| 1635 | - res = self.graphql_api('FriendingCometFriendRequestCancelMutation', '3226051994092510', var) | 1635 | + res = self.graphql_api('FriendingCometFriendRequestConfirmMutation', '3269854426413944', var) |
| 1636 | try: | 1636 | try: |
| 1637 | return {'success': True, 'data': res['data']} | 1637 | return {'success': True, 'data': res['data']} |
| 1638 | except: | 1638 | except: |
-
请 注册 或 登录 后发表评论