Skip to content
Communicate with Wannaspeak API (http://fr.wannaspeak.com/)
PHP
Branch: master
Clone or download
Kocal fix(http-client): prevent "Time not sync" error (#20)
fix(http-client): prevent "Time not sync" error
Latest commit 8ac1cf5 Oct 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Api
DependencyInjection
Resources/config
.gitignore
README.md
UPGRADE.md
WannaSpeakBundle.php
composer.json

README.md

WannaSpeakBundle

Communicate with Wannaspeak API (http://fr.wannaspeak.com/)

SensioLabsInsight Scrutinizer Code Quality

Installation

composer require yproximite/wanna-speak-bundle

Note: It's your responsibility to use one of those adapters *For example:

composer require php-http/guzzle6-adapter

Add to your AppKernel:

new Yproximite\WannaSpeakBundle\WannaSpeakBundle(),

Configuration

Credentials and url

// app/config/config.yml:
wanna_speak:
    api:
        credentials:
            account_id: '9999999999'
            secret_key: '0000000000'
        base_url: https://www-2.wannaspeak.com/api/api.php
        test: false

Choose HTTP client

WannaSpeakBundle 2.0 is no longer coupled to Guzzle3. Thanks to Httplug you can now use any library to transport HTTP messages. You can rely on discovery to automatically find an installed client or you can provide a client service name to the configuration (see HttplugBundle).

// app/config/config.yml:
wanna_speak:
    http_client: 'httplug.client'

Full references

// app/config/config.yml:
wanna_speak:
    api:
        credentials:
            account_id: '9999999999'
            secret_key: '0000000000'
        base_url: https://www-2.wannaspeak.com/api/api.php
        test: false
    http_client: 'httplug.client'
You can’t perform that action at this time.