Skip to content

coedo/garapon4php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garapon TV APIs

How To Use

Install

cd app/vendors
git clone git@github.com:coedo/garapon4php.git Garapon
mv developer_info.json.sample developer_info.json
{"user_id":"login_user_id","password":"md5sum for password","developer_id":"garapon developer id"}

ガラポンTVのIPアドレス等がすでに分かっている場合は以下のように

{
    "user_id": "login_user_id",
    "password": "md5sum for password",
    "developer_id": "garapon developer id",
    "global_ip": "xxx.xxx.xx.xx",
    "port": "12345"
}

Example

<?php

require_once '../Garapon/Garapon.php';

$garapon = new \CoEdo\Garapon\Garapon();
$results = $garapon->search('favorite', array(
    'rank' => 'all',
));
var_dump($garapon->response->success);
var_dump($results);

$results = $garapon->search('EPG', ['key' => '地方裁判所']);
var_dump($results);

Methods

  • search($type, $data = array(), $options = array())
    • string $type
      • 'EPG', 'Caption', 'Program', 'Favorite'
    • array $data
      • Postするデータ
    • array $options
      • オプション

About

Garapon TV APIs wrapper for php

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages