11[ ![ dotnet version] ( https://img.shields.io/badge/.NET-7.x-blue )] ( https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-7 )
2- # LineMessaging API .Net
2+ # LINE Developers .Net
33이 라이브러리는 [ LINE Developers] ( https://developers.line.biz/en/docs/ ) 의 API를 C# 라이브러리로 개발한 것입니다.
44방대한 기능과 몇몇 기능은 유료 기반이라 모든 기능을 테스트 완료하진 못하였습니다.
55LINE Messenger 기반 챗봇을 개발하시는 분들께 도움이 되길 바랍니다.
@@ -10,7 +10,42 @@ Install-Package
10101 . [ 메시지 생성 및 발송 가이드] ( https://github.com/charles96/LineDevelopers.Net/blob/master/MESSAGE_kor.md )
11112 . [ webhook quick start] ( https://github.com/charles96/LineDevelopers.Net/blob/master/WEBHOOK_kor.md )
1212# 2. Library introduction
13- ## 2-1. LineMessagingClient class
13+
14+ ## 2-1. LineChannelAccessTokenClient class
15+
16+ ``` csharp
17+ using Line ;
18+
19+ try
20+ {
21+ using (var client = new LineChannelAccessTokenClient ())
22+ {
23+ var result = await client .IssueShortLivedChannelAccessTokenAsync (" client id" , " secret" );
24+
25+ await client .VerifyShortLonglivedChannelAccessTokenAsync (result .AccessToken );
26+ }
27+ }
28+ catch (LineCredentialException ex )
29+ {
30+ Console .WriteLine ($" error : {ex .Message }" );
31+ Console .WriteLine ($" error_description : {ex .Detail }" );
32+ }
33+ ```
34+
35+ * [ Channel access token] ( https://developers.line.biz/en/reference/messaging-api/#channel-access-token )
36+
37+ | LINE Developers| Methods| Tested|
38+ | ---| ---| ---|
39+ | [ Issue channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1 ) | IssueChannelAccessTokenAsync| ✔|
40+ | [ 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| ✔|
41+ | [ 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| ❌|
42+ | [ Revoke channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1 ) | RevokeChannelAccessTokenAsync| ❌|
43+ | [ Issue short-lived channel access token] ( https://developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token ) | IssueShortLivedChannelAccessTokenAsync| ✔|
44+ | [ 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| ✔|
45+ | [ 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| ✔|
46+
47+
48+ ## 2-2. LineMessagingClient class
1449각 기능 별로 개별 class들이 아래와 같이 존재합니다. 하지만 LineMessagingClient를 통해
1550아래의 모든 기능들을 사용 할 수 있으며 LineMessagingClient를 통해 구현하는 것을 권장합니다.
1651
@@ -26,7 +61,7 @@ Install-Package
2661 await client .RichMenu .DownloadRichMenuImageAsync (" test richmenu id" , @" c:\temp\test.jpg" );
2762 }
2863 ```
29- ### 2-1 -1. LineMessageClient class
64+ ### 2-2 -1. LineMessageClient class
3065* [Message ](https :// developers.line.biz/en/reference/messaging-api/#messages)
3166
3267| LINE Developers | Methods | Tested |
@@ -50,7 +85,7 @@ Install-Package
5085| [Get number of units used this month ](https :// developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month)|GetNumberOfUnitsUsedThisMonthAsync|✔|
5186| [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|✔|
5287
53- ### 2-1 -2. LineInsightClient class
88+ ### 2-2 -2. LineInsightClient class
5489* [Insight ](https :// developers.line.biz/en/reference/messaging-api/#get-insight)
5590
5691| LINE Developers | Methods | Tested |
@@ -61,7 +96,7 @@ Install-Package
6196| [Get user interaction statistics ](https :// developers.line.biz/en/reference/messaging-api/#get-message-event)|GetUserInteractionStatisticsAsync|✔|
6297| [Get statistics per unit ](https :// developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit)|GetStatisticsPerUnitAsync|✔|
6398
64- ### 2-1 -3. LineRichMenuClient class
99+ ### 2-2 -3. LineRichMenuClient class
65100* [Rich menu ](https :// developers.line.biz/en/reference/messaging-api/#rich-menu)
66101
67102| LINE Developers | Methods | Tested |
@@ -90,7 +125,7 @@ Install-Package
90125| [Get the status of rich menu batch control ](https :// developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status)|GetStatusOfRichMenuBatchControlAsync|❌|
91126| [Validate a request of rich menu batch control ](https :// developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request)|ValidateRequestOfRichMenuBatchControlAsync|✔|
92127
93- ### 2-1 -4. LineGroupChatClient class
128+ ### 2-2 -4. LineGroupChatClient class
94129* [GroupChat ](https :// developers.line.biz/en/reference/messaging-api/#group)
95130
96131| LINE Developers | Methods | Tested |
@@ -101,7 +136,7 @@ Install-Package
101136| [Get group chat member profile ](https :// developers.line.biz/en/reference/messaging-api/#get-group-member-profile)|GetChatMemberProfileAsync|✔|
102137| [Leave group chat ](https :// developers.line.biz/en/reference/messaging-api/#leave-group)|LeaveAsync|✔|
103138
104- ### 2-1 -5. LineMultiPersonChatClient class
139+ ### 2-2 -5. LineMultiPersonChatClient class
105140* [MultiPersonChat ](https :// developers.line.biz/en/reference/messaging-api/#chat-room)
106141
107142| LINE Developers | Methods | Tested |
@@ -111,22 +146,22 @@ Install-Package
111146| [Get multi - person chat member profile ](https :// developers.line.biz/en/reference/messaging-api/#get-room-member-profile)|GetMemberProfileAsync|❌|
112147| [Leave multi - person chat ](https :// developers.line.biz/en/reference/messaging-api/#leave-room)|LeaveAsync|❌|
113148
114- ### 2-1 -6. LineUserClient class
149+ ### 2-2 -6. LineUserClient class
115150* [Users ](https :// developers.line.biz/en/reference/messaging-api/#users)
116151
117152| LINE Developers | Methods | Tested |
118153| -- - | -- - | -- - |
119154| [Get profile ](https :// developers.line.biz/en/reference/messaging-api/#get-profile)|GetUserProfileAsync|✔|
120155| [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|❌|
121156
122- ## 2-1 -7. LineAccountLinkClient class
157+ ## 2-2 -7. LineAccountLinkClient class
123158* [Account link ](https :// developers.line.biz/en/reference/messaging-api/#account-link)
124159
125160| LINE Developers | Methods | Tested |
126161| -- - | -- - | -- - |
127162| [Issue link token ](https :// developers.line.biz/en/reference/messaging-api/#issue-link-token)|IssueLinkTokenAsync|✔|
128163
129- ## 2-1 -8. LineWebhookSettingClient class
164+ ## 2-2 -8. LineWebhookSettingClient class
130165* [Webhook settings ](https :// developers.line.biz/en/reference/messaging-api/#webhook-settings)
131166
132167| LINE Developers | Methods | Tested |
@@ -135,39 +170,6 @@ Install-Package
135170| [Get webhook endpoint information ](https :// developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information)|GetEndpointInformationAsync|✔|
136171| [Test webhook endpoint ](https :// developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint)|TestEndpointAsync|✔|
137172
138- ## 2-2. LineChannelAccessTokenClient class
139-
140- ```csharp
141- using Line ;
142-
143- try
144- {
145- using (var client = new LineChannelAccessTokenClient ())
146- {
147- var result = await client .IssueShortLivedChannelAccessTokenAsync (" client id" , " secret" );
148-
149- await client .VerifyShortLonglivedChannelAccessTokenAsync (result .AccessToken );
150- }
151- }
152- catch (LineCredentialException ex )
153- {
154- Console .WriteLine ($" error : {ex .Message }" );
155- Console .WriteLine ($" error_description : {ex .Detail }" );
156- }
157- ```
158-
159- * [Channel access token ](https :// developers.line.biz/en/reference/messaging-api/#channel-access-token)
160-
161- | LINE Developers | Methods | Tested |
162- | -- - | -- - | -- - |
163- | [Issue channel access token v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1)|IssueChannelAccessTokenAsync|✔|
164- | [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|✔|
165- | [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|❌|
166- | [Revoke channel access token v2 .1 ](https :// developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1)|RevokeChannelAccessTokenAsync|❌|
167- | [Issue short - lived channel access token ](https :// developers.line.biz/en/reference/messaging-api/#issue-shortlived-channel-access-token)|IssueShortLivedChannelAccessTokenAsync|✔|
168- | [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|✔|
169- | [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|✔|
170-
171173## 2-3 LineLiffClient class
172174```csharp
173175
0 commit comments