public class MediaWikiApi extends DefaultApi10a
| Constructor and Description |
|---|
MediaWikiApi(String indexUrl,
String niceUrlBase) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenEndpoint() |
String |
getAuthorizationBaseUrl() |
String |
getRequestTokenEndpoint() |
static MediaWikiApi |
instance()
The instance for wikis hosted by the Wikimedia Foundation.
|
static MediaWikiApi |
instanceBeta()
The instance for wikis in the Wikimedia Foundation’s Beta Cluster.
|
createService, getAccessTokenExtractor, getAccessTokenVerb, getAuthorizationUrl, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getRequestTokenVerb, getSignatureService, getSignatureType, getTimestampService, isEmptyOAuthTokenParamIsRequiredpublic MediaWikiApi(String indexUrl, String niceUrlBase)
indexUrl - The URL to the index.php of the wiki. Due to a
MediaWiki bug, some requests must currently use the non-nice URL.niceUrlBase - The base of nice URLs for the wiki, including the trailing slash. Due to
another MediaWiki bug, some requests must currently use
the nice URL.public static MediaWikiApi instance()
public static MediaWikiApi instanceBeta()
public String getRequestTokenEndpoint()
getRequestTokenEndpoint in class DefaultApi10apublic String getAuthorizationBaseUrl()
getAuthorizationBaseUrl in class DefaultApi10apublic String getAccessTokenEndpoint()
getAccessTokenEndpoint in class DefaultApi10aCopyright © 2018. All rights reserved.