You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/ITokenClient.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ public interface ITokenClient
9
9
/// Use this method to revoke access_token and generate a new one, for example, if the user would like to reset all connected sessions, or you have reasons to believe the token was compromised. On success, returns an Account object with new access_token and auth_url fields.
10
10
/// </summary>
11
11
/// <returns>Returns an Account object with new access_token and auth_url fields.</returns>
12
-
Task<Account>RevokeAccessToken();
12
+
Task<Account>RevokeAccessTokenAsync();
13
13
14
14
/// <summary>
15
15
/// Use this method to get information about a Telegraph account. Returns an Account object on success.
@@ -19,7 +19,7 @@ public interface ITokenClient
19
19
/// This can be specified as a flagged enum, viz: AccountFields.ShortName | AccountFields.AuthorName | AccountFields.PageCount.
20
20
/// </param>
21
21
/// <returns>Returns an Account object on success.</returns>
/// Use this method to update information about a Telegraph account. Pass only the parameters that you want to edit. On success, returns an Account object with the default fields.
@@ -37,7 +37,7 @@ public interface ITokenClient
37
37
/// <param name="authorName">New default author name used when creating new articles.</param>
38
38
/// <param name="authorUrl">New default profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
39
39
/// <returns>An Account object with the default fields.</returns>
/// Use this method to create a new Telegraph page.
@@ -48,7 +48,7 @@ public interface ITokenClient
48
48
/// <param name="authorUrl">Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
49
49
/// <param name="returnContent">If true, a content field will be returned in the Page object.</param>
50
50
/// <returns> On success, returns a Page object.</returns>
/// <param name="authorUrl">Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
61
61
/// <param name="returnContent">If true, a content field will be returned in the Page object.</param>
62
62
/// <returns>On success, returns a Page object.</returns>
Copy file name to clipboardExpand all lines: src/main/TokenClient.cs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ public TokenClient(string accessToken, TelegraphClient client)
22
22
/// Use this method to revoke access_token and generate a new one, for example, if the user would like to reset all connected sessions, or you have reasons to believe the token was compromised. On success, returns an Account object with new access_token and auth_url fields.
23
23
/// </summary>
24
24
/// <returns>Returns an Account object with new access_token and auth_url fields.</returns>
/// <param name="authorName">New default author name used when creating new articles.</param>
80
80
/// <param name="authorUrl">New default profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
81
81
/// <returns>An Account object with the default fields.</returns>
/// <param name="authorUrl">Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
98
98
/// <param name="returnContent">If true, a content field will be returned in the Page object.</param>
99
99
/// <returns> On success, returns a Page object.</returns>
/// <param name="authorUrl">Profile link, opened when users click on the author's name below the title. Can be any link, not necessarily to a Telegram profile or channel.</param>
126
126
/// <param name="returnContent">If true, a content field will be returned in the Page object.</param>
127
127
/// <returns>On success, returns a Page object.</returns>
0 commit comments