wordpress_client library Null safety

A library for interacting with Wordpress REST API with support for Authorization using JWT and Basic Auth.

All requests are created using a RequestBuilder class which is designed to generate requests in a fluent manner. Responses can contain statistical data such as Time taken for the request to finish as Duration, Any errors that might have occured, and the raw response from the server.

Classes

AuthorizationBuilder
BasicAuth
The most basic authentication system using username and password. [...]
BasicJwtAuth
Most widely used authentication system, which is most easy to integrate and secure (when compared with basic auth) [...]
Callback
CancelToken
You can cancel a request by using a cancel token. One token can be shared with different requests. when a token's cancel method invoked, all requests with this token will be cancelled.
Category
IAuthorization
Base class for all authorization types. [...]
ICreateOperation<T, Y>
IDeleteOperation<T, Y>
IInterface
The base of all custom requests. extend from this interface on your custom request interfaces to get the internal requester client for all your requests.
IListOperation<T, Y>
InternalRequester
IQueryBuilder<TRequestType, YResponseType>
IRetrieveOperation<T, Y>
ISerializable<T>
IUpdateOperation<T, Y>
Media
Pair<T1, T2>
Post
Request<TResponseType>
ResponseContainer<T>
Tag
UsefulJwtAuth
Similar to BasicJwtAuth, this plugin is in active development and has much more features than the previous one. It is recommended to use this plugin instead of the previous one. [...]
User
WordpressClient

Extensions

ParseToString

Functions

getCommentStatusFromValue(String? value) CommentStatus
getContentStatusFromValue(String? value) ContentStatus
getFormatFromValue(String? value) PostFormat
getMediaFilterStatusFromValue(String? value) MediaFilterStatus
getStatusFromValue(String? value) Status

Enums

AuthorizationType
CommentStatus
ContentStatus
FilterCategoryTagSortOrder
FilterContext
FilterMediaType
FilterOrder
FilterPostSortOrder
FilterUserSortOrder
HttpMethod
Locale
MediaFilterStatus
PostAvailabilityStatus
PostFormat
Status
TaxonomyRelation