logical-and / php-oauth

Support for authenticating users (without dep from any framework) using both OAuth1 and OAuth2 methods
https://packagist.org/packages/and/oauth
MIT License
43 stars 13 forks source link

Request body should be allowed to be a string #21

Open rtheunissen opened 9 years ago

rtheunissen commented 9 years ago

You are currently forced to provide an array for the body parameter of AbstractService::httpRequest, but it's often a requirement to send a string rather than form data. Buzz/Browser allows for this using call as an alternative to submit.

The solution is to allow body to be a string, and use call instead of submit in this case.

logical-and commented 9 years ago

Thank you for suggestion. I will review it soon.