GithubHelp home page GithubHelp logo

wppconnect-team / wppconnect-laravel-client Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 10.0 82 KB

Uma API simples com empacotador Guzzle, fornecendo acesso fácil aos endpoints do WPPConnect Server.

License: Apache License 2.0

PHP 100.00%
facade laravel whatsapp whatsapp-api whatsapp-bot whatsapp-chat wppconnect

wppconnect-laravel-client's People

Contributors

bgastaldi avatar edgardmessias 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wppconnect-laravel-client's Issues

EXEMPLO COM FACADE (error)

.......
            if($response['status'] == 'Success'):
                Session::put('token', $response['token']);
                Session::put('session', $response['session']);
            endif;
....

No codigo acima, na linha if($response['status'] == 'Success'): o retorno de $response['status'] é success, fazendo com que apresente erro.
eu corrigir colocando success e funcionou tranquilo.

send-buttons

Hi,

Can give me example to send buttons?

I found that the wppconnect-server endpoint have "/api/:session/send-buttons" but when i try to send the button, no message received at the destination number

below are my code

Wppconnect::make($this->url);
                    $response = Wppconnect::to('/api/' . $setting->session . '/send-buttons')->withBody([
                        'phone' => $request->phone,
                        'title' => $request->title,
                        'buttons' => [
                            ["buttonId" => '1', "buttonText" => ["displayText" => 'Text of Button 1'], "type" => 1],
                            ["buttonId" => '2', "buttonText" => ["displayText" => 'Text of Button 2'], "type" => 1],
                            ["buttonId" => '3', "buttonText" => ["displayText" => 'Text of Button 3'], "type" => 1]
                        ]
                    ])->withHeaders([
                        'Authorization' => 'Bearer ' . $setting->token
                    ])->asJson()->post();

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.