Releases: drsdre/yii2-wordpress-api
Compatibility with Yii2 2.0.14
Enhanced errors and Yii2 7.1 compatibility
The error code is now also returned in case of error as it contains sometimes valuable data for figuring out what is wrong. Enhance in code documentation and made sure to extend from BaseObject instead of invalid Object.
uploadFile and yii2-authclient 2.1.3
Implemented new function to upload files (to the media library), set minimum yii2-authclient to 2.1.3 to include the get parameter oauth1 bugfix, show more details for error messages and handle status code 410 as a specific case of 404.
Improve error handling and fix delete
Error handling after call can handle more situations. Fixed deleteData call by making sure it's including oAuth1 data in header. Uses a fixed version of yii2-authclient to correctly build signature when URL's are used with GET parameters (like delete function with GET parameter force=true).
Bug fix capitalisation OAuth1
2.0.1 Fix capitalisation of OAuth1.
Functions renamed and url base
Data manipulation functions renamed to http equivalent. Base API url changed to /wp-json to also allow to access other API's beyond build in v2 Rest API.
Add patchData action.
1.1 Add patchData function. Change context for update and edit to 'edit'.
First Release
1.0 Fixed asRaw to return content instead of response object.