2017 © Pedro Peláez
 

symfony-bundle hubic-api-bundle

a symfony2 service wrapper which simplifies api calls to hubic.com

image

ckrupa/hubic-api-bundle

a symfony2 service wrapper which simplifies api calls to hubic.com

  • Saturday, April 4, 2015
  • by Christian-Krupa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HubicApiBundle

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)

Usage

<?php
$hubic_api = $this->container->get('ckrupa_hubic_api');
if(!$hubic_api->isLoggedIn())
{
    die('invalid oauth token!');
}
$result = $hubic_api->send('/account/credentials');

Installation

Step 1: Composer require

$ php composer.phar require "ckrupa/hubic-api-bundle":"dev-master"

Step 2: Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
        new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
        new Ckrupa\HubicApiBundle\CkrupaHubicApiBundle(),
        // ...
    );
}

Step 3: Setup oAuth

oAuth is done by HWIOAuthBundle so checkout the documentation., (*2)

Sample configuration

here is an sample config for hwi 0.3, (*3)

The Versions

04/04 2015

dev-master

9999999-dev https://github.com/Christian-Krupa/HubicApiBundle

a symfony2 service wrapper which simplifies api calls to hubic.com

  Sources   Download

MIT

The Requires

 

by Christian Krupa

oauth ovh hubic