Create async.config.js

This commit is contained in:
Aleksandr Statciuk 2021-08-21 19:11:04 +03:00
parent 8736c1a26b
commit 18c3c8c223
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
module.exports = {
site: 'example.com',
channels: 'example.com.channels.xml',
url() {
return Promise.resolve('http://example.com/20210319/1tv.json')
},
request: {
method: 'POST',
headers() {
return Promise.resolve({
'Content-Type': 'application/json',
Cookie: 'abc=123'
})
},
data() {
return Promise.resolve({ accountID: '123' })
}
},
parser: () => [],
logo: () => 'http://example.com/logos/1TV.png?x=шеллы&sid=777'
}