From 8578b87b8367a2f297a369cb3143627a4b37a4b0 Mon Sep 17 00:00:00 2001
From: Yorhel
- get type flags filters + get type flags filters options
- Type and flags are unescaped strings. The only type currently accepted is 'vn'. - Flags is a comma-separated list of flags indicating what info to fetch. The - filters, available flags and their meaning are documented separately for each - type. The following example will fetch basic information and information about - the related anime of the visual novel with id = 17: + type and flags are unescaped strings. The accepted values for type are + documented below. flags is a comma-separated list of flags indicating what + info to fetch. The filters, available flags and their meaning are documented + separately for each type. The last options argument is optional, and + influences the behaviour of the returned results. When present, options + should be a JSON object with the following members (all are optional): +
++ The following example will fetch basic information and information about the + related anime of the visual novel with id = 17:
get vn basic,anime (id = 17)
The server will reply with a 'results' message, this message is followed by a - JSON object describing the results. This object has two members: 'num', which - is an integer indicating the number of results returned, and 'items', which - contains the results as an array of objects. For example, the server could - reply to the previous command with the following message: + JSON object describing the results. This object has three members: 'num', which + is an integer indicating the number of results returned, 'more', which is true + when there are more results available (i.e. increasing the page option + described above will give new results) and 'items', which contains the results + as an array of objects. For example, the server could reply to the previous + command with the following message:
- results {"num":1, "items":[{ + results {"num":1, "more":false, "items":[{ "id": 17, "title": "Ever17 -the out of infinity-", "original": null, "released": "2002-08-29", "languages": ["en","ja","ru","zh"], "platforms": ["drc","ps2","psp","win"],"anime": [] @@ -372,6 +389,7 @@ however still required.
+Sorting is possible on the 'id', 'title' and 'released' fields.
'get vn' accepts the following filter expressions:
Sorting is possible on the 'id', 'title' and 'released' fields.
Accepted filters: