dev-master
9999999-dev https://github.com/Christian-Krupa/HubicApiBundlea symfony2 service wrapper which simplifies api calls to hubic.com
MIT
The Requires
by Christian Krupa
oauth ovh hubic
Wallogit.com
2017 © Pedro Peláez
a symfony2 service wrapper which simplifies api calls to hubic.com
This Bundle provides a simple integration of the hubiC-API (https://api.hubic.com/) for Symfony2. The API wrapper is not the "official" hubic.com library for PHP/Symfony2!, (*1)
<?php
$hubic_api = $this->container->get('ckrupa_hubic_api');
if(!$hubic_api->isLoggedIn())
{
die('invalid oauth token!');
}
$result = $hubic_api->send('/account/credentials');
$ php composer.phar require "ckrupa/hubic-api-bundle":"dev-master"
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
new Ckrupa\HubicApiBundle\CkrupaHubicApiBundle(),
// ...
);
}
oAuth is done by HWIOAuthBundle so checkout the documentation., (*2)
here is an sample config for hwi 0.3, (*3)
a symfony2 service wrapper which simplifies api calls to hubic.com
MIT
oauth ovh hubic