2017 © Pedro PelĂĄez
 

library kebhub-api

First version of Kebhub API for tests

image

guillaumebarranco/kebhub-api

First version of Kebhub API for tests

  • Thursday, March 12, 2015
  • by guillaumebarranco
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kebhub-API

A Repository for out Kebhub API utilisation, (*1)

$settings = array( 'client_id' => "YOUR CLIENT ID", 'secret_id' => "YOUR SECRET ID", 'api_key' => "YOUR API KEY" );, (*2)

$type = 'twitter'; // choices : "twitter", "instagram", "all"
$fields = 'all'; // choices : "text, picture, date, title, type, link" OR "all"
$limit = '3'; // choices every number more than "0"

$kebhub = new KebhubAPIGet($settings); // Launch the API class with your settings

$access_token = $kebhub->getAccessToken(); // Get your access token 

$url = 'http://kebhub.com/api/get/'.$type.'/'.$limit.'/'.$fields.'?access_token='.$access_token; 
// Make the url request with your settings and     access_token

$json = $kebhub->performRequest($url, true); // šPerform the request and it's done !
$datas = json_decode($json, true);

, (*3)

The Versions

12/03 2015

dev-master

9999999-dev https://github.com/guillaumebarranco/Kebhub-API

First version of Kebhub API for tests

  Sources   Download

GNU Public License

api php kebhub