2017 © Pedro Peláez
 

library zf2-tvkur-api-php-client

Tvkur Api Php Sdk for zf2

image

noc-med/zf2-tvkur-api-php-client

Tvkur Api Php Sdk for zf2

  • Saturday, July 4, 2015
  • by semihs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Tvkur Api Php SDK For Zf2

Introduction

This module has been written for TVKUR API, (*1)

Installation

For the installation uses composer composer. Add this project in your composer.json:, (*2)

"require": {
    "noc-med/zf2-tvkur-api-php-client": "dev-master"
}

if you don't have the composer.phar (https://getcomposer.org/download/), (*3)

Requirements

Php 5.5 or Higher versions. Php curl extension is needed. zendframework/zend-http, (*4)

Configuration

module.tvkurapi.global.php

$configs = array (
    'tvkur' => array(
        'api_url' => 'https://api.tvkur.com',
        'authentication' => array(
            'oauth' => array(
                'grant_type' => 'client_credentials',
                'client_id' => '61414062410',
                'client_secret' => '18f98c0c61d091c985c1f4ebb5439158',
                // 'username' => '',
                // 'password' => '',
            )
        )
    )
)

Using

$tvkurApiClient = $this->getServiceLocator('ZfTvkurApiClient');
$response = $tvkurApiClient->video()->get($id, (array) $queryParams);

Response content, (*5)

$response->getJsonResponse(); //salt json body
$response->getArrayResponse(); //salt array body

$response->getContent(); //array video or stream array content
$response->getLinks(); //array prev next self links
$response->getPageCount(); //integer total page count
$response->getPageSize(); //integer items count per page
$response->getTotalItems(); //integer total items count

The Versions

04/07 2015

dev-master

9999999-dev

Tvkur Api Php Sdk for zf2

  Sources   Download

proprietary

by Avatar semihs