TicketMaster API Pro
1.0.0
基于Ticketmaster Discovery API的Swagger Spec
此Python软件包将由Swagger Codegen Project自动生成:
Python 2.7和3.4+
如果Python软件包是在GitHub上托管的,则可以直接从GitHub安装
sudo pip install git+https://github.com/hazael00/TicketMaster-API-Pro.git
(您可能需要使用root权限运行pip
: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
然后导入包:
import picketer
通过setuptools安装。
python setup.py install --user
(或sudo python setup.py install
以安装所有用户的软件包)
然后导入包:
import picketer
请遵循安装步骤,然后运行以下内容:
from __future__ import print_function
import time
import picketer
from picketer . rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyQueryParam
picketer . configuration . api_key [ 'apikey' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# picketer.configuration.api_key_prefix['apikey'] = 'Bearer'
# create an instance of the API class
api_instance = picketer . AttractionsApi ()
id = 'id_example' # str | Attraction ID
locale = 'locale_example' # str | (optional)
include_licensed_content = 'include_licensed_content_example' # str | (optional)
try :
# Get attraction details by ID
api_response = api_instance . attraction_details ( id , locale = locale , include_licensed_content = include_licensed_content )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling AttractionsApi->attraction_details: %s n " % e )
所有uris均相对于https://app.ticketmaster.com/discovery/v2
班级 | 方法 | HTTP请求 | 描述 |
---|---|---|---|
景点 | attraction_details | 获取/景点 /{id} | 通过ID获取吸引力详细信息 |
景点 | search_attrictions | 获取/景点 | 搜索景点 |
分类 | 分类_details | 获取/分类 /{id} | 通过ID获取分类详细信息 |
分类 | genre_details | 获取/分类/流派/{id} | 通过ID获取流派细节 |
分类 | search_classifications | 获取/分类 | 搜索分类 |
分类 | segment_details | 获取/分类/段/{id} | 通过ID获取细分细节 |
分类 | subgerre_details | 获取/分类/subgenres/{id} | 通过ID获取子流派详细信息 |
Eventsapi | event_details | 获取/events /{id} | 通过ID获取事件详细信息 |
Eventsapi | event_images | get /events/{id}/images | 获取事件图像 |
Eventsapi | search_events | 获取/事件 | 事件搜索 |
Venuesapi | search_venues | 获取/场所 | 场地搜索 |
Venuesapi | VENUE_DETAILS | 获取/场地 /{id} | 通过ID获取场地详细信息 |