simkl
Data structures to parse SIMKL API.
The goal of the lib is to help you creating requests on the SIMKL API and parsing the JSON results using serde. You are free to use any library to perform your HTTP request.
Usage
// Prepare your request
let request = new
.with_type
.with_limit;
// The lib is providing the URL and related headers
let url = request.build_url;
let headers = request.headers;
// Make your HTTP call using any lib (reqwest, ureq, ...)
let response = get.await?.text.await?;
// Parse the response with this lib
let search_results: SearchResponse = from_str?;
Main endpoints
GET /search/{type}: media searchGET /movies/{id}: movie informationGET /tv/{id}: TV informationGET /anime/{id}: anime informationGET /tv/{id}/episodes/{season}: season episodeGET /sync/all-items/{type}:POST /sync/add-to-list:POST /sync/remove-from-list:GET /sync/activities: user activityGET /users/settings: user settings