| layout | interactive-console |
|---|---|
| category | documentation |
| title | Partner API Interactive API Console |
| excerpt | Instructions. Get your API Key if you don’t have one. Enter your API Key. Log in with your credentials to authenticate. |
| keywords | API, interactive console, get API Key, discovery API |
{::comment} page title {:/comment} {% capture page_title %}
{% endcapture %}
{::comment} Instructions Header {:/comment} {% capture instructions_header %}
{% endcapture %}
{::comment} instructions list {:/comment} {% capture instructions_list %}
- Have your API Key handy. You'll need access to the Ticketmaster Partner API to use this console.
- Enter a Ticketmaster event id. Use 000051048D991EE7 for testing.
- Load Event Details to discover ticket types
- Reserve tickets using the ticket type id and specify quantity
- A test credit-card can be used to make payment on this event. Use 'Populate Test CC' in the payment dialog
- Commit the transaction {% endcapture %}
{::comment} Get api button text {:/comment} {% capture api_callout_button_text %}
GET YOUR API KEY RIGHT now
{% endcapture %}
{::comment} page layout goes here {:/comment}
{{page_title}}
Your API Key/Custom Token:
{{instructions_header}}
{{instructions_list}}
<script>
function checkApiCookie() {
var userApiKey;
var apiKeys = JSON.parse("[" + window.atob(getCookie("tk-api-key")) + "]"); //decode and convert string to array
if (getCookie("tk-api-key") === "") {return null}
if (apiKeys != "") {
userApiKey = apiKeys[apiKeys.length-1];
userApiKey = userApiKey[userApiKey.length-1];
}
return userApiKey;
}
//get Cookie by name
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i = 0; i
<iframe name="foo" id="console-iframe" src="" width="100%" height="1000" scrolling="yes" style="margin-top: 3em;"></iframe>