My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
JSONRPC  
JSONRPC interface methods
json-rpc, daemon
Updated Jan 25, 2012 by egikpetrov

Introduction

Initial documentation on JSON-RPC interface in eisakltdcpp-daemon

Details

List of all available & worked methods:

magnet.add

  • Small Description: Add queue for magnet.
  • Args: magnet(string), download directory(string)
  • Return : 0 | 1 (integer)

daemon.stop

  • Small Description: Stop daemon.
  • Args : none
  • Return : 0 | 1 (integer)

hub.del

  • Small Description: Disconnect from hub.
  • Args: Huburl(string)
  • Return: 0 | 1 (integer)

hub.say

  • Small Description: Add message on hub.
  • Args: huburl (string), message (string)
  • Return: 0 | 1 (integer)

hub.pm

  • Small Description: Add private message on hub.
  • Args: huburl (string), nick(string), message (string)
  • Return: "Message send on hub: @huburl@" | "@huburl@ not connected" (string)

hub.list

  • Small Description: Return list of connected hubs in string.
  • Args: separator (string)
  • Return: @list of hubs in string with separator@ (string)

hub.getchat

  • Small Description: Return last messages in chat on target hub
  • Args: huburl(string), separator(string)
  • Return: @last messages on huburl@ (string)

share.add

  • Small Description: Add dir in share.
  • Args: directory(string), virtual name (string)
  • Return: 0 | 1 (integer)

share.rename

  • Small Description: Rename dir in share
  • Args: directory(string), virtual name (string)
  • Return: { 0 | 1 (integer) } || {ShareException (string)}

share.del

  • Small Description: Delete dir from share.
  • Args: virtual name of directory (string)
  • Return: 0 | 1 (integer)

share.list

  • Small Description: Return list of shared directories in string
  • Args: separator(string)
  • Return: @list of shared directoriess in string with separator@ (string)

share.refresh

  • Small Description: Run refresh share.
  • Args : none
  • Return: 0 | 1 (integer)

search.send

  • Small Description: Send search on all hubs by string.
  • Args: search string(string)
  • Return: 0 | 1 (integer)

search.getresults

  • Small Description: Get search results from all | set huburl.
  • Args: huburl(string)
  • Return: @search results@ (array of map)

show.version

  • Small Description: Return full client version in string.
  • Args: none
  • Return: @version@ (string)

show.ratio

  • Small Description: Return client ratio in string.
  • Args: none
  • Return: @ratio@ (string)

Proporsal methods:

queue.list

  • Small Description: Return queue list.
  • Args: none
  • Return: @queue list@ (map of map)

queue.listtargets

  • Small Description: Return queue targets in string.
  • Args: separator (string)
  • Return: @queue list targets@ (string)

queue.move

  • Small Description: Move queue item from source to target.
  • Args: source (string), target (string)
  • Return: 0 | 1 (integer)

queue.remove

  • Small Description: Remove queue item by target.
  • Args: target (string)
  • Return: 0 | 1 (integer)

search.clear

  • Small Description: Remove search results by huburl.
  • Args: huburl (string)
  • Return: 0 | 1 (integer)

Actual API here(RU)


Sign in to add a comment
Powered by Google Project Hosting