Struct mwapi::Client [−][src]
pub struct Client { /* fields omitted */ }
Implementations
Get a Builder
instance to further customize the API Client
.
The API URL should be the absolute path to api.php.
Same as Client::builder
, but with defaults tuned for bot operation.
Same as Client::builder
, but with defaults tuned for interactive operation.
Get an API Client
instance. The API URL should be the absolute
path to api.php.
Make an arbitrary API request using HTTP GET.
Make an API POST request with a CSRF token. The correct token will automatically be fetched, and in case of a bad token error (if it expired), a new one will automatically be fetched.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more