首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > PHP包装XBMC的RPC和http-api API

PHP包装XBMC的RPC和http-api API

  • 资源大小:3.04 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php XBMC rpc 包装

资 源 简 介

A PHP library for interacting with XBMC using JSON-RPC and XBMC"s HTTP-API. Inspiration was drawn from Jason Bryant-Greene"s php-json-rpc (https://bitbucket.org/jbg/php-json-rpc/src). First, include the xbmc.php file: include("xbmc.php"); Next, create the two classes in the below format: $xbmcJson = new xbmcJson("username:password@IP:Port"); $xbmcHttp = new xbmcHttp("username:password@IP:Port"); Then you can start making calls: JSON-RPC API (http://wiki.xbmc.org/index.php?title=JSON_RPC) Commands are sent using the following syntax: $xbmcJson->NAMESPACE->COMMAND(array(PARAM1 => VALUE1, PARAM2 => VALUE2, etc..)); eg: $xbmcJson->VideoLibrary->GetRecentlyAddedMovies(); HTTP-API API (http://wiki.xbmc.org/index.php?title=WebServerHTTP_API) Commands are sent using the following sy

文 件 列 表

xbmc.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP