-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
Added icon_emoji, icon_url, link_names params
Params added
Please could you rebase and force push to avoid the merge commit? |
Ping @notifymehq/owners for review. |
For future? |
What do you mean? |
Huh? |
Also a 👍 for me. |
Changed the "body" request to "form_params". This is fixed that error: Passing in the "body" request option as an array to send a POST request has been deprecated. Please use the "form_params" request option to send a application/x-www-form-urlencoded request, or a the "multipart" request option to send a multipart/form-data request.
(; Haha, funny. I'm using Github for Windows and I couldn't find that option. So, totally it's fault. (; Yes, a 👍 for you, @jbrooksuk |
Fixed problem with guzzle's new version
Now there are even more merge commits. ;( |
Just open the cli and run the git commands manually. GitHub for windows doesn't have a way to force push. |
Ok, I'll try. |
You need to |
If it says that doesn't exist, run |
Why the guzzle change? |
The new version of guzzlehttp is doesn't pass the 'body' option for the request. It's deprecated and changed to 'form_params'. When I try, it's give an error: Passing in the "body" request option as an array to send a POST request So, I changed it. |
We need to support both versions of guzzle. |
if (version_compare(ClientInterface::VERSION, '6') === 1) {
$request['form_params'] = $params;
} else {
$request['body'] = $params;
} /cc @Balamir |
There might be cases in the other adapters too. |
Could we use like that:
/cc @joecohens This should be apply to Pushover, Twilio, Yo adapters too. |
This reverts commit eb80a40b505f7713234235684eb24491d00c332a.
Added GuzzleHttp version compare to fix the post problems.
@Balamir maybe it's simpler $requestBodyKey = (version_compare( ClientInterface::VERSION, '6' ) === 1) ? 'form_params' : 'body'; Also can you squash please? |
@joecohens What do you mean? |
Make it into one commit :) |
No description provided.