po/tools/rpcc.php

31 lines
704 B
PHP

<?php
require 'include/JsonRPC/Client.php';
use JsonRPC\Client;
$client = new Client('http://www.peachyphotos.com/po/rpc.php');
/*
$result = $client->execute('folders', array('type' => 'user', 'id' => 2,
'offset' => 0, 'limit' => 100, 'order' => 2));
var_dump($result);
$result = $client->execute('folders', array('type' => 'folder', 'id' => 1577,
'offset' => 0, 'limit' => 100, 'order' => 2));
var_dump($result);
$result = $client->execute('albums', array('type' => 'tag', 'id' => 'Panorama',
'offset' => 0, 'limit' => 100, 'order' => 2));
*/
$result = $client->execute('photos', array('type' => 'folder', 'id' => '4120',
'offset' => 0, 'limit' => 100, 'order' => 2));
var_dump($result);
?>