@@ -17,24 +17,23 @@ Install-Package
1717``` csharp
1818using Line ;
1919
20- try
20+ using ( var client = new LineChannelAccessTokenClient ())
2121{
22- using ( var client = new LineChannelAccessTokenClient ())
22+ try
2323 {
24+
2425 var result = await client .IssueShortLivedChannelAccessTokenAsync (" client id" , " secret" );
25-
26+
2627 await client .VerifyShortLonglivedChannelAccessTokenAsync (result .AccessToken );
2728 }
28- }
29- catch ( LineCredentialException ex )
30- {
31- Console .WriteLine ($" error : {ex .Message }" );
32- Console . WriteLine ( $" error_description : { ex . Detail } " );
29+ catch ( LineCredentialException ex )
30+ {
31+ Console . WriteLine ( $" error : { ex . Message } " );
32+ Console .WriteLine ($" error_description : {ex .Detail }" );
33+ }
3334}
3435```
3536
36-
37-
3837| LINE Developers| Methods| Tested|
3938| ---| ---| ---|
4039| [ Issue channel access token v2.1] ( https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1 ) | IssueChannelAccessTokenAsync| ✔|
@@ -178,9 +177,9 @@ catch (LineCredentialException ex)
178177using Line ;
179178using Line .Liff ;
180179
181- try
180+ using ( var client = new LineLiffClient ( " access token " ))
182181{
183- using ( var client = new LineLiffClient ( " access token " ))
182+ try
184183 {
185184 var liffs = await client .GetAllLiffAppsAsync ();
186185
@@ -189,15 +188,15 @@ try
189188 await client .DeleteLiffAppsFromChannelAsync (liff .LiffId );
190189 }
191190 }
192- }
193- catch (LineException ex )
194- {
195- Console .WriteLine (ex .Message );
196-
197- foreach (var detail in ex .Details ?? Enumerable .Empty <Detail >())
191+ catch (LineException ex )
198192 {
199- Console .WriteLine (detail .Message );
200- Console .WriteLine (detail .Property );
193+ Console .WriteLine (ex .Message );
194+
195+ foreach (var detail in ex .Details ?? Enumerable .Empty <Detail >())
196+ {
197+ Console .WriteLine (detail .Message );
198+ Console .WriteLine (detail .Property );
199+ }
201200 }
202201}
203202```
0 commit comments