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獲取場地詳細信息 |