cdaguerre / php-trello-api

A simple Object Oriented wrapper for the Trello API, written in PHP5.
http://cdaguerre.github.io/php-trello-api
MIT License
254 stars 120 forks source link

403 deprecated #95

Open darkvovich opened 7 months ago

darkvovich commented 7 months ago

Not workin anymore since api updated from Atlassian: https://developer.atlassian.com/changelog/#CHANGE-1459

403 ERROR The request could not be satisfied. Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. Generated by cloudfront (CloudFront) Request ID: m_m-gAKPJn8VCHIvdphdRLMNZi1qeEtLsWejL8-pHnLNgrkYlzZIew=

xsbr commented 7 months ago

php-trello-api sends all parameters (too) as body content in GET requests:

https://github.com/cdaguerre/php-trello-api/blob/02413f3ade1275e5a3e4123c1b7a856cdeeeb1ea/lib/Trello/HttpClient/HttpClient.php#L204

I added an if to ignore the body content when the method is GET: https://gist.github.com/xsbr/bf4918814c7a0c9b5c8a4849f442749d