2017-06-05 62 views
0

我試圖檢索我的科迪jsonrpc api電視節目的劇集列表,它返回的劇集列表,但只有id和名稱,而不是所有attributs顯示在文檔科迪jsonrpc知道如果一集已經看到

這裏是我的要求:

{"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetEpisodes","params":{"tvshowid":11}}

這裏是迴應: { "id": 1, "jsonrpc": "2.0", "result": { "episodes": [ { "episodeid": 303, "label": "4x01. Success Failure" }, { "episodeid": 318, "label": "4x02. Terms of Service" }, { "episodeid": 339, "label": "4x03. Intellectual Property" }, { "episodeid": 354, "label": "4x04. Teambuilding Exercise" }, { "episodeid": 393, "label": "4x05. The Blood Boy" }, { "episodeid": 414, "label": "4x06. Customer Service" }, { "episodeid": 487, "label": "4x07. The Patent Troll" } ], "limits": { "end": 7, "start": 0, "total": 7 } } }

回答

0

在PARAMS ARRA添加此'properties': ['season', 'episode', 'playcount']˚F或例如

{"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetEpisodes","params":{"tvshowid":11, "properties": ["season", "episode", "playcount"]}}

這將三個屬性添加到響應。

+0

謝謝!我錯過了!我在想它應該發送每一個領域:) – jaumard

相關問題