Goodreads Developers discussion

60 views
examples / showcase > PHP Client

Comments Showing 1-1 of 1 (1 new)    post a comment »
dateUp arrow    newest »

message 1: by Israel (last edited Sep 11, 2017 12:04PM) (new)

Israel (iisisrael) | 4 comments The (unofficial) PHP Goodreads API client is released here. See a (partial) example implementation (which assumes you've already used the base client methods to gain an access token) providing a method to hit the create review API here. Requests to this and other similar APIs fail with a 401 "not authorized" response (e.g. edit review, delete review, create comment), but requests signed with the same access token to other APIs are successful (e.g. add book to shelf).

The purpose of the ClientTrait in the example is so it can be shared among classes extending other League\OAuth1\Client\Server\Server clients, which we have done successfully (e.g. with the Twitter client included in the vendor package).

We have tried circumventing the base Guzzle request stream, sending a manually constructed curl_exec() request, as well as an even more manually constructed cURL system command in an exec(), but no luck. If anyone has any insight into why some authenticated requests using this client are not working, or if you can get them to work, please comment here!


back to top