Giter Site home page Giter Site logo

exeuapaiiobundle's Introduction

ExeuApaiIOBundle

Symfony 2 integration of the ApaiIO-library.

Installation

All you have to do is to add the following lines to your composer.json:

{
    "require": {
        "exeu/apai-io-bundle": "dev-master"
    }
}

After you've done this tell composer to update your vendors:

$ php composer.phar update exeu/apai-io-bundle

Finally register the new Bundle with your application:

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Exeu\ApaiIOBundle\ExeuApaiIOBundle(),
    // ...
);

Minimal configuration

To get this bundle working you have to add the following to your config.yml

# app/config/config.yml

exeu_apai_io:
    accesskey: YOUR ACCESSKEY
    secretkey: YOUR SECRETKEY
    associatetag: YOUR ASSOCIATE TAG
    country: COUNTRY (eg. de, com)

Optional configuration

If you want to change the requesttype or the responsetransformer you can do this by adding it to your config file:

# app/config/config.yml

exeu_apai_io:
    request: \ApaiIO\Request\Soap\Request
    response: \ApaiIO\ResponseTransformer\ObjectToArray

Usage

To work with ApaiIO you need to get the new service for example in your controller:

<?php

$apaiIo = $this->get('apaiio');

Now you can execute your first searchrequest:

<?php

// ...
$search = new \ApaiIO\Operations\Search();
$search->setCategory('DVD');
$search->setActor('Bruce Willis');
$search->setKeywords('Die Hard');

$formattedResponse = $apaiIo->runOperation($search);

var_dump($formattedResponse);

For more detailed information See: ApaiIO - Examples

Documentation of ApaiIO: ApaiIO - Documentation

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.