-
Notifications
You must be signed in to change notification settings - Fork 89
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
Guzzle 401 response sending data by post #31
Comments
bump |
+1 I really have a hard time with sending post param with this librairie. Would need some more example. Can't seem to add POST params to the body and get authenticated by an API |
@carlb-jomedia @Fynkymynky welcome from the future. :) |
anyone managed to find a solution for this issue? |
bump |
Hi guys I used git hub copilot to find the solution. To send post request use my code
|
I've been using Guzzle to get data from my API, but when I try and post data to the API I get the following error:
The code I'm using to send the data looks like this
Using the same client to get data works fine
Using OAuth I've managed to post the data to the API like this
Sending the array to the API this way works fine.
I'm using
guzzlehttp/oauth-subscriber
for all the oauth side.What am I doing wrong with Guzzle?
Thanks
The text was updated successfully, but these errors were encountered: