cleentfaar / clslackbundle Goto Github PK
View Code? Open in Web Editor NEWSymfony bundle that let's you interact with the Slack API and webhooks.
License: MIT License
Symfony bundle that let's you interact with the Slack API and webhooks.
License: MIT License
Hi, I did composer update few days ago and since then I cannot sent my message to slack. Here is error
Failed to send payload
500 Internal Server Error - SlackException
2 linked Exceptions:
SlackException » RequestException »
[3/3] SlackException: Failed to send payload +
[2/3] SlackException: Failed to send data to the Slack API +
[1/3] RequestException: cURL error 3: malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Slack-bundle versions 0.15.4 and 0.15.1 is raising erros in guzzlehttp->createRequest error due to guzzlehttp version. Looks like guzzlehttp has new versions and its not locked in slack-bundle composer.json. Possible solutions:
Change slack-bundle ApiClient.php:createRequest method to use new guzzlehttp structure (not sure how to do it. If someone points me to the right direction, I can create a PR).
Force slack-bundle to use version 4.2.3 of guzzlehttp.
I've just added "guzzlehttp/guzzle": "4.2.3", in my composer.json and it's working fine now.
Thanks!
This bundle seems to be stable enough, is it time to release v1.0.0
? This would help with regards to composer minimum stablility, everything below v1
is seen as unstable.
The idea is to be able to update jms to be compatible with Sf3
Much of the code has become overly complicated in attempts to suit just about any usecase. My plan is to remove much of this clutter and have only a few classes left that deal with API interactions.
I've created an issue here so people can add their own ideas; I will try to implement every one of them as long as they are not completely insane 😄.
I'm trying use attachment, however, I can't.
I'm using this:
public function indexAction()
{
$payload = new ChatPostMessagePayload();
$payload->setChannel('#saopaulo-dev-qa'); // Channel names must begin with a hash-sign '#'
$attachment = new Attachment();
$attachment->setText('Test Text');
$attachment->setColor('good');
$attachment->setTitle('Teste Title');
$attachmentField = new AttachmentField();
$attachmentField->setTitle('Test Title Field');
$attachmentField->setValue('Test Value Field');
$attachment->addField($attachmentField);
$payload->addAttachment($attachment);
$response = $this->get('cl_slack.api_client')->send($payload,'xoxb-194306641143-i99KHJANwLCZTS84qpFR4G7z');
if ($response->isOk()) {
// do what you want...
} else {
echo sprintf('Something seemed to have gone wrong: %s', $response->getErrorExplanation());
}
}
and the response is that: Something seemed to have gone wrong: Unknown error (invalid_array_arg)
I not found in the documentation how to use an attachment, maybe I use badly. Anybody help me, please?
Please add symfony 4 compatibility
Is Symfony 2.4 a real requirement? I have a project using Symfony 2.2 and can't install the bundle using composer. Thanks!
I used the bundle on version 0.12.1 and it worked great.
Today by running a composer update the slack library got upgraded to 0.12.3 and it doesn't work anymore. My symfony silently crashes when instantiating my service with a dependency on cl_slack.api_client.
I have now way to go back to previous setup because the bundle requires "cleentfaar/slack": "~0.12" that fetches refactored slack library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.