stubhub API'搜索事件'问题

时间:2015-11-22 17:07:14

标签: python

我正在使用Python及其请求模块从Stubhub中提取数据。 api url是api.stubhub.com,标题包含我的api密钥。 我们调用的其他API引用到目前为止似乎都有用,但是这个引用了错误:

def get_event_from_type(search_term):
     url = api_url + '/search/catalog/events/v3'
     query = {'q': search_term, 'status': 'active'}
     r = requests.get(url, params=query, headers=headers)
     return r

https://developer.stubhub.com/store/site/pages/doc-viewer.jag?category=Search&api=EventSearchAPIv3&endpoint=searchforeventsv3&version=v3 我们得到401错误,但我们似乎使用正确的格式。 我们尝试过像search_term ='Boston'

这样的例子

0 个答案:

没有答案