Click or drag to resize

WikiSiteGetTokenAsync(String, CancellationToken) Method

This is preliminary documentation and is subject to change.

Request a token for operation.

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public Task<string> GetTokenAsync(
	string tokenType,
	CancellationToken cancellationToken
)

Parameters

tokenType  String
The name of token.
cancellationToken  CancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:WikiClientLibrary.Sites.WikiSite.GetTokenAsync(System.String,System.Threading.CancellationToken)"]

Return Value

TaskString
Exceptions
ExceptionCondition
ArgumentExceptionSpecified token type cannot be recognized.
Remarks
See https://www.mediawiki.org/wiki/API:Tokens .
See Also