📜  api streamelements watchtime - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:03.627000             🧑  作者: Mango

代码示例1
const fetch = require('node-fetch');

const url = 'https://api.streamelements.com/kappa/v2/points//watchtime';

const options = {method: 'GET', headers: {Accept: 'application/json'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));