All URIs are relative to https://localhost/
Method | HTTP request | Description |
---|---|---|
updatedQueryGet | GET /updated/query | |
updatedQueryParamsGet | GET /updated/query/params |
InlineResponse20012 updatedQueryGet(fromTime, opts)
Returns an array of series that have changed in a maximum of one week blocks since the provided `fromTime`. The user may specify a `toTime` to grab results for less than a week. Any timespan larger than a week will be reduced down to one week automatically.
var TheTvdbApiV2 = require('the_tvdb_api_v2');
var defaultClient = TheTvdbApiV2.ApiClient.default;
// Configure API key authorization: jwtToken
var jwtToken = defaultClient.authentications['jwtToken'];
jwtToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwtToken.apiKeyPrefix = 'Token';
var apiInstance = new TheTvdbApiV2.UpdatesApi();
var fromTime = "fromTime_example"; // String | Epoch time to start your date range.
var opts = {
'toTime': "toTime_example", // String | Epoch time to end your date range. Must be one week from `fromTime`.
'acceptLanguage': "acceptLanguage_example" // String | Records are returned with the Episode name and Overview in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updatedQueryGet(fromTime, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
fromTime | String | Epoch time to start your date range. | |
toTime | String | Epoch time to end your date range. Must be one week from `fromTime`. | [optional] |
acceptLanguage | String | Records are returned with the Episode name and Overview in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields. | [optional] |
- Content-Type: application/json
- Accept: application/json
InlineResponse2004 updatedQueryParamsGet()
Returns an array of valid query keys for the `/updated/query/params` route.
var TheTvdbApiV2 = require('the_tvdb_api_v2');
var defaultClient = TheTvdbApiV2.ApiClient.default;
// Configure API key authorization: jwtToken
var jwtToken = defaultClient.authentications['jwtToken'];
jwtToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwtToken.apiKeyPrefix = 'Token';
var apiInstance = new TheTvdbApiV2.UpdatesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updatedQueryParamsGet(callback);
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json