youtube-po-token-generator/index.js

12 lines
332 B
JavaScript
Raw Normal View History

2024-08-05 22:03:42 -04:00
const { createTask } = require('./lib/task')
const { fetchVisitorData } = require('./lib/workflow')
const generate = async () => {
const visitorData = await fetchVisitorData()
const task = await createTask(visitorData)
const { poToken } = await task.start()
return { visitorData, poToken }
}
module.exports = { generate }