As of commit
• For the
• The
• Finally, a new route has been added to the interactions API that allows callbacks to show te ’s interactions on a given set of images (limit 50). The route can be accessed via:
Sample requests:
~@/api/v2/interactions/interacted.json?class=Image&ids=556feeed636872357b110d00
~@/api/v2/interactions/interacted.json?class=Image&ids=5576d92463687248b0000a3f,54f6764d6368722f1e290200
This should provide the necessary data to developers that want access to existing vote and fave info without having to fall back to the poor solution of parsing the HTML of the pages.
dd939f3 the Derpibooru API has introduced a major change with the introduction of interactions (ie, votes and faves) in the response.• For the
/search.json endpoint, nothing should be actually broken. interactions is just an extra field in the response hash. The same array has been added to /images/:id.json .• The
/images/page/*.json have been rewritten to return a dictionary {"images":[images], "interactions":[interactions] } instead of an array with the images. The same thing has been done with the /lists/*.json pages.• Finally, a new route has been added to the interactions API that allows callbacks to show te ’s interactions on a given set of images (limit 50). The route can be accessed via:
GET /api/v2/interactions/interacted.json?class=Image&ids=image,ids&key=API_KEYSample requests:
~@/api/v2/interactions/interacted.json?class=Image&ids=556feeed636872357b110d00
~@/api/v2/interactions/interacted.json?class=Image&ids=5576d92463687248b0000a3f,54f6764d6368722f1e290200
This should provide the necessary data to developers that want access to existing vote and fave info without having to fall back to the poor solution of parsing the HTML of the pages.
