Skip to content
This repository was archived by the owner on Mar 21, 2023. It is now read-only.

Commit 6ddb5d8

Browse files
committedJan 23, 2021
add sendContactV2
1 parent 4b9fd84 commit 6ddb5d8

File tree

9 files changed

+11
-1888
lines changed

9 files changed

+11
-1888
lines changed
 

‎README.md

+1-59
Original file line numberDiff line numberDiff line change
@@ -29,62 +29,4 @@ If you can help update this project, welcome to join our [Discord](https://disco
2929
- 3rd Party
3030
- LINE WORKS
3131
- create account
32-
- Chrome API
33-
- SQR
34-
- Services
35-
- getEncryptedIdentity
36-
- issueChannelToken
37-
- getChannelInfo
38-
- getContact
39-
- getContacts
40-
- getGroup
41-
- getGroups
42-
- getGroupsV2
43-
- getCompactGroup
44-
- getChats
45-
- sendMessage (text only)
46-
- getGroupIdsJoined
47-
- getGroupIdsInvited
48-
- getAllContactIds
49-
- getBlockedContactIds
50-
- getBlockedRecommendationIds
51-
- getAllReadMessageOps
52-
- getLastOpRevision
53-
- getServerTime
54-
- getConfigurations
55-
- fetchOps
56-
- deleteOtherFromChat
57-
- cancelChatInvitation
58-
- acceptChatInvitation
59-
- getContactsV2
60-
- acceptChatInvitationByTicket
61-
- getPreviousMessagesV2WithRequest
62-
- sendChatChecked
63-
- unsendMessage
64-
- findAndAddContactsByMid
65-
- inviteIntoChat
66-
- deleteSelfFromChat
67-
- findChatByTicket
68-
- updateChat (name only)
69-
- sendPostback
70-
- wakeUpLongPolling
71-
- getMessageBoxes
72-
- getMessageReadRange
73-
- getChatRoomAnnouncementsBulk
74-
- removeChatRoomAnnouncement
75-
- returnTicket (test)
76-
- getModulesV2
77-
- getProduct
78-
- markAsRead
79-
- setClovaCredential (test)
80-
- getCommonDomains
81-
- acquireCallRoute
82-
- acquireGroupCallRoute
83-
- acquireOACallRoute
84-
- acquireTestCallRoute
85-
- inviteIntoGroupCall (DIED)
86-
- issueRequestTokenWithAuthScheme
87-
- fetchOperations
88-
- openSession
89-
- connectEapAccount
90-
- verifyEapLogin
32+
- [Chrome API](https://github.com/DeachSword/CHRLINE)

‎api/client/CHRLINE/__init__.py

-10
This file was deleted.

‎api/client/CHRLINE/api.py

-1,413
This file was deleted.

‎api/client/CHRLINE/client.py

-26
This file was deleted.

‎api/client/CHRLINE/config.py

-56
This file was deleted.

‎api/client/CHRLINE/models.py

-294
This file was deleted.

‎api/client/CHRLINE/thrift.py

-7
This file was deleted.

‎api/client/chrome_line.py

-22
This file was deleted.

‎api/timeline/main.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def getProfileDetail(self, mid):
1818
r = self.server.postContent(url, headers=hr)
1919
return r.json()
2020

21-
@loggedIn
2221
def updateProfileCoverById(self, objid, vObjid=None):
2322
data = {
2423
"homeId": self.profile.mid,
@@ -34,6 +33,16 @@ def updateProfileCoverById(self, objid, vObjid=None):
3433
r = self.server.postContent('https://ga2.line.naver.jp/hm/api/v1/home/cover.json', headers=hr, data=json.dumps(data))
3534
return r.json()
3635

36+
def sendContactV2(self, homeId, targetMids):
37+
url = 'https://ga2.line.naver.jp/hm/api/v1/home/profile/share'
38+
data = {"homeId":homeId,"shareType":"FLEX_OA_HOME_PROFILE_SHARING","targetMids":targetMids}
39+
r = self.server.postContent(url, headers=self.server.timelineHeaders, data=json.dumps(data))
40+
result = r.json()
41+
if result['message'] == 'success':
42+
return result['result']
43+
else:
44+
return False
45+
3746

3847
""" POST """
3948

0 commit comments

Comments
 (0)
This repository has been archived.