ev/evalandgo-client-bundle

Client API Bundle for Evalandgo

2.3.0 2015-09-17 13:15 UTC

This package is auto-updated.

Last update: 2024-05-15 16:47:39 UTC


README

Client API Bundle for Evalandgo.

Generally this bundle is based on EvalandgoApiClient component.

Installation

In composer.json file, add :

{
    "require": {
        "ev/evalandgo-client-bundle": "2.2.*"
    }
}

In app/AppKernel.php file, add :

public function registerBundles()
{
    return array(
        // ...
        new EV\EvalandgoClientBundle\EVEvalandgoClientBundle(),
        // ...
    );
}

Examples

Configuration example

In config.yml

# Evalandgo Client
ev_evalandgo_client:
    users:
        myevalandgo:  { client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET' }

Usage Example

In a Controller action

public function indexAction() {
    $client = $this->get('ev_evalandgo_client.myevalandgo.client');

    $questionnaires = $client->resource('questionnaire')->all();

    return array(
        'questionnaires' => $questionnaires
    );
}

How to contribute

To contribute just open a Pull Request with your new code taking into account that if you add new features or modify existing ones you have to document in this README what they do.

License

EVEvalandgoClientBundle is licensed under MIT