TicketMaster API Pro
1.0.0
Ticketmaster Discovery API를 기반으로 한 Swagger 사양
이 파이썬 패키지는 Swagger Codegen 프로젝트에 의해 자동으로 생성됩니다.
파이썬 2.7 및 3.4+
Python 패키지가 Github에서 호스팅되면 Github에서 직접 설치할 수 있습니다.
sudo pip install git+https://github.com/hazael00/TicketMaster-API-Pro.git
(루트 권한으로 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 | get /attractions /{id} | ID별로 매력을 얻습니다 |
관광 명소 | search_attractions | /어트랙션을 얻으십시오 | 검색 명소 |
ClassicationSapi | classification_details | get /classifications /{id} | ID별로 분류 세부 정보를 얻습니다 |
ClassicationSapi | 장르 _details | get /classications/geres/{id} | ID별로 장르 세부 정보를 얻으십시오 |
ClassicationSapi | search_classifications | get /classifications | 검색 분류 |
ClassicationSapi | segment_details | get /classifications/segments/{id} | ID별로 세그먼트 세부 사항을 가져옵니다 |
ClassicationSapi | subgenre_details | get /classifications/subgenres/{id} | ID로 서브 장르 세부 정보를 얻으십시오 |
EventsApi | event_details | get /events /{id} | ID로 이벤트 세부 정보를 얻습니다 |
EventsApi | event_images | get /events/{id}/images | 이벤트 이미지를 얻으십시오 |
EventsApi | search_events | 얻어 /이벤트 | 이벤트 검색 |
Venuesapi | search_venues | /장소 를 얻으십시오 | 장소 검색 |
Venuesapi | Venue_details | GET /VENUUES /{ID} | ID별로 장소 세부 정보를 얻으십시오 |