/
CMS Feed API

CMS Feed API

All request will use the post method and request URL https://cms.manage.aniview.com/backend/graphql

1. Get Feed List

Get list of all Feeds

Query:

query feeds($order: [QueryFeedsOrderByOrderByClause!], $first: Int!, $page: Int, $search: QueryFeedsSearchWhereConditions, $status: [String!]) { feeds( orderBy: $order first: $first page: $page search: $search status: $status ) { paginatorInfo { total count currentPage } data { id title createdAt firstImportedAt lastImportedAt isAutoSync type imported status purpose } } }

Query variables:

{ "first": 10, "order": [ { "column": "CREATED_AT", "order": "DESC" }, { "column": "ID", "order": "ASC" } ], "search": { "OR": [ { "column": "TITLE", "value": null, "operator": "LIKE" }, { "column": "ID", "value": "" } ] }, "status": [ "active", "archived" ], "page": 1 }

Code Example:

const axios = require("axios"); const url = 'https://manage.aniview.com/api/token?format=json'; const payload = { "operationName": "feeds", "variables": { "first": 10, "order": [ { "column": "CREATED_AT", "order": "DESC" }, { "column": "ID", "order": "ASC" } ], "search": { "OR": [ { "column": "TITLE", "value": null, "operator": "LIKE" }, { "column": "ID", "value": "" } ] }, "status": [ "active", "archived" ], "page": 1 }, "query": "query feeds($order: [QueryFeedsOrderByOrderByClause!], $first: Int!, $page: Int, $search: QueryFeedsSearchWhereConditions, $status: [String!]) {\n feeds(\n orderBy: $order\n first: $first\n page: $page\n search: $search\n status: $status\n ) {\n paginatorInfo {\n total\n count\n currentPage\n }\n data {\n id\n title\n createdAt\n firstImportedAt\n lastImportedAt\n isAutoSync\n type\n imported\n status\n purpose\n }\n }\n}" } axios.post(url, { 'id': 'id', 'password': 'password', 'accountId': 'accountId' }) .then((response) => { apiCall(response.data); }, (error) => { console.log(error); }); function apiCall(auth) { axios({ url: 'https://cms.manage.aniview.com/backend/graphql/', method: 'post', headers: { 'Cookie': 'token=' + auth.data.token }, data: payload }).then((result) => { console.log(result.data[0]); }); }

2. Create Feed

Create a new Feed

Query:

Query variables:

Code Example:

3. Update Feed

Update a specific Feed

Query:

Query variables:

Code example:

4. Delete Feed

Delete a specific Feed

Query:

Query variables:

Code example:

Related content

CMS Playlist API
CMS Playlist API
More like this
CMS Videos API
CMS Videos API
More like this
CMS Authentication
CMS Authentication
More like this
CMS Basic Guide
CMS Basic Guide
Read with this
CMS Contextual Filters API
CMS Contextual Filters API
More like this
Player Performance and Timing Tuning
Player Performance and Timing Tuning
Read with this