...
Code Block |
---|
const axios = require("axios"); const url = 'https://manage.aniview.com/api/token?format=json'; const payload = { "operationName": "registerLinks", "variables": { "input": { "links": [ "https://play.aniview.com/6124992a9c738f3419721fb3/613f5950b41dd2740e4a5bd3/pexels4.mp4" ] } }, "query": "mutation registerLinks($input: InputLinks!) {\n registerLinks(input: $input) {\n id\n }\n}" } axios.post(url, { 'id': 'email', 'password': 'password', 'accountId': 'publisherID' }) .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]); }); } |
3.
...
Importing Videos (By Links)
Upload videos to the CSM CMS that will be stored on the AniView CDN.
...