No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 20 commits ahead, 15 commits behind doyoubuzz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Controller/Showcase
DependencyInjection
DoYouBuzz
Model
Resources/config
Showcase
Tests
.gitignore
.travis.yml
DYBApiBundle.php
DYBApiBundle.php.fix-case
DybApiBundle.php
README.md
composer.json
phpunit.xml.dist

README.md

DoYouBuzz API connection bundle

To do some custom needs , do not forget to fork and to rtfm Documentation.

Requirements

You must :

  • have a symfony2 projet : >= v2.1
  • have a DoYouBuzz API Key and API Secret
  • have a local webserver with cURL installed
  • know if you have a Partner or Application access

Installation

##With composer

dyb/api-dundle

"require": { "dyb/api-bundle": "dev-master" },

#Configuration

Register Bundle :

Add this line to your AppKernel.php :

new Dyb\ApiBundle\DybApiBundle(),

Declare the route in your routing.yml :

dyb_showcase:
    resource: "@DybApiBundle/Controller/Showcase/"
    type:     annotation
    prefix:   /dyb/showcase/

Add the line below to your config. For example in your app/config/config.yml :

dyb_api:
    showcase:
        key:       xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        secret:    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

#Features

##Showcase :

###Get the list of your users, paginated :

[
    {"username":"john@doe.me","email":"john@doe.me","firstname":"john","lastname":"doe","id":311243},
    {"username":"jane@doe.me","email":"jane@doe.me","firstname":"jane","lastname":"doe","id":311245}
]

Go to this url : /dyb/showcase/list

###Get a choice list of your users

{
    "1":"John Doe",
    "2":"Jane Doe"
}

Go to this url : /dyb/showcase/choice