2
2
[ ![ Nuget] ( https://img.shields.io/nuget/v/LineDevelopers.svg )] ( https://www.nuget.org/packages/LineDevelopers )
3
3
[ ![ Nuget downloads] ( https://img.shields.io/nuget/dt/LineDevelopers.svg )] ( https://www.nuget.org/packages/LineDevelopers )
4
4
* [ 세종대왕] ( https://github.com/charles96/LineDevelopers.Net/blob/master/README_kor.md )
5
+
5
6
# LINE Developers.Net
6
7
This C# Library is implemented of the [ LINE Developers APIs] ( https://developers.line.biz/en/docs/ ) . and This is an unofficial LINE Developers library.
7
8
There are so many features in LINE Developers APIs.
@@ -18,39 +19,8 @@ Install-Package LineDevelopers
18
19
* [ webhook quick start] ( https://github.com/charles96/LineDevelopers.Net/blob/master/WEBHOOK_eng.md )
19
20
20
21
# 2. Library introduction
21
- ## 2-1. LineChannelAccessTokenClient class
22
- * [ Channel access token] ( https://developers.line.biz/en/reference/messaging-api/#channel-access-token )
23
-
24
- ``` csharp
25
- using Line ;
26
-
27
- using (var client = new LineChannelAccessTokenClient ())
28
- {
29
- try
30
- {
31
- var result = await client .IssueShortLivedChannelAccessTokenAsync (" client id" , " secret" );
32
-
33
- await client .VerifyShortLonglivedChannelAccessTokenAsync (result .AccessToken );
34
- }
35
- catch (LineCredentialException ex )
36
- {
37
- Console .WriteLine ($" error : {ex .Message }" );
38
- Console .WriteLine ($" error_description : {ex .Detail }" );
39
- }
40
- }
41
- ```
42
-
43
- | LINE Developers| Methods| Tested|
44
- | ---| ---| ---|
45
- | [ Issue channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1 ) | IssueChannelAccessTokenAsync| ❌|
46
- | [ Verify the validity of the channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#verfiy-channel-access-token-v2-1 ) | VerifyChannelAccessTokenAsync| ✔|
47
- | [ Get all valid channel access token key IDs v2.1] ( https://developers.line.biz/en/reference/messaging-api/#get-all-valid-channel-access-token-key-ids-v2-1 ) | GetAllValidChannelAccessTokenKeyIDsAsync| ❌|
48
- | [ Revoke channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1 ) | RevokeChannelAccessTokenAsync| ❌|
49
- | [ Issue short-lived channel access token] ( https://developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token ) | IssueShortLivedChannelAccessTokenAsync| ✔|
50
- | [ Verify the validity of short-lived and long-lived channel access tokens] ( https://developers.line.biz/en/reference/messaging-api/#verfiy-channel-access-token ) | VerifyShortLonglivedChannelAccessTokenAsync| ✔|
51
- | [ Revoke short-lived or long-lived channel access token] ( https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token ) | RevokeShortLongLivedChannelAccessTokenAsync| ✔|
52
22
53
- ## 2-2 . LineMessagingClient class
23
+ ## 2-1 . LineMessagingClient class
54
24
There are exists each class by unit of feature.
55
25
for instance, it offer same features both a LineMessaingClient.Insight and a LineInsightClient class.
56
26
but I recommend that you should use a LineMessagingClient class instead of each class.
@@ -67,7 +37,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
67
37
await client .RichMenu .DownloadRichMenuImageAsync (" test richmenu id" , @" c:\temp\test.jpg" );
68
38
}
69
39
```
70
- ### 2-2 -1. LineMessageClient class
40
+ ### 2-1 -1. LineMessageClient class
71
41
* [Message ](https :// developers.line.biz/en/reference/messaging-api/#messages)
72
42
73
43
| LINE Developers | Methods | Tested |
@@ -91,7 +61,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
91
61
| [Get number of units used this month ](https :// developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month)|GetNumberOfUnitsUsedThisMonthAsync|✔|
92
62
| [Get name list of units used this month ](https :// developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month)|GetNameListOfUnitsUsedThisMonthAsync|✔|
93
63
94
- ### 2-2 -2. LineInsightClient class
64
+ ### 2-1 -2. LineInsightClient class
95
65
* [Insight ](https :// developers.line.biz/en/reference/messaging-api/#get-insight)
96
66
97
67
| LINE Developers | Methods | Tested |
@@ -102,7 +72,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
102
72
| [Get user interaction statistics ](https :// developers.line.biz/en/reference/messaging-api/#get-message-event)|GetUserInteractionStatisticsAsync|✔|
103
73
| [Get statistics per unit ](https :// developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit)|GetStatisticsPerUnitAsync|✔|
104
74
105
- ### 2-2 -3. LineRichMenuClient class
75
+ ### 2-1 -3. LineRichMenuClient class
106
76
* [Rich menu ](https :// developers.line.biz/en/reference/messaging-api/#rich-menu)
107
77
108
78
| LINE Developers | Methods | Tested |
@@ -131,7 +101,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
131
101
| [Get the status of rich menu batch control ](https :// developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status)|GetStatusOfRichMenuBatchControlAsync|❌|
132
102
| [Validate a request of rich menu batch control ](https :// developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request)|ValidateRequestOfRichMenuBatchControlAsync|✔|
133
103
134
- ### 2-2 -4. LineGroupChatClient class
104
+ ### 2-1 -4. LineGroupChatClient class
135
105
* [GroupChat ](https :// developers.line.biz/en/reference/messaging-api/#group)
136
106
137
107
| LINE Developers | Methods | Tested |
@@ -142,7 +112,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
142
112
| [Get group chat member profile ](https :// developers.line.biz/en/reference/messaging-api/#get-group-member-profile)|GetChatMemberProfileAsync|✔|
143
113
| [Leave group chat ](https :// developers.line.biz/en/reference/messaging-api/#leave-group)|LeaveAsync|✔|
144
114
145
- ### 2-2 -5. LineMultiPersonChatClient class
115
+ ### 2-1 -5. LineMultiPersonChatClient class
146
116
* [MultiPersonChat ](https :// developers.line.biz/en/reference/messaging-api/#chat-room)
147
117
148
118
| LINE Developers | Methods | Tested |
@@ -152,22 +122,22 @@ but I recommend that you should use a LineMessagingClient class instead of each
152
122
| [Get multi - person chat member profile ](https :// developers.line.biz/en/reference/messaging-api/#get-room-member-profile)|GetMemberProfileAsync|❌|
153
123
| [Leave multi - person chat ](https :// developers.line.biz/en/reference/messaging-api/#leave-room)|LeaveAsync|❌|
154
124
155
- ### 2-2 -6. LineUserClient class
125
+ ### 2-1 -6. LineUserClient class
156
126
* [Users ](https :// developers.line.biz/en/reference/messaging-api/#users)
157
127
158
128
| LINE Developers | Methods | Tested |
159
129
| -- - | -- - | -- - |
160
130
| [Get profile ](https :// developers.line.biz/en/reference/messaging-api/#get-profile)|GetUserProfileAsync|✔|
161
131
| [Get a list of users who added your LINE Official Account as a friend ](https :// developers.line.biz/en/reference/messaging-api/#get-follower-ids)|GetFollowersAsync|❌|
162
132
163
- ## 2-2 -7. LineAccountLinkClient class
133
+ ## 2-1 -7. LineAccountLinkClient class
164
134
* [Account link ](https :// developers.line.biz/en/reference/messaging-api/#account-link)
165
135
166
136
| LINE Developers | Methods | Tested |
167
137
| -- - | -- - | -- - |
168
138
| [Issue link token ](https :// developers.line.biz/en/reference/messaging-api/#issue-link-token)|IssueLinkTokenAsync|✔|
169
139
170
- ## 2-2 -8. LineWebhookSettingClient class
140
+ ## 2-1 -8. LineWebhookSettingClient class
171
141
* [Webhook settings ](https :// developers.line.biz/en/reference/messaging-api/#webhook-settings)
172
142
173
143
| LINE Developers | Methods | Tested |
@@ -176,13 +146,45 @@ but I recommend that you should use a LineMessagingClient class instead of each
176
146
| [Get webhook endpoint information ](https :// developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information)|GetEndpointInformationAsync|✔|
177
147
| [Test webhook endpoint ](https :// developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint)|TestEndpointAsync|✔|
178
148
179
- ## 2-2 -9. LineBotClient class
149
+ ## 2-1 -9. LineBotClient class
180
150
* [Bot ](https :// developers.line.biz/en/reference/messaging-api/#bot)
181
151
182
152
| LINE Developers | Methods | Tested |
183
153
| -- - | -- - | -- - |
184
154
| [Get bot info ](https :// developers.line.biz/en/reference/messaging-api/#get-bot-info)|GetBotInformationAsync|✔|
185
155
156
+ ## 2-2. LineChannelAccessTokenClient class
157
+ * [Channel access token ](https :// developers.line.biz/en/reference/messaging-api/#channel-access-token)
158
+
159
+ ```csharp
160
+ using Line ;
161
+
162
+ using (var client = new LineChannelAccessTokenClient ())
163
+ {
164
+ try
165
+ {
166
+ var result = await client .IssueShortLivedChannelAccessTokenAsync (" client id" , " secret" );
167
+
168
+ await client .VerifyShortLonglivedChannelAccessTokenAsync (result .AccessToken );
169
+ }
170
+ catch (LineCredentialException ex )
171
+ {
172
+ Console .WriteLine ($" error : {ex .Message }" );
173
+ Console .WriteLine ($" error_description : {ex .Detail }" );
174
+ }
175
+ }
176
+ ```
177
+
178
+ | LINE Developers | Methods | Tested |
179
+ | -- - | -- - | -- - |
180
+ | [Issue channel access token v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1)|IssueChannelAccessTokenAsync|❌|
181
+ | [Verify the validity of the channel access token v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#verfiy-channel-access-token-v2-1)|VerifyChannelAccessTokenAsync|❌|
182
+ | [Get all valid channel access token key IDs v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#get-all-valid-channel-access-token-key-ids-v2-1)|GetAllValidChannelAccessTokenKeyIDsAsync|❌|
183
+ | [Revoke channel access token v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1)|RevokeChannelAccessTokenAsync|❌|
184
+ | [Issue short - lived channel access token ](https :// developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token)|IssueShortLivedChannelAccessTokenAsync|✔|
185
+ | [Verify the validity of short - lived and long - lived channel access tokens ](https :// developers.line.biz/en/reference/messaging-api/#verfiy-channel-access-token)|VerifyShortLonglivedChannelAccessTokenAsync|✔|
186
+ | [Revoke short - lived or long - lived channel access token ](https :// developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token)|RevokeShortLongLivedChannelAccessTokenAsync|✔|
187
+
186
188
## 2-3 LineLiffClient class
187
189
* [LIFF Server API ](https :// developers.line.biz/en/reference/liff-server/)
188
190
0 commit comments