popcorntime-remote.js
· 304 B · JavaScript
Raw
data = await (await fetch("http://localhost:8008", {
method: "POST",
withCredentials: true,
headers: {
"Content-Type": "application/json",
Authorization: "Basic cG9wY29ybjpwb3Bjb3Ju"
},
body: JSON.stringify({
jsonrpc: "2.0",
id:"asdf",
method:"getcurrentlist",
params:[]
})
})).json()
| 1 | data = await (await fetch("http://localhost:8008", { |
| 2 | method: "POST", |
| 3 | withCredentials: true, |
| 4 | headers: { |
| 5 | "Content-Type": "application/json", |
| 6 | Authorization: "Basic cG9wY29ybjpwb3Bjb3Ju" |
| 7 | }, |
| 8 | body: JSON.stringify({ |
| 9 | jsonrpc: "2.0", |
| 10 | id:"asdf", |
| 11 | method:"getcurrentlist", |
| 12 | params:[] |
| 13 | }) |
| 14 | })).json() |