Skip to content

Commit 60d5975

Browse files
committed
dev response header
1 parent e185547 commit 60d5975

22 files changed

+532
-212
lines changed

README.md

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Nuget](https://img.shields.io/nuget/v/LineDevelopers.svg)](https://www.nuget.org/packages/LineDevelopers)
33
[![Nuget downloads](https://img.shields.io/nuget/dt/LineDevelopers.svg)](https://www.nuget.org/packages/LineDevelopers)
44
* [세종대왕](https://github.com/charles96/LineDevelopers.Net/blob/master/README_kor.md)
5+
56
# LINE Developers.Net
67
This C# Library is implemented of the [LINE Developers APIs](https://developers.line.biz/en/docs/). and This is an unofficial LINE Developers library.
78
There are so many features in LINE Developers APIs.
@@ -18,39 +19,8 @@ Install-Package LineDevelopers
1819
* [webhook quick start](https://github.com/charles96/LineDevelopers.Net/blob/master/WEBHOOK_eng.md)
1920

2021
# 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||
5222

53-
## 2-2. LineMessagingClient class
23+
## 2-1. LineMessagingClient class
5424
There are exists each class by unit of feature.
5525
for instance, it offer same features both a LineMessaingClient.Insight and a LineInsightClient class.
5626
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
6737
await client.RichMenu.DownloadRichMenuImageAsync("test richmenu id", @"c:\temp\test.jpg");
6838
}
6939
```
70-
### 2-2-1. LineMessageClient class
40+
### 2-1-1. LineMessageClient class
7141
* [Message](https://developers.line.biz/en/reference/messaging-api/#messages)
7242
7343
|LINE Developers|Methods|Tested|
@@ -91,7 +61,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
9161
|[Get number of units used this month](https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month)|GetNumberOfUnitsUsedThisMonthAsync|✔|
9262
|[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|✔|
9363
94-
### 2-2-2. LineInsightClient class
64+
### 2-1-2. LineInsightClient class
9565
* [Insight](https://developers.line.biz/en/reference/messaging-api/#get-insight)
9666
9767
|LINE Developers|Methods|Tested|
@@ -102,7 +72,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
10272
|[Get user interaction statistics](https://developers.line.biz/en/reference/messaging-api/#get-message-event)|GetUserInteractionStatisticsAsync|✔|
10373
|[Get statistics per unit](https://developers.line.biz/en/reference/messaging-api/#get-statistics-per-unit)|GetStatisticsPerUnitAsync|✔|
10474
105-
### 2-2-3. LineRichMenuClient class
75+
### 2-1-3. LineRichMenuClient class
10676
* [Rich menu](https://developers.line.biz/en/reference/messaging-api/#rich-menu)
10777
10878
|LINE Developers|Methods|Tested|
@@ -131,7 +101,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
131101
|[Get the status of rich menu batch control](https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status)|GetStatusOfRichMenuBatchControlAsync|❌|
132102
|[Validate a request of rich menu batch control](https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request)|ValidateRequestOfRichMenuBatchControlAsync|✔|
133103
134-
### 2-2-4. LineGroupChatClient class
104+
### 2-1-4. LineGroupChatClient class
135105
* [GroupChat](https://developers.line.biz/en/reference/messaging-api/#group)
136106
137107
|LINE Developers|Methods|Tested|
@@ -142,7 +112,7 @@ but I recommend that you should use a LineMessagingClient class instead of each
142112
|[Get group chat member profile](https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile)|GetChatMemberProfileAsync|✔|
143113
|[Leave group chat](https://developers.line.biz/en/reference/messaging-api/#leave-group)|LeaveAsync|✔|
144114
145-
### 2-2-5. LineMultiPersonChatClient class
115+
### 2-1-5. LineMultiPersonChatClient class
146116
* [MultiPersonChat](https://developers.line.biz/en/reference/messaging-api/#chat-room)
147117
148118
|LINE Developers|Methods|Tested|
@@ -152,22 +122,22 @@ but I recommend that you should use a LineMessagingClient class instead of each
152122
|[Get multi-person chat member profile](https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile)|GetMemberProfileAsync|❌|
153123
|[Leave multi-person chat](https://developers.line.biz/en/reference/messaging-api/#leave-room)|LeaveAsync|❌|
154124
155-
### 2-2-6. LineUserClient class
125+
### 2-1-6. LineUserClient class
156126
* [Users](https://developers.line.biz/en/reference/messaging-api/#users)
157127
158128
|LINE Developers|Methods|Tested|
159129
|---|---|---|
160130
|[Get profile](https://developers.line.biz/en/reference/messaging-api/#get-profile)|GetUserProfileAsync|✔|
161131
|[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|❌|
162132
163-
## 2-2-7. LineAccountLinkClient class
133+
## 2-1-7. LineAccountLinkClient class
164134
* [Account link](https://developers.line.biz/en/reference/messaging-api/#account-link)
165135
166136
|LINE Developers|Methods|Tested|
167137
|---|---|---|
168138
|[Issue link token](https://developers.line.biz/en/reference/messaging-api/#issue-link-token)|IssueLinkTokenAsync|✔|
169139
170-
## 2-2-8. LineWebhookSettingClient class
140+
## 2-1-8. LineWebhookSettingClient class
171141
* [Webhook settings](https://developers.line.biz/en/reference/messaging-api/#webhook-settings)
172142
173143
|LINE Developers|Methods|Tested|
@@ -176,13 +146,45 @@ but I recommend that you should use a LineMessagingClient class instead of each
176146
|[Get webhook endpoint information](https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information)|GetEndpointInformationAsync|✔|
177147
|[Test webhook endpoint](https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint)|TestEndpointAsync|✔|
178148
179-
## 2-2-9. LineBotClient class
149+
## 2-1-9. LineBotClient class
180150
* [Bot](https://developers.line.biz/en/reference/messaging-api/#bot)
181151
182152
|LINE Developers|Methods|Tested|
183153
|---|---|---|
184154
|[Get bot info](https://developers.line.biz/en/reference/messaging-api/#get-bot-info)|GetBotInformationAsync|✔|
185155
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+
186188
## 2-3 LineLiffClient class
187189
* [LIFF Server API](https://developers.line.biz/en/reference/liff-server/)
188190

0 commit comments

Comments
 (0)