document.write("
'use latest' import fetch from 'node-fetch' const api = 'https://cnodejs.org/api/v1/topic_collect/collect' module.exports = async event => { const {topic_id, accesstoken} = event.data const body = { accesstoken: accesstoken, topic_id: topic_id } const ress = await fetch(api, { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' } }) .then(res => res.json()) .then(json => json) const success = { 'success': ress.success } return {data: success} }