-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add Chatwork Notifier Bridge #47373
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
Conversation
try { | ||
$statusCode = $response->getStatusCode(); | ||
} catch (TransportExceptionInterface $e) { | ||
throw new TransportException('Could not reach the remote Discord server.', $response, 0, $e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new TransportException('Could not reach the remote Discord server.', $response, 0, $e); | |
throw new TransportException('Could not reach the remote Chatwork server.', $response, 0, $e); |
$originalContent = $message->getSubject(); | ||
$result = $response->toArray(false); | ||
$errors = $result['errors']; | ||
throw new TransportException(sprintf('Unable to post the Chatwork message: "%s" (%d: "%s").', $originalContent, $statusCode, implode(', ', $errors)), $response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new TransportException(sprintf('Unable to post the Chatwork message: "%s" (%d: "%s").', $originalContent, $statusCode, implode(', ', $errors)), $response); | |
throw new TransportException(sprintf('Unable to post the Chatwork message: "%s" (%d: %s).', $originalContent, $statusCode, implode(', ', $errors)), $response); |
If you received an error from fabbot here, that's a false positive.
@@ -0,0 +1,19 @@ | |||
Chatwork Notifier | |||
=============== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=============== | |
================= |
@fabpot Thank you, I applied those suggestions. |
571eda6
to
6dcab51
Compare
Thank you @Ippey. |
@fabpot Created PR. |
Add Chatwork Notifier Bridge.
Chatwork is one of the popular chat tools in Japan.
This bridge allows sending messages to Chatwork via Chatwork API.