📜  @apify http-request - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:34.027000             🧑  作者: Mango

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

    let response = await fetch(`your url paste here`, {
      headers: {
        Authorization: `Token ${API_TOKEN}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify(payload),
      method: 'POST',
    });
    const results = await response.json();
    console.log("======> :: results", results);