Node.js I';我在寻找一种过滤事件的方法。但它给我带来了所有的事件。我如何过滤它们?

Node.js I';我在寻找一种过滤事件的方法。但它给我带来了所有的事件。我如何过滤它们?,node.js,api,express,eventbrite,Node.js,Api,Express,Eventbrite,我在过滤EventBriteAPI中的事件时遇到了一个问题,它给我带来了一切。 我已经有了令牌,我知道如何使用它 var request = require('request'); request({ method: 'GET', url: 'https://www.eventbriteapi.com/v3/events/search/?location.address=cordoba%20argentina', headers: { 'Authorization': 'B

我在过滤EventBriteAPI中的事件时遇到了一个问题,它给我带来了一切。 我已经有了令牌,我知道如何使用它

var request = require('request');
request({

  method: 'GET',
  url: 'https://www.eventbriteapi.com/v3/events/search/?location.address=cordoba%20argentina',
  headers: {
    'Authorization': 'Bearer PERSONAL_OAUTH_TOKEN',

    'Content-Type': 'application/json'

  }}, function (error, response, body) {

  console.log('Status:', response.statusCode);
  console.log('Headers:', JSON.stringify(response.headers));
  console.log('Response:', body);

});

我认为它给我带来了evenbrite的所有事件。HTTP请求中有两个问题:

  • 它应该是
    /v3/events/search?位置。地址=…
    ,而不是
    /v3/events/search/?位置。地址=…

  • 'Content-Type':'application/json'
    头定义不正确——这是一个普通的
    GET
    请求,请求体中没有json数据


  • HTTP请求中存在两个问题:

  • 它应该是
    /v3/events/search?位置。地址=…
    ,而不是
    /v3/events/search/?位置。地址=…

  • 'Content-Type':'application/json'
    头定义不正确——这是一个普通的
    GET
    请求,请求体中没有json数据