Advertisement
Guest User

JSONRPC

a guest
Jan 29th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 23.83 KB | None | 0 0
  1. {
  2.    "id" : 1,
  3.    "jsonrpc" : "2.0",
  4.    "result" : {
  5.       "commands" : [
  6.          {
  7.             "command" : "JSONRPC.Introspect",
  8.             "description" : "Enumerates all actions and descriptions. Parameter example {\"getdescriptions\": true, \"getpermissions\": true, \"filterbytransport\": true }. All parameters optional",
  9.             "executable" : true,
  10.             "permission" : "ReadData"
  11.          },
  12.          {
  13.             "command" : "JSONRPC.Version",
  14.             "description" : "Retrieve the jsonrpc protocol version",
  15.             "executable" : true,
  16.             "permission" : "ReadData"
  17.          },
  18.          {
  19.             "command" : "JSONRPC.Permission",
  20.             "description" : "Retrieve the clients permissions",
  21.             "executable" : true,
  22.             "permission" : "ReadData"
  23.          },
  24.          {
  25.             "command" : "JSONRPC.Ping",
  26.             "description" : "Ping responder",
  27.             "executable" : true,
  28.             "permission" : "ReadData"
  29.          },
  30.          {
  31.             "command" : "JSONRPC.Announce",
  32.             "description" : "Announce to other connected clients. Parameter example {\"sender\": \"foo\", \"message\": \"bar\", \"data\": \"somedata\" }. data is optional",
  33.             "executable" : true,
  34.             "permission" : "ReadData"
  35.          },
  36.          {
  37.             "command" : "Player.GetActivePlayers",
  38.             "description" : "Returns all active players IDs",
  39.             "executable" : true,
  40.             "permission" : "ReadData"
  41.          },
  42.          {
  43.             "command" : "AudioPlayer.State",
  44.             "description" : "Returns Current Playback state",
  45.             "executable" : true,
  46.             "permission" : "ReadData"
  47.          },
  48.          {
  49.             "command" : "AudioPlayer.PlayPause",
  50.             "description" : "Pauses or unpause playback, returns new state",
  51.             "executable" : true,
  52.             "permission" : "ControlPlayback"
  53.          },
  54.          {
  55.             "command" : "AudioPlayer.Stop",
  56.             "description" : "Stops playback",
  57.             "executable" : true,
  58.             "permission" : "ControlPlayback"
  59.          },
  60.          {
  61.             "command" : "AudioPlayer.SkipPrevious",
  62.             "description" : "Skips to previous item on the playlist",
  63.             "executable" : true,
  64.             "permission" : "ControlPlayback"
  65.          },
  66.          {
  67.             "command" : "AudioPlayer.SkipNext",
  68.             "description" : "Skips to next item on the playlist",
  69.             "executable" : true,
  70.             "permission" : "ControlPlayback"
  71.          },
  72.          {
  73.             "command" : "AudioPlayer.BigSkipBackward",
  74.             "description" : "",
  75.             "executable" : true,
  76.             "permission" : "ControlPlayback"
  77.          },
  78.          {
  79.             "command" : "AudioPlayer.BigSkipForward",
  80.             "description" : "",
  81.             "executable" : true,
  82.             "permission" : "ControlPlayback"
  83.          },
  84.          {
  85.             "command" : "AudioPlayer.SmallSkipBackward",
  86.             "description" : "",
  87.             "executable" : true,
  88.             "permission" : "ControlPlayback"
  89.          },
  90.          {
  91.             "command" : "AudioPlayer.SmallSkipForward",
  92.             "description" : "",
  93.             "executable" : true,
  94.             "permission" : "ControlPlayback"
  95.          },
  96.          {
  97.             "command" : "AudioPlayer.Rewind",
  98.             "description" : "Rewind current playback",
  99.             "executable" : true,
  100.             "permission" : "ControlPlayback"
  101.          },
  102.          {
  103.             "command" : "AudioPlayer.Forward",
  104.             "description" : "Forward current playback",
  105.             "executable" : true,
  106.             "permission" : "ControlPlayback"
  107.          },
  108.          {
  109.             "command" : "AudioPlayer.GetTime",
  110.             "description" : "Retrieve time",
  111.             "executable" : true,
  112.             "permission" : "ReadData"
  113.          },
  114.          {
  115.             "command" : "AudioPlayer.GetTimeMS",
  116.             "description" : "Retrieve time in MS",
  117.             "executable" : true,
  118.             "permission" : "ReadData"
  119.          },
  120.          {
  121.             "command" : "AudioPlayer.GetPercentage",
  122.             "description" : "Retrieve percentage",
  123.             "executable" : true,
  124.             "permission" : "ReadData"
  125.          },
  126.          {
  127.             "command" : "AudioPlayer.SeekTime",
  128.             "description" : "Seek to a specific time. Parameter integer in seconds",
  129.             "executable" : true,
  130.             "permission" : "ControlPlayback"
  131.          },
  132.          {
  133.             "command" : "AudioPlayer.SeekPercentage",
  134.             "description" : "Seek to a specific percentage. Parameter float or integer from 0 to 100",
  135.             "executable" : true,
  136.             "permission" : "ControlPlayback"
  137.          },
  138.          {
  139.             "command" : "AudioPlayer.Record",
  140.             "description" : "",
  141.             "executable" : true,
  142.             "permission" : "ControlPlayback"
  143.          },
  144.          {
  145.             "command" : "VideoPlayer.State",
  146.             "description" : "Returns Current Playback state",
  147.             "executable" : true,
  148.             "permission" : "ReadData"
  149.          },
  150.          {
  151.             "command" : "VideoPlayer.PlayPause",
  152.             "description" : "Pauses or unpause playback, returns new state",
  153.             "executable" : true,
  154.             "permission" : "ControlPlayback"
  155.          },
  156.          {
  157.             "command" : "VideoPlayer.Stop",
  158.             "description" : "Stops playback",
  159.             "executable" : true,
  160.             "permission" : "ControlPlayback"
  161.          },
  162.          {
  163.             "command" : "VideoPlayer.SkipPrevious",
  164.             "description" : "Skips to previous item on the playlist",
  165.             "executable" : true,
  166.             "permission" : "ControlPlayback"
  167.          },
  168.          {
  169.             "command" : "VideoPlayer.SkipNext",
  170.             "description" : "Skips to next item on the playlist",
  171.             "executable" : true,
  172.             "permission" : "ControlPlayback"
  173.          },
  174.          {
  175.             "command" : "VideoPlayer.BigSkipBackward",
  176.             "description" : "",
  177.             "executable" : true,
  178.             "permission" : "ControlPlayback"
  179.          },
  180.          {
  181.             "command" : "VideoPlayer.BigSkipForward",
  182.             "description" : "",
  183.             "executable" : true,
  184.             "permission" : "ControlPlayback"
  185.          },
  186.          {
  187.             "command" : "VideoPlayer.SmallSkipBackward",
  188.             "description" : "",
  189.             "executable" : true,
  190.             "permission" : "ControlPlayback"
  191.          },
  192.          {
  193.             "command" : "VideoPlayer.SmallSkipForward",
  194.             "description" : "",
  195.             "executable" : true,
  196.             "permission" : "ControlPlayback"
  197.          },
  198.          {
  199.             "command" : "VideoPlayer.Rewind",
  200.             "description" : "Rewind current playback",
  201.             "executable" : true,
  202.             "permission" : "ControlPlayback"
  203.          },
  204.          {
  205.             "command" : "VideoPlayer.Forward",
  206.             "description" : "Forward current playback",
  207.             "executable" : true,
  208.             "permission" : "ControlPlayback"
  209.          },
  210.          {
  211.             "command" : "VideoPlayer.GetTime",
  212.             "description" : "Retrieve time",
  213.             "executable" : true,
  214.             "permission" : "ReadData"
  215.          },
  216.          {
  217.             "command" : "VideoPlayer.GetTimeMS",
  218.             "description" : "Retrieve time in MS",
  219.             "executable" : true,
  220.             "permission" : "ReadData"
  221.          },
  222.          {
  223.             "command" : "VideoPlayer.GetPercentage",
  224.             "description" : "Retrieve percentage",
  225.             "executable" : true,
  226.             "permission" : "ReadData"
  227.          },
  228.          {
  229.             "command" : "VideoPlayer.SeekTime",
  230.             "description" : "Seek to a specific time. Parameter integer in seconds",
  231.             "executable" : true,
  232.             "permission" : "ControlPlayback"
  233.          },
  234.          {
  235.             "command" : "VideoPlayer.SeekPercentage",
  236.             "description" : "Seek to a specific percentage. Parameter float or integer from 0 to 100",
  237.             "executable" : true,
  238.             "permission" : "ControlPlayback"
  239.          },
  240.          {
  241.             "command" : "PicturePlayer.PlayPause",
  242.             "description" : "Pauses or unpause slideshow",
  243.             "executable" : true,
  244.             "permission" : "ControlPlayback"
  245.          },
  246.          {
  247.             "command" : "PicturePlayer.Stop",
  248.             "description" : "Stops slideshow",
  249.             "executable" : true,
  250.             "permission" : "ControlPlayback"
  251.          },
  252.          {
  253.             "command" : "PicturePlayer.SkipPrevious",
  254.             "description" : "Skips to previous picture in the slideshow",
  255.             "executable" : true,
  256.             "permission" : "ControlPlayback"
  257.          },
  258.          {
  259.             "command" : "PicturePlayer.SkipNext",
  260.             "description" : "Skips to next picture in the slideshow",
  261.             "executable" : true,
  262.             "permission" : "ControlPlayback"
  263.          },
  264.          {
  265.             "command" : "PicturePlayer.MoveLeft",
  266.             "description" : "If picture is zoomed move viewport left otherwise skip previous",
  267.             "executable" : true,
  268.             "permission" : "ControlPlayback"
  269.          },
  270.          {
  271.             "command" : "PicturePlayer.MoveRight",
  272.             "description" : "If picture is zoomed move viewport right otherwise skip previous",
  273.             "executable" : true,
  274.             "permission" : "ControlPlayback"
  275.          },
  276.          {
  277.             "command" : "PicturePlayer.MoveDown",
  278.             "description" : "If picture is zoomed move viewport down",
  279.             "executable" : true,
  280.             "permission" : "ControlPlayback"
  281.          },
  282.          {
  283.             "command" : "PicturePlayer.MoveUp",
  284.             "description" : "If picture is zoomed move viewport up",
  285.             "executable" : true,
  286.             "permission" : "ControlPlayback"
  287.          },
  288.          {
  289.             "command" : "PicturePlayer.ZoomOut",
  290.             "description" : "Zoom out once",
  291.             "executable" : true,
  292.             "permission" : "ControlPlayback"
  293.          },
  294.          {
  295.             "command" : "PicturePlayer.ZoomIn",
  296.             "description" : "Zoom in once",
  297.             "executable" : true,
  298.             "permission" : "ControlPlayback"
  299.          },
  300.          {
  301.             "command" : "PicturePlayer.Zoom",
  302.             "description" : "Zooms current picture. Parameter integer of zoom level",
  303.             "executable" : true,
  304.             "permission" : "ControlPlayback"
  305.          },
  306.          {
  307.             "command" : "PicturePlayer.Rotate",
  308.             "description" : "Rotates current picture",
  309.             "executable" : true,
  310.             "permission" : "ControlPlayback"
  311.          },
  312.          {
  313.             "command" : "VideoPlaylist.Play",
  314.             "description" : "",
  315.             "executable" : true,
  316.             "permission" : "ControlPlayback"
  317.          },
  318.          {
  319.             "command" : "VideoPlaylist.SkipPrevious",
  320.             "description" : "",
  321.             "executable" : true,
  322.             "permission" : "ControlPlayback"
  323.          },
  324.          {
  325.             "command" : "VideoPlaylist.SkipNext",
  326.             "description" : "",
  327.             "executable" : true,
  328.             "permission" : "ControlPlayback"
  329.          },
  330.          {
  331.             "command" : "VideoPlaylist.GetItems",
  332.             "description" : "",
  333.             "executable" : true,
  334.             "permission" : "ReadData"
  335.          },
  336.          {
  337.             "command" : "VideoPlaylist.Add",
  338.             "description" : "",
  339.             "executable" : true,
  340.             "permission" : "ControlPlayback"
  341.          },
  342.          {
  343.             "command" : "VideoPlaylist.Clear",
  344.             "description" : "Clear video playlist",
  345.             "executable" : true,
  346.             "permission" : "ControlPlayback"
  347.          },
  348.          {
  349.             "command" : "VideoPlaylist.Shuffle",
  350.             "description" : "Shuffle video playlist",
  351.             "executable" : true,
  352.             "permission" : "ControlPlayback"
  353.          },
  354.          {
  355.             "command" : "VideoPlaylist.UnShuffle",
  356.             "description" : "UnShuffle video playlist",
  357.             "executable" : true,
  358.             "permission" : "ControlPlayback"
  359.          },
  360.          {
  361.             "command" : "AudioPlaylist.Play",
  362.             "description" : "",
  363.             "executable" : true,
  364.             "permission" : "ControlPlayback"
  365.          },
  366.          {
  367.             "command" : "AudioPlaylist.SkipPrevious",
  368.             "description" : "",
  369.             "executable" : true,
  370.             "permission" : "ControlPlayback"
  371.          },
  372.          {
  373.             "command" : "AudioPlaylist.SkipNext",
  374.             "description" : "",
  375.             "executable" : true,
  376.             "permission" : "ControlPlayback"
  377.          },
  378.          {
  379.             "command" : "AudioPlaylist.GetItems",
  380.             "description" : "",
  381.             "executable" : true,
  382.             "permission" : "ReadData"
  383.          },
  384.          {
  385.             "command" : "AudioPlaylist.Add",
  386.             "description" : "",
  387.             "executable" : true,
  388.             "permission" : "ControlPlayback"
  389.          },
  390.          {
  391.             "command" : "AudioPlaylist.Clear",
  392.             "description" : "Clear audio playlist",
  393.             "executable" : true,
  394.             "permission" : "ControlPlayback"
  395.          },
  396.          {
  397.             "command" : "AudioPlaylist.Shuffle",
  398.             "description" : "Shuffle audio playlist",
  399.             "executable" : true,
  400.             "permission" : "ControlPlayback"
  401.          },
  402.          {
  403.             "command" : "AudioPlaylist.UnShuffle",
  404.             "description" : "UnShuffle audio playlist",
  405.             "executable" : true,
  406.             "permission" : "ControlPlayback"
  407.          },
  408.          {
  409.             "command" : "Playlist.Create",
  410.             "description" : "Creates a virtual playlist from a given one from a file",
  411.             "executable" : true,
  412.             "permission" : "ReadData"
  413.          },
  414.          {
  415.             "command" : "Playlist.Destroy",
  416.             "description" : "Destroys a virtual playlist",
  417.             "executable" : true,
  418.             "permission" : "ReadData"
  419.          },
  420.          {
  421.             "command" : "Playlist.GetItems",
  422.             "description" : "Retrieve items in the playlist. Parameter example {\"playlist\": \"music\" }. playlist optional.",
  423.             "executable" : true,
  424.             "permission" : "ReadData"
  425.          },
  426.          {
  427.             "command" : "Playlist.Add",
  428.             "description" : "Add items to the playlist. Parameter example {\"playlist\": \"music\", \"file\": \"/foo/bar.mp3\" }. playlist optional.",
  429.             "executable" : true,
  430.             "permission" : "ControlPlayback"
  431.          },
  432.          {
  433.             "command" : "Playlist.Remove",
  434.             "description" : "Remove items in the playlist. Parameter example {\"playlist\": \"music\", \"item\": 0 }. playlist optional.",
  435.             "executable" : true,
  436.             "permission" : "ControlPlayback"
  437.          },
  438.          {
  439.             "command" : "Playlist.Swap",
  440.             "description" : "Swap items in the playlist. Parameter example {\"playlist\": \"music\", \"item1\": 0, \"item2\": 1 }. playlist optional.",
  441.             "executable" : true,
  442.             "permission" : "ControlPlayback"
  443.          },
  444.          {
  445.             "command" : "Playlist.Shuffle",
  446.             "description" : "Shuffle playlist",
  447.             "executable" : true,
  448.             "permission" : "ControlPlayback"
  449.          },
  450.          {
  451.             "command" : "Playlist.UnShuffle",
  452.             "description" : "UnShuffle playlist",
  453.             "executable" : true,
  454.             "permission" : "ControlPlayback"
  455.          },
  456.          {
  457.             "command" : "Files.GetSources",
  458.             "description" : "Get the sources of the media windows. Parameter example {\"media\": \"video\"}. Media can be video, music, pictures or files",
  459.             "executable" : true,
  460.             "permission" : "ReadData"
  461.          },
  462.          {
  463.             "command" : "Files.Download",
  464.             "description" : "Specify a file to download to get info about how to download it, i.e a proper URL",
  465.             "executable" : true,
  466.             "permission" : "ReadData"
  467.          },
  468.          {
  469.             "command" : "Files.GetDirectory",
  470.             "description" : "Retrieve the specified directory. Parameter example {\"directory\": \"foo/bar\", \"media\": \"video\"}. Media can be video, music, pictures or files",
  471.             "executable" : true,
  472.             "permission" : "ReadData"
  473.          },
  474.          {
  475.             "command" : "AudioLibrary.GetArtists",
  476.             "description" : "Retrieve all artists",
  477.             "executable" : true,
  478.             "permission" : "ReadData"
  479.          },
  480.          {
  481.             "command" : "AudioLibrary.GetAlbums",
  482.             "description" : "Retrieve all albums from specified artist or genre, Fields: album_description, album_theme, album_mood, album_style, album_type, album_label, album_artist, album_genre, album_rating, album_title",
  483.             "executable" : true,
  484.             "permission" : "ReadData"
  485.          },
  486.          {
  487.             "command" : "AudioLibrary.GetSongs",
  488.             "description" : "Retrieve all songs from specified album, artist or genre",
  489.             "executable" : true,
  490.             "permission" : "ReadData"
  491.          },
  492.          {
  493.             "command" : "AudioLibrary.ScanForContent",
  494.             "description" : "",
  495.             "executable" : true,
  496.             "permission" : "ScanLibrary"
  497.          },
  498.          {
  499.             "command" : "VideoLibrary.GetMovies",
  500.             "description" : "Retrieve all movies. Parameter example { \"fields\": [\"plot\"], \"sortmethod\": \"title\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. fields, sortorder, sortmethod, start and end are optional",
  501.             "executable" : true,
  502.             "permission" : "ReadData"
  503.          },
  504.          {
  505.             "command" : "VideoLibrary.GetTVShows",
  506.             "description" : "Parameter example { \"fields\": [\"plot\"], \"sortmethod\": \"label\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. sortorder, sortmethod, start and end are optional",
  507.             "executable" : true,
  508.             "permission" : "ReadData"
  509.          },
  510.          {
  511.             "command" : "VideoLibrary.GetSeasons",
  512.             "description" : "Parameter example { \"tvshowid\": 0, \"fields\": [\"season\"], \"sortmethod\": \"label\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. sortorder, sortmethod, start and end are optional",
  513.             "executable" : true,
  514.             "permission" : "ReadData"
  515.          },
  516.          {
  517.             "command" : "VideoLibrary.GetEpisodes",
  518.             "description" : "Parameter example { \"tvshowid\": 0, \"season\": 1, \"fields\": [\"plot\"], \"sortmethod\": \"episode\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. sortorder, sortmethod, start and end are optional",
  519.             "executable" : true,
  520.             "permission" : "ReadData"
  521.          },
  522.          {
  523.             "command" : "VideoLibrary.GetMusicVideos",
  524.             "description" : "Parameter example { \"artistid\": 0, \"albumid\": 0, \"fields\": [\"plot\"], \"sortmethod\": \"artistignorethe\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. sortorder, sortmethod, start and end are optional",
  525.             "executable" : true,
  526.             "permission" : "ReadData"
  527.          },
  528.          {
  529.             "command" : "VideoLibrary.GetRecentlyAddedMovies",
  530.             "description" : "Retrieve all recently added movies. Parameter example { \"fields\": [\"plot\"], \"sortmethod\": \"title\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. fields, sortorder, sortmethod, start and end are optional",
  531.             "executable" : true,
  532.             "permission" : "ReadData"
  533.          },
  534.          {
  535.             "command" : "VideoLibrary.GetRecentlyAddedEpisodes",
  536.             "description" : "Retrieve all recently added episodes. Parameter example { \"fields\": [\"plot\"], \"sortmethod\": \"title\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. fields, sortorder, sortmethod, start and end are optional",
  537.             "executable" : true,
  538.             "permission" : "ReadData"
  539.          },
  540.          {
  541.             "command" : "VideoLibrary.GetRecentlyAddedMusicVideos",
  542.             "description" : "Retrieve all recently added music videos. Parameter example { \"fields\": [\"plot\"], \"sortmethod\": \"title\", \"sortorder\": \"ascending\", \"start\": 0, \"end\": 3}. fields, sortorder, sortmethod, start and end are optional",
  543.             "executable" : true,
  544.             "permission" : "ReadData"
  545.          },
  546.          {
  547.             "command" : "VideoLibrary.ScanForContent",
  548.             "description" : "",
  549.             "executable" : true,
  550.             "permission" : "ScanLibrary"
  551.          },
  552.          {
  553.             "command" : "System.Shutdown",
  554.             "description" : "",
  555.             "executable" : true,
  556.             "permission" : "ControlPower"
  557.          },
  558.          {
  559.             "command" : "System.Suspend",
  560.             "description" : "",
  561.             "executable" : true,
  562.             "permission" : "ControlPower"
  563.          },
  564.          {
  565.             "command" : "System.Hibernate",
  566.             "description" : "",
  567.             "executable" : true,
  568.             "permission" : "ControlPower"
  569.          },
  570.          {
  571.             "command" : "System.Reboot",
  572.             "description" : "",
  573.             "executable" : true,
  574.             "permission" : "ControlPower"
  575.          },
  576.          {
  577.             "command" : "System.GetInfoLabels",
  578.             "description" : "Retrieve info labels about the system",
  579.             "executable" : true,
  580.             "permission" : "ReadData"
  581.          },
  582.          {
  583.             "command" : "System.GetInfoBooleans",
  584.             "description" : "Retrieve info booleans about the system",
  585.             "executable" : true,
  586.             "permission" : "ReadData"
  587.          },
  588.          {
  589.             "command" : "XBMC.GetVolume",
  590.             "description" : "Retrieve the current volume",
  591.             "executable" : true,
  592.             "permission" : "ReadData"
  593.          },
  594.          {
  595.             "command" : "XBMC.SetVolume",
  596.             "description" : "Set volume. Parameter integer between 0 amd 100",
  597.             "executable" : true,
  598.             "permission" : "ControlPlayback"
  599.          },
  600.          {
  601.             "command" : "XBMC.ToggleMute",
  602.             "description" : "Toggle mute",
  603.             "executable" : true,
  604.             "permission" : "ControlPlayback"
  605.          },
  606.          {
  607.             "command" : "XBMC.Play",
  608.             "description" : "Starts playback",
  609.             "executable" : true,
  610.             "permission" : "ControlPlayback"
  611.          },
  612.          {
  613.             "command" : "XBMC.StartSlideshow",
  614.             "description" : "Starts slideshow. Parameter example {\"directory\": \"/foo/\", \"random\": true, \"recursive\": true} or just string to recursively and random run directory",
  615.             "executable" : true,
  616.             "permission" : "ControlPlayback"
  617.          },
  618.          {
  619.             "command" : "XBMC.Log",
  620.             "description" : "Logs a line in the xbmc.log. Parameter example {\"message\": \"foo\", \"level\": \"info\"} or just a string to log message with level debug",
  621.             "executable" : true,
  622.             "permission" : "Logging"
  623.          },
  624.          {
  625.             "command" : "XBMC.Quit",
  626.             "description" : "Quit xbmc",
  627.             "executable" : true,
  628.             "permission" : "ControlPower"
  629.          }
  630.       ]
  631.    }
  632. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement