Giter VIP home page Giter VIP logo

clslackbundle's People

Contributors

cleentfaar avatar devolicious avatar nousefreak avatar scrutinizer-auto-fixer avatar webcome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clslackbundle's Issues

Unknown error (invalid_array_arg)

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?

Failed to send payload

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)

Can't make it work since the latest refactoring

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.

Symfony v 2.4 requirement

Is Symfony 2.4 a real requirement? I have a project using Symfony 2.2 and can't install the bundle using composer. Thanks!

Issue with guzzlehttp version: ConnectException: cURL error 6: Could not resolve host: POST

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:

  1. 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).

  2. 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!

Refactor codebase to a simpler approach

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 😄.

Release 1.0 version

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.