Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send JSON post body data #6

Closed
donaldpiret opened this issue Oct 24, 2011 · 5 comments
Closed

How to send JSON post body data #6

donaldpiret opened this issue Oct 24, 2011 · 5 comments
Assignees

Comments

@donaldpiret
Copy link
Contributor

Hi,

I'm trying to make an OAuth request using raw JSON data as post body but am having trouble figuring out how to do that since your fetch method requires the parameters to be an array.
Could you enlighten me on how this would work?

@adoy
Copy link
Owner

adoy commented Oct 24, 2011

Hi,

This is a very good point. The actual code don't allow this. I'll make the change soon (or you can submit a patch if you have some time) to add this feature.

Thanks
Pierrick

@ghost ghost assigned adoy Oct 24, 2011
@donaldpiret
Copy link
Contributor Author

Hi Pierrick,
Thanks a lot, I would love to be able to contribute but unfortunately my PHP knowledge is very very limited which is why your library was a godsent!

@adoy
Copy link
Owner

adoy commented Oct 26, 2011

Hi

You can now send raw data in the fetch method. The "parameters" array now support array or raw data.
If you can test it and send me feedback it will be very appreciated.

Thanks
Pierrick

@adoy adoy closed this as completed Oct 26, 2011
@donaldpiret
Copy link
Contributor Author

Hi Pierrick, it works great, thanks!

@adoy
Copy link
Owner

adoy commented Oct 27, 2011

Perfect :) I also merged your pull request. Thanks for contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants