2017 © Pedro Peláez
 

library media-net-api

MediaNet API support for ZF2 application

image

polianych/media-net-api

MediaNet API support for ZF2 application

  • Tuesday, May 28, 2013
  • by polianych
  • Repository
  • 0 Watchers
  • 2 Stars
  • 251 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MediaNetApi

MediaNet API support for ZF2 application, (*1)

Introduction

This module currently supports the following calls with API version [2011-10-07] * track.get * track.getLocations * search.getGeoLocation * purchase.useBalance * Radio.GetMediaLocation, (*2)

Please see: API Docs, (*3)

Requirements

Contributors

  • [Alexey Poliakov] (https://github.com/polianych) (aka polianych)

Install

  1. Add
"polianych/media-net-api": "dev-master"

to your composer.json file and run php composer.phar update. 2. Add 'MediaNetApi' to your config/application.config.php file under the modules key., (*4)

Configuration

Add this section to your application config, (*5)

...
'medianet_api' => array(
        'base_url' => 'https://api.mndigital.com',
        'api_key' => 'wsQdZA8EDdruT4CV62Fi48JSl',
        'secret' => 'PLJuvKAoi65',
        'format' => 'json', //Currently supports only JSON format
        'cc' => 'gb',
    ),
...

Example Usage

Retrieve by MediaNetID (mnetid) the metadata about a specific track, including artist and album info, etc., (*6)

$mediaNet = $this->getServiceLocator()->get('MediaNetApi');
$request = new MediaNetApi\Request\Track\Get();
$request->setMnetId($mnetId);
//Returns ArrayObject of MediaNet API response or Zend Response if second param true
$result = $mediaNet->send($request);

The Versions

28/05 2013

dev-master

9999999-dev https://github.com/polianych/MediaNetApi

MediaNet API support for ZF2 application

  Sources   Download

MIT

The Requires

 

by Alex Poliakov

api zf2 zend module medianet

28/05 2013

0.1.1

0.1.1.0 https://github.com/polianych/MediaNetApi

MediaNet API support for ZF2 application

  Sources   Download

MIT

The Requires

 

by Alex Poliakov

api zf2 zend module medianet

13/03 2013

0.1.0

0.1.0.0 https://github.com/MurgaNikolay/SmartyModule

MediaNet API support for ZF2 application

  Sources   Download

MIT

The Requires

 

by Alex Poliakov

api zf2 zend module medianet