 | WikiSiteGetTokenAsync(String, Boolean) Method |
This is preliminary documentation and is subject to change.
Request a token for operation.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic Task<string> GetTokenAsync(
string tokenType,
bool forceRefetch
)
Public Function GetTokenAsync (
tokenType As String,
forceRefetch As Boolean
) As Task(Of String)
Dim instance As WikiSite
Dim tokenType As String
Dim forceRefetch As Boolean
Dim returnValue As Task(Of String)
returnValue = instance.GetTokenAsync(tokenType,
forceRefetch)
public:
Task<String^>^ GetTokenAsync(
String^ tokenType,
bool forceRefetch
)
member GetTokenAsync :
tokenType : string *
forceRefetch : bool -> Task<string>
Parameters
- tokenType String
- The name of token.
- forceRefetch Boolean
- Whether to fetch token from server, regardless of the cache.
Return Value
TaskString
Exceptions
RemarksSee https://www.mediawiki.org/wiki/API:Tokens .
See Also