TIXNGO REST API backend-spectator-api

Default

spectatorAvailableTicketsGet

Get available tickets for the mobile side. This is a split from legacy spectator/tickets GET, and is more lightweight compare to before


/spectator/available-tickets

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/available-tickets"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorAvailableTicketsResponse result = apiInstance.spectatorAvailableTicketsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorAvailableTicketsGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorAvailableTicketsGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorAvailableTicketsGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorAvailableTicketsResponse result = apiInstance.spectatorAvailableTicketsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorAvailableTicketsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorAvailableTicketsGetWithCompletionHandler: 
              ^(SpectatorAvailableTicketsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorAvailableTicketsGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorAvailableTicketsGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorAvailableTicketsResponse result = apiInstance.spectatorAvailableTicketsGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorAvailableTicketsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorAvailableTicketsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorAvailableTicketsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorAvailableTicketsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorAvailableTicketsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_available_tickets_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorAvailableTicketsGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorAvailableTicketsGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorAvailableTicketsTicketIdGet

Get available tickets by external id


/spectator/available-tickets/{ticketId}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/available-tickets/{ticketId}"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket

        try {
            SpectatorTicket result = apiInstance.spectatorAvailableTicketsTicketIdGet(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorAvailableTicketsTicketIdGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | technical Id of the ticket

try {
    final result = await api_instance.spectatorAvailableTicketsTicketIdGet(ticketId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorAvailableTicketsTicketIdGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket

        try {
            SpectatorTicket result = apiInstance.spectatorAvailableTicketsTicketIdGet(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorAvailableTicketsTicketIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; // technical Id of the ticket (default to null)

[apiInstance spectatorAvailableTicketsTicketIdGetWith:ticketId
              completionHandler: ^(SpectatorTicket output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} technical Id of the ticket

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorAvailableTicketsTicketIdGet(ticketId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorAvailableTicketsTicketIdGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String | technical Id of the ticket (default to null)

            try {
                SpectatorTicket result = apiInstance.spectatorAvailableTicketsTicketIdGet(ticketId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorAvailableTicketsTicketIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | technical Id of the ticket

try {
    $result = $api_instance->spectatorAvailableTicketsTicketIdGet($ticketId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorAvailableTicketsTicketIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | technical Id of the ticket

eval {
    my $result = $api_instance->spectatorAvailableTicketsTicketIdGet(ticketId => $ticketId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorAvailableTicketsTicketIdGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String | technical Id of the ticket (default to null)

try:
    api_response = api_instance.spectator_available_tickets_ticket_id_get(ticketId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorAvailableTicketsTicketIdGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorAvailableTicketsTicketIdGet(ticketId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
technical Id of the ticket
Required

Responses


spectatorCheckversionGet

Extract the version from the User-Agent and check that the version used is compatible with the backend.


/spectator/checkversion

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/checkversion"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorVersionStatus result = apiInstance.spectatorCheckversionGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorCheckversionGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorCheckversionGet(userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorCheckversionGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorVersionStatus result = apiInstance.spectatorCheckversionGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorCheckversionGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorCheckversionGetWith:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(SpectatorVersionStatus output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorCheckversionGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorCheckversionGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                SpectatorVersionStatus result = apiInstance.spectatorCheckversionGet(userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorCheckversionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorCheckversionGet($userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorCheckversionGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorCheckversionGet(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorCheckversionGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_checkversion_get(userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorCheckversionGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorCheckversionGet(userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses


spectatorConfigEmailGet

Get the personalized configs of the caller (spectator)


/spectator/config/{email}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/config/{email}"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailGet(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String email = new String(); // String | 

try {
    final result = await api_instance.spectatorConfigEmailGet(email);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorConfigEmailGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailGet(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *email = email_example; //  (default to null)

[apiInstance spectatorConfigEmailGetWith:email
              completionHandler: ^(SpectatorPersonalizedAppConfig output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var email = email_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorConfigEmailGet(email, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorConfigEmailGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var email = email_example;  // String |  (default to null)

            try {
                SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailGet(email);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorConfigEmailGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$email = email_example; // String | 

try {
    $result = $api_instance->spectatorConfigEmailGet($email);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorConfigEmailGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $email = email_example; # String | 

eval {
    my $result = $api_instance->spectatorConfigEmailGet(email => $email);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorConfigEmailGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
email = email_example # String |  (default to null)

try:
    api_response = api_instance.spectator_config_email_get(email)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorConfigEmailGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let email = email_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorConfigEmailGet(email, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
Required

Responses


spectatorConfigEmailPatch

Create or update the caller's (spectator) personalized configs partially


/spectator/config/{email}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/config/{email}" \
 -d '{
  "legalVersion" : "legalVersion",
  "appLanguage" : "appLanguage"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 
        SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailPatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String email = new String(); // String | 
final SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = new SpectatorPersonalizedAppConfig(); // SpectatorPersonalizedAppConfig | 

try {
    final result = await api_instance.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorConfigEmailPatch: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 
        SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailPatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *email = email_example; //  (default to null)
SpectatorPersonalizedAppConfig *spectatorPersonalizedAppConfig = ; // 

[apiInstance spectatorConfigEmailPatchWith:email
    spectatorPersonalizedAppConfig:spectatorPersonalizedAppConfig
              completionHandler: ^(SpectatorPersonalizedAppConfig output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var email = email_example; // {String} 
var spectatorPersonalizedAppConfig = ; // {SpectatorPersonalizedAppConfig} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorConfigEmailPatchExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var email = email_example;  // String |  (default to null)
            var spectatorPersonalizedAppConfig = new SpectatorPersonalizedAppConfig(); // SpectatorPersonalizedAppConfig | 

            try {
                SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorConfigEmailPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$email = email_example; // String | 
$spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

try {
    $result = $api_instance->spectatorConfigEmailPatch($email, $spectatorPersonalizedAppConfig);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorConfigEmailPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $email = email_example; # String | 
my $spectatorPersonalizedAppConfig = WWW::OPenAPIClient::Object::SpectatorPersonalizedAppConfig->new(); # SpectatorPersonalizedAppConfig | 

eval {
    my $result = $api_instance->spectatorConfigEmailPatch(email => $email, spectatorPersonalizedAppConfig => $spectatorPersonalizedAppConfig);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorConfigEmailPatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
email = email_example # String |  (default to null)
spectatorPersonalizedAppConfig =  # SpectatorPersonalizedAppConfig | 

try:
    api_response = api_instance.spectator_config_email_patch(email, spectatorPersonalizedAppConfig)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorConfigEmailPatch: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let email = email_example; // String
    let spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorConfigEmailPatch(email, spectatorPersonalizedAppConfig, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
Required
Body parameters
Name Description
spectatorPersonalizedAppConfig *

Responses


spectatorConfigEmailPut

Create or update the caller's (spectator) app language. This is to keep retro compatibility


/spectator/config/{email}

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/config/{email}" \
 -d '{
  "legalVersion" : "legalVersion",
  "appLanguage" : "appLanguage"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 
        SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String email = new String(); // String | 
final SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = new SpectatorPersonalizedAppConfig(); // SpectatorPersonalizedAppConfig | 

try {
    final result = await api_instance.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorConfigEmailPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String email = email_example; // String | 
        SpectatorPersonalizedAppConfig spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

        try {
            SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigEmailPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *email = email_example; //  (default to null)
SpectatorPersonalizedAppConfig *spectatorPersonalizedAppConfig = ; // 

[apiInstance spectatorConfigEmailPutWith:email
    spectatorPersonalizedAppConfig:spectatorPersonalizedAppConfig
              completionHandler: ^(SpectatorPersonalizedAppConfig output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var email = email_example; // {String} 
var spectatorPersonalizedAppConfig = ; // {SpectatorPersonalizedAppConfig} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorConfigEmailPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var email = email_example;  // String |  (default to null)
            var spectatorPersonalizedAppConfig = new SpectatorPersonalizedAppConfig(); // SpectatorPersonalizedAppConfig | 

            try {
                SpectatorPersonalizedAppConfig result = apiInstance.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorConfigEmailPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$email = email_example; // String | 
$spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig | 

try {
    $result = $api_instance->spectatorConfigEmailPut($email, $spectatorPersonalizedAppConfig);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorConfigEmailPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $email = email_example; # String | 
my $spectatorPersonalizedAppConfig = WWW::OPenAPIClient::Object::SpectatorPersonalizedAppConfig->new(); # SpectatorPersonalizedAppConfig | 

eval {
    my $result = $api_instance->spectatorConfigEmailPut(email => $email, spectatorPersonalizedAppConfig => $spectatorPersonalizedAppConfig);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorConfigEmailPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
email = email_example # String |  (default to null)
spectatorPersonalizedAppConfig =  # SpectatorPersonalizedAppConfig | 

try:
    api_response = api_instance.spectator_config_email_put(email, spectatorPersonalizedAppConfig)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorConfigEmailPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let email = email_example; // String
    let spectatorPersonalizedAppConfig = ; // SpectatorPersonalizedAppConfig

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorConfigEmailPut(email, spectatorPersonalizedAppConfig, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
Required
Body parameters
Name Description
spectatorPersonalizedAppConfig *

Responses


spectatorConfigGet

[PUBLIC] Get the inital configuration a spectator must have to initiate an authentication process. (Depends on User-Agent)


/spectator/config

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/config"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorAppConfig result = apiInstance.spectatorConfigGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorConfigGet(userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorConfigGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorAppConfig result = apiInstance.spectatorConfigGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorConfigGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorConfigGetWith:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(SpectatorAppConfig output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorConfigGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorConfigGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                SpectatorAppConfig result = apiInstance.spectatorConfigGet(userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorConfigGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorConfigGet($userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorConfigGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorConfigGet(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorConfigGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_config_get(userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorConfigGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorConfigGet(userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses


spectatorDevicetokenPut

Register a notification token (devicetoken) to the backend


/spectator/devicetoken

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/devicetoken?service=service_example" \
 -d ''
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String body = body_example; // String | 
        String service = service_example; // String | Require a particular notification service (default : aws)

        try {
            apiInstance.spectatorDevicetokenPut(body, service);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorDevicetokenPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String body = new String(); // String | 
final String service = new String(); // String | Require a particular notification service (default : aws)

try {
    final result = await api_instance.spectatorDevicetokenPut(body, service);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorDevicetokenPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String body = body_example; // String | 
        String service = service_example; // String | Require a particular notification service (default : aws)

        try {
            apiInstance.spectatorDevicetokenPut(body, service);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorDevicetokenPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *body = body_example; // 
String *service = service_example; // Require a particular notification service (default : aws) (optional) (default to null)

[apiInstance spectatorDevicetokenPutWith:body
    service:service
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var body = body_example; // {String} 
var opts = {
  'service': service_example // {String} Require a particular notification service (default : aws)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorDevicetokenPut(body, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorDevicetokenPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var body = body_example;  // String | 
            var service = service_example;  // String | Require a particular notification service (default : aws) (optional)  (default to null)

            try {
                apiInstance.spectatorDevicetokenPut(body, service);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorDevicetokenPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = body_example; // String | 
$service = service_example; // String | Require a particular notification service (default : aws)

try {
    $api_instance->spectatorDevicetokenPut($body, $service);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorDevicetokenPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::String->new(); # String | 
my $service = service_example; # String | Require a particular notification service (default : aws)

eval {
    $api_instance->spectatorDevicetokenPut(body => $body, service => $service);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorDevicetokenPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = body_example # String | 
service = service_example # String | Require a particular notification service (default : aws) (optional) (default to null)

try:
    api_instance.spectator_devicetoken_put(body, service=service)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorDevicetokenPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let body = body_example; // String
    let service = service_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorDevicetokenPut(body, service, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body *

Query parameters
Name Description
service
String
Require a particular notification service (default : aws)

Responses


spectatorEmailActivationGet

Get pin code to sign in the application


/spectator/{email}/activation

Usage and SDK Samples

curl -X GET \
 "https://api.tixngo.io/prod/v1.0/spectator/{email}/activation?language=language_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requester (spectator)
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String language = language_example; // String | App language of requester (spectator)

        try {
            apiInstance.spectatorEmailActivationGet(userAgent, email, xTixngoAppId, language);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailActivationGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String email = new String(); // String | email of requester (spectator)
final String xTixngoAppId = new String(); // String | 
final String language = new String(); // String | App language of requester (spectator)

try {
    final result = await api_instance.spectatorEmailActivationGet(userAgent, email, xTixngoAppId, language);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorEmailActivationGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requester (spectator)
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String language = language_example; // String | App language of requester (spectator)

        try {
            apiInstance.spectatorEmailActivationGet(userAgent, email, xTixngoAppId, language);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailActivationGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
String *email = email_example; // email of requester (spectator) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
String *language = language_example; // App language of requester (spectator) (optional) (default to null)

[apiInstance spectatorEmailActivationGetWith:userAgent
    email:email
    xTixngoAppId:xTixngoAppId
    language:language
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var email = email_example; // {String} email of requester (spectator)
var opts = {
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'language': language_example // {String} App language of requester (spectator)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorEmailActivationGet(userAgent, email, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorEmailActivationGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var email = email_example;  // String | email of requester (spectator) (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var language = language_example;  // String | App language of requester (spectator) (optional)  (default to null)

            try {
                apiInstance.spectatorEmailActivationGet(userAgent, email, xTixngoAppId, language);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorEmailActivationGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$email = email_example; // String | email of requester (spectator)
$xTixngoAppId = xTixngoAppId_example; // String | 
$language = language_example; // String | App language of requester (spectator)

try {
    $api_instance->spectatorEmailActivationGet($userAgent, $email, $xTixngoAppId, $language);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorEmailActivationGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $email = email_example; # String | email of requester (spectator)
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $language = language_example; # String | App language of requester (spectator)

eval {
    $api_instance->spectatorEmailActivationGet(userAgent => $userAgent, email => $email, xTixngoAppId => $xTixngoAppId, language => $language);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorEmailActivationGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
email = email_example # String | email of requester (spectator) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
language = language_example # String | App language of requester (spectator) (optional) (default to null)

try:
    api_instance.spectator_email_activation_get(userAgent, email, xTixngoAppId=xTixngoAppId, language=language)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorEmailActivationGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let email = email_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let language = language_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorEmailActivationGet(userAgent, email, xTixngoAppId, language, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
email of requester (spectator)
Required
Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String
Query parameters
Name Description
language
String
App language of requester (spectator)

Responses


spectatorEmailActivationPost

Send pin code to backend in order to sign in the app


/spectator/{email}/activation

Usage and SDK Samples

curl -X POST \
 "https://api.tixngo.io/prod/v1.0/spectator/{email}/activation?code=code_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requester (spectator)
        String code = code_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String xDeviceId = xDeviceId_example; // String | 

        try {
            apiInstance.spectatorEmailActivationPost(userAgent, email, code, xTixngoAppId, xDeviceId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailActivationPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String email = new String(); // String | email of requester (spectator)
final String code = new String(); // String | 
final String xTixngoAppId = new String(); // String | 
final String xDeviceId = new String(); // String | 

try {
    final result = await api_instance.spectatorEmailActivationPost(userAgent, email, code, xTixngoAppId, xDeviceId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorEmailActivationPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requester (spectator)
        String code = code_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String xDeviceId = xDeviceId_example; // String | 

        try {
            apiInstance.spectatorEmailActivationPost(userAgent, email, code, xTixngoAppId, xDeviceId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailActivationPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
String *email = email_example; // email of requester (spectator) (default to null)
String *code = code_example; //  (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
String *xDeviceId = xDeviceId_example; //  (optional) (default to null)

[apiInstance spectatorEmailActivationPostWith:userAgent
    email:email
    code:code
    xTixngoAppId:xTixngoAppId
    xDeviceId:xDeviceId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var email = email_example; // {String} email of requester (spectator)
var code = code_example; // {String} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'xDeviceId': xDeviceId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorEmailActivationPost(userAgent, email, code, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorEmailActivationPostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var email = email_example;  // String | email of requester (spectator) (default to null)
            var code = code_example;  // String |  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var xDeviceId = xDeviceId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorEmailActivationPost(userAgent, email, code, xTixngoAppId, xDeviceId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorEmailActivationPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$email = email_example; // String | email of requester (spectator)
$code = code_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 
$xDeviceId = xDeviceId_example; // String | 

try {
    $api_instance->spectatorEmailActivationPost($userAgent, $email, $code, $xTixngoAppId, $xDeviceId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorEmailActivationPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $email = email_example; # String | email of requester (spectator)
my $code = code_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $xDeviceId = xDeviceId_example; # String | 

eval {
    $api_instance->spectatorEmailActivationPost(userAgent => $userAgent, email => $email, code => $code, xTixngoAppId => $xTixngoAppId, xDeviceId => $xDeviceId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorEmailActivationPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
email = email_example # String | email of requester (spectator) (default to null)
code = code_example # String |  (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
xDeviceId = xDeviceId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_email_activation_post(userAgent, email, code, xTixngoAppId=xTixngoAppId, xDeviceId=xDeviceId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorEmailActivationPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let email = email_example; // String
    let code = code_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let xDeviceId = xDeviceId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorEmailActivationPost(userAgent, email, code, xTixngoAppId, xDeviceId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
email of requester (spectator)
Required
Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String
x-device-id
String
Query parameters
Name Description
code*
String
Required

Responses


spectatorEmailPublicLogsPost

Send logs to the backend without authentication


/spectator/{email}/public-logs

Usage and SDK Samples

curl -X POST \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/{email}/public-logs" \
 -d '{
  "level" : "i",
  "category" : "category",
  "message" : "message",
  "ticketId" : "ticketId",
  "timestamp" : "2000-01-23T04:56:07.000+00:00"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requested spectator
        set[SpectatorLog] spectatorLog = ; // set[SpectatorLog] | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailPublicLogsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String email = new String(); // String | email of requested spectator
final set[SpectatorLog] spectatorLog = new set[SpectatorLog](); // set[SpectatorLog] | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorEmailPublicLogsPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String email = email_example; // String | email of requested spectator
        set[SpectatorLog] spectatorLog = ; // set[SpectatorLog] | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorEmailPublicLogsPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
String *email = email_example; // email of requested spectator (default to null)
set[SpectatorLog] *spectatorLog = ; // 
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorEmailPublicLogsPostWith:userAgent
    email:email
    spectatorLog:spectatorLog
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var email = email_example; // {String} email of requested spectator
var spectatorLog = ; // {set[SpectatorLog]} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorEmailPublicLogsPostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var email = email_example;  // String | email of requested spectator (default to null)
            var spectatorLog = new set[SpectatorLog](); // set[SpectatorLog] | 
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorEmailPublicLogsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$email = email_example; // String | email of requested spectator
$spectatorLog = ; // set[SpectatorLog] | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorEmailPublicLogsPost($userAgent, $email, $spectatorLog, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorEmailPublicLogsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $email = email_example; # String | email of requested spectator
my $spectatorLog = [WWW::OPenAPIClient::Object::set[SpectatorLog]->new()]; # set[SpectatorLog] | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorEmailPublicLogsPost(userAgent => $userAgent, email => $email, spectatorLog => $spectatorLog, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorEmailPublicLogsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
email = email_example # String | email of requested spectator (default to null)
spectatorLog =  # set[SpectatorLog] | 
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_email_public_logs_post(userAgent, email, spectatorLog, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorEmailPublicLogsPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let email = email_example; // String
    let spectatorLog = ; // set[SpectatorLog]
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorEmailPublicLogsPost(userAgent, email, spectatorLog, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
email*
String
email of requested spectator
Required
Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String
Body parameters
Name Description
spectatorLog *

Responses


spectatorExternalWalletGwalletPost

Request an integration with third party wallet application


/spectator/external-wallet/gwallet

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/external-wallet/gwallet" \
 -d '{
  "deepLink" : "deepLink",
  "ticketId" : "ticketId"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        SpectatorGoogleWalletIntegrateBody spectatorGoogleWalletIntegrateBody = ; // SpectatorGoogleWalletIntegrateBody | 

        try {
            SpectatorGWalletPayload result = apiInstance.spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpectatorGoogleWalletIntegrateBody spectatorGoogleWalletIntegrateBody = new SpectatorGoogleWalletIntegrateBody(); // SpectatorGoogleWalletIntegrateBody | 

try {
    final result = await api_instance.spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorExternalWalletGwalletPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SpectatorGoogleWalletIntegrateBody spectatorGoogleWalletIntegrateBody = ; // SpectatorGoogleWalletIntegrateBody | 

        try {
            SpectatorGWalletPayload result = apiInstance.spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SpectatorGoogleWalletIntegrateBody *spectatorGoogleWalletIntegrateBody = ; //  (optional)

[apiInstance spectatorExternalWalletGwalletPostWith:spectatorGoogleWalletIntegrateBody
              completionHandler: ^(SpectatorGWalletPayload output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'spectatorGoogleWalletIntegrateBody':  // {SpectatorGoogleWalletIntegrateBody} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorExternalWalletGwalletPost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorExternalWalletGwalletPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorGoogleWalletIntegrateBody = new SpectatorGoogleWalletIntegrateBody(); // SpectatorGoogleWalletIntegrateBody |  (optional) 

            try {
                SpectatorGWalletPayload result = apiInstance.spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorExternalWalletGwalletPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorGoogleWalletIntegrateBody = ; // SpectatorGoogleWalletIntegrateBody | 

try {
    $result = $api_instance->spectatorExternalWalletGwalletPost($spectatorGoogleWalletIntegrateBody);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorExternalWalletGwalletPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorGoogleWalletIntegrateBody = WWW::OPenAPIClient::Object::SpectatorGoogleWalletIntegrateBody->new(); # SpectatorGoogleWalletIntegrateBody | 

eval {
    my $result = $api_instance->spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody => $spectatorGoogleWalletIntegrateBody);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorExternalWalletGwalletPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorGoogleWalletIntegrateBody =  # SpectatorGoogleWalletIntegrateBody |  (optional)

try:
    api_response = api_instance.spectator_external_wallet_gwallet_post(spectatorGoogleWalletIntegrateBody=spectatorGoogleWalletIntegrateBody)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorExternalWalletGwalletPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorGoogleWalletIntegrateBody = ; // SpectatorGoogleWalletIntegrateBody

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorExternalWalletGwalletPost(spectatorGoogleWalletIntegrateBody, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spectatorGoogleWalletIntegrateBody

Responses


spectatorExternalWalletGwalletTicketIdGet

get current the integrating status of the ticket


/spectator/external-wallet/gwallet/{ticketId}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/external-wallet/gwallet/{ticketId}"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 

        try {
            SpectatorGoogleWalletIntegrateGetResponse result = apiInstance.spectatorExternalWalletGwalletTicketIdGet(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletTicketIdGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | 

try {
    final result = await api_instance.spectatorExternalWalletGwalletTicketIdGet(ticketId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 

        try {
            SpectatorGoogleWalletIntegrateGetResponse result = apiInstance.spectatorExternalWalletGwalletTicketIdGet(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletTicketIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; //  (default to null)

[apiInstance spectatorExternalWalletGwalletTicketIdGetWith:ticketId
              completionHandler: ^(SpectatorGoogleWalletIntegrateGetResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorExternalWalletGwalletTicketIdGet(ticketId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorExternalWalletGwalletTicketIdGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String |  (default to null)

            try {
                SpectatorGoogleWalletIntegrateGetResponse result = apiInstance.spectatorExternalWalletGwalletTicketIdGet(ticketId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorExternalWalletGwalletTicketIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | 

try {
    $result = $api_instance->spectatorExternalWalletGwalletTicketIdGet($ticketId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | 

eval {
    my $result = $api_instance->spectatorExternalWalletGwalletTicketIdGet(ticketId => $ticketId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String |  (default to null)

try:
    api_response = api_instance.spectator_external_wallet_gwallet_ticket_id_get(ticketId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorExternalWalletGwalletTicketIdGet(ticketId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
Required

Responses


spectatorExternalWalletGwalletTicketIdPut

Update the gwallet integration status in our system


/spectator/external-wallet/gwallet/{ticketId}

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/external-wallet/gwallet/{ticketId}" \
 -d '{
  "passObjectId" : "passObjectId",
  "status" : "CREATED"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        SpectatorGoogleWalletIntegrateResult spectatorGoogleWalletIntegrateResult = ; // SpectatorGoogleWalletIntegrateResult | 

        try {
            apiInstance.spectatorExternalWalletGwalletTicketIdPut(ticketId, spectatorGoogleWalletIntegrateResult);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletTicketIdPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | 
final SpectatorGoogleWalletIntegrateResult spectatorGoogleWalletIntegrateResult = new SpectatorGoogleWalletIntegrateResult(); // SpectatorGoogleWalletIntegrateResult | 

try {
    final result = await api_instance.spectatorExternalWalletGwalletTicketIdPut(ticketId, spectatorGoogleWalletIntegrateResult);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        SpectatorGoogleWalletIntegrateResult spectatorGoogleWalletIntegrateResult = ; // SpectatorGoogleWalletIntegrateResult | 

        try {
            apiInstance.spectatorExternalWalletGwalletTicketIdPut(ticketId, spectatorGoogleWalletIntegrateResult);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletGwalletTicketIdPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; //  (default to null)
SpectatorGoogleWalletIntegrateResult *spectatorGoogleWalletIntegrateResult = ; //  (optional)

[apiInstance spectatorExternalWalletGwalletTicketIdPutWith:ticketId
    spectatorGoogleWalletIntegrateResult:spectatorGoogleWalletIntegrateResult
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} 
var opts = {
  'spectatorGoogleWalletIntegrateResult':  // {SpectatorGoogleWalletIntegrateResult} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorExternalWalletGwalletTicketIdPut(ticketId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorExternalWalletGwalletTicketIdPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String |  (default to null)
            var spectatorGoogleWalletIntegrateResult = new SpectatorGoogleWalletIntegrateResult(); // SpectatorGoogleWalletIntegrateResult |  (optional) 

            try {
                apiInstance.spectatorExternalWalletGwalletTicketIdPut(ticketId, spectatorGoogleWalletIntegrateResult);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorExternalWalletGwalletTicketIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | 
$spectatorGoogleWalletIntegrateResult = ; // SpectatorGoogleWalletIntegrateResult | 

try {
    $api_instance->spectatorExternalWalletGwalletTicketIdPut($ticketId, $spectatorGoogleWalletIntegrateResult);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | 
my $spectatorGoogleWalletIntegrateResult = WWW::OPenAPIClient::Object::SpectatorGoogleWalletIntegrateResult->new(); # SpectatorGoogleWalletIntegrateResult | 

eval {
    $api_instance->spectatorExternalWalletGwalletTicketIdPut(ticketId => $ticketId, spectatorGoogleWalletIntegrateResult => $spectatorGoogleWalletIntegrateResult);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String |  (default to null)
spectatorGoogleWalletIntegrateResult =  # SpectatorGoogleWalletIntegrateResult |  (optional)

try:
    api_instance.spectator_external_wallet_gwallet_ticket_id_put(ticketId, spectatorGoogleWalletIntegrateResult=spectatorGoogleWalletIntegrateResult)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorExternalWalletGwalletTicketIdPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String
    let spectatorGoogleWalletIntegrateResult = ; // SpectatorGoogleWalletIntegrateResult

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorExternalWalletGwalletTicketIdPut(ticketId, spectatorGoogleWalletIntegrateResult, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
Required
Body parameters
Name Description
spectatorGoogleWalletIntegrateResult

Responses


spectatorExternalWalletTicketIdAppleGet

Request pk pass file to add to Apple Wallet


/spectator/external-wallet/{ticketId}/apple

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/vnd.apple.pkpass" \
 "https://api.tixngo.io/prod/v1.0/spectator/external-wallet/{ticketId}/apple?deeplink=deeplink_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        String deeplink = deeplink_example; // String | 

        try {
            byte[] result = apiInstance.spectatorExternalWalletTicketIdAppleGet(ticketId, deeplink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletTicketIdAppleGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | 
final String deeplink = new String(); // String | 

try {
    final result = await api_instance.spectatorExternalWalletTicketIdAppleGet(ticketId, deeplink);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorExternalWalletTicketIdAppleGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        String deeplink = deeplink_example; // String | 

        try {
            byte[] result = apiInstance.spectatorExternalWalletTicketIdAppleGet(ticketId, deeplink);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorExternalWalletTicketIdAppleGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; //  (default to null)
String *deeplink = deeplink_example; //  (optional) (default to null)

[apiInstance spectatorExternalWalletTicketIdAppleGetWith:ticketId
    deeplink:deeplink
              completionHandler: ^(byte[] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} 
var opts = {
  'deeplink': deeplink_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorExternalWalletTicketIdAppleGet(ticketId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorExternalWalletTicketIdAppleGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String |  (default to null)
            var deeplink = deeplink_example;  // String |  (optional)  (default to null)

            try {
                byte[] result = apiInstance.spectatorExternalWalletTicketIdAppleGet(ticketId, deeplink);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorExternalWalletTicketIdAppleGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | 
$deeplink = deeplink_example; // String | 

try {
    $result = $api_instance->spectatorExternalWalletTicketIdAppleGet($ticketId, $deeplink);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorExternalWalletTicketIdAppleGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | 
my $deeplink = deeplink_example; # String | 

eval {
    my $result = $api_instance->spectatorExternalWalletTicketIdAppleGet(ticketId => $ticketId, deeplink => $deeplink);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorExternalWalletTicketIdAppleGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String |  (default to null)
deeplink = deeplink_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_external_wallet_ticket_id_apple_get(ticketId, deeplink=deeplink)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorExternalWalletTicketIdAppleGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String
    let deeplink = deeplink_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorExternalWalletTicketIdAppleGet(ticketId, deeplink, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
Required
Query parameters
Name Description
deeplink

Responses

Name Type Format Description
Content-Disposition File binary pkpass files

spectatorLoginChallengesLoginChallengeIdCompletionPost


/spectator/login-challenges/{loginChallengeId}/completion

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/login-challenges/{loginChallengeId}/completion" \
 -d '{
  "loginChallenge" : "loginChallenge"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-spectators
        ApiKeyAuth tyxr-spectators = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-spectators");
        tyxr-spectators.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-spectators.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String loginChallengeId = loginChallengeId_example; // String | 
        SpectatorLoginChallengesCompletionRequest spectatorLoginChallengesCompletionRequest = ; // SpectatorLoginChallengesCompletionRequest | 
        String userAgent = userAgent_example; // String | 

        try {
            SpectatorLoginChallengesCompletionResponse result = apiInstance.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLoginChallengesLoginChallengeIdCompletionPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String loginChallengeId = new String(); // String | 
final SpectatorLoginChallengesCompletionRequest spectatorLoginChallengesCompletionRequest = new SpectatorLoginChallengesCompletionRequest(); // SpectatorLoginChallengesCompletionRequest | 
final String userAgent = new String(); // String | 

try {
    final result = await api_instance.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorLoginChallengesLoginChallengeIdCompletionPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String loginChallengeId = loginChallengeId_example; // String | 
        SpectatorLoginChallengesCompletionRequest spectatorLoginChallengesCompletionRequest = ; // SpectatorLoginChallengesCompletionRequest | 
        String userAgent = userAgent_example; // String | 

        try {
            SpectatorLoginChallengesCompletionResponse result = apiInstance.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLoginChallengesLoginChallengeIdCompletionPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-spectators)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *loginChallengeId = loginChallengeId_example; //  (default to null)
SpectatorLoginChallengesCompletionRequest *spectatorLoginChallengesCompletionRequest = ; // 
String *userAgent = userAgent_example; //  (optional) (default to null)

[apiInstance spectatorLoginChallengesLoginChallengeIdCompletionPostWith:loginChallengeId
    spectatorLoginChallengesCompletionRequest:spectatorLoginChallengesCompletionRequest
    userAgent:userAgent
              completionHandler: ^(SpectatorLoginChallengesCompletionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-spectators
var tyxr-spectators = defaultClient.authentications['tyxr-spectators'];
tyxr-spectators.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-spectators.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var loginChallengeId = loginChallengeId_example; // {String} 
var spectatorLoginChallengesCompletionRequest = ; // {SpectatorLoginChallengesCompletionRequest} 
var opts = {
  'userAgent': userAgent_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorLoginChallengesLoginChallengeIdCompletionPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-spectators
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var loginChallengeId = loginChallengeId_example;  // String |  (default to null)
            var spectatorLoginChallengesCompletionRequest = new SpectatorLoginChallengesCompletionRequest(); // SpectatorLoginChallengesCompletionRequest | 
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)

            try {
                SpectatorLoginChallengesCompletionResponse result = apiInstance.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorLoginChallengesLoginChallengeIdCompletionPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-spectators
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$loginChallengeId = loginChallengeId_example; // String | 
$spectatorLoginChallengesCompletionRequest = ; // SpectatorLoginChallengesCompletionRequest | 
$userAgent = userAgent_example; // String | 

try {
    $result = $api_instance->spectatorLoginChallengesLoginChallengeIdCompletionPost($loginChallengeId, $spectatorLoginChallengesCompletionRequest, $userAgent);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorLoginChallengesLoginChallengeIdCompletionPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-spectators
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $loginChallengeId = loginChallengeId_example; # String | 
my $spectatorLoginChallengesCompletionRequest = WWW::OPenAPIClient::Object::SpectatorLoginChallengesCompletionRequest->new(); # SpectatorLoginChallengesCompletionRequest | 
my $userAgent = userAgent_example; # String | 

eval {
    my $result = $api_instance->spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId => $loginChallengeId, spectatorLoginChallengesCompletionRequest => $spectatorLoginChallengesCompletionRequest, userAgent => $userAgent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorLoginChallengesLoginChallengeIdCompletionPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-spectators
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
loginChallengeId = loginChallengeId_example # String |  (default to null)
spectatorLoginChallengesCompletionRequest =  # SpectatorLoginChallengesCompletionRequest | 
userAgent = userAgent_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_login_challenges_login_challenge_id_completion_post(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent=userAgent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorLoginChallengesLoginChallengeIdCompletionPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let loginChallengeId = loginChallengeId_example; // String
    let spectatorLoginChallengesCompletionRequest = ; // SpectatorLoginChallengesCompletionRequest
    let userAgent = userAgent_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorLoginChallengesLoginChallengeIdCompletionPost(loginChallengeId, spectatorLoginChallengesCompletionRequest, userAgent, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
loginChallengeId*
String
Required
Header parameters
Name Description
User-Agent
String
Body parameters
Name Description
spectatorLoginChallengesCompletionRequest *

Responses


spectatorLoginChallengesPost


/spectator/login-challenges

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/login-challenges"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-spectators
        ApiKeyAuth tyxr-spectators = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-spectators");
        tyxr-spectators.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-spectators.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 

        try {
            SpectatorLoginChallengesResponse result = apiInstance.spectatorLoginChallengesPost(userAgent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLoginChallengesPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 

try {
    final result = await api_instance.spectatorLoginChallengesPost(userAgent);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorLoginChallengesPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 

        try {
            SpectatorLoginChallengesResponse result = apiInstance.spectatorLoginChallengesPost(userAgent);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLoginChallengesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-spectators)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)

[apiInstance spectatorLoginChallengesPostWith:userAgent
              completionHandler: ^(SpectatorLoginChallengesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-spectators
var tyxr-spectators = defaultClient.authentications['tyxr-spectators'];
tyxr-spectators.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-spectators.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorLoginChallengesPost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorLoginChallengesPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-spectators
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)

            try {
                SpectatorLoginChallengesResponse result = apiInstance.spectatorLoginChallengesPost(userAgent);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorLoginChallengesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-spectators
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 

try {
    $result = $api_instance->spectatorLoginChallengesPost($userAgent);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorLoginChallengesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-spectators
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 

eval {
    my $result = $api_instance->spectatorLoginChallengesPost(userAgent => $userAgent);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorLoginChallengesPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-spectators
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_login_challenges_post(userAgent=userAgent)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorLoginChallengesPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorLoginChallengesPost(userAgent, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String

Responses


spectatorLogsPost

Send logs to the backend


/spectator/logs

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/logs" \
 -d '{
  "level" : "i",
  "category" : "category",
  "message" : "message",
  "ticketId" : "ticketId",
  "timestamp" : "2000-01-23T04:56:07.000+00:00"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        set[SpectatorLog] spectatorLog = ; // set[SpectatorLog] | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorLogsPost(userAgent, spectatorLog, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLogsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final set[SpectatorLog] spectatorLog = new set[SpectatorLog](); // set[SpectatorLog] | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorLogsPost(userAgent, spectatorLog, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorLogsPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        set[SpectatorLog] spectatorLog = ; // set[SpectatorLog] | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorLogsPost(userAgent, spectatorLog, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorLogsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
set[SpectatorLog] *spectatorLog = ; // 
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorLogsPostWith:userAgent
    spectatorLog:spectatorLog
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var spectatorLog = ; // {set[SpectatorLog]} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorLogsPost(userAgent, spectatorLog, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorLogsPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var spectatorLog = new set[SpectatorLog](); // set[SpectatorLog] | 
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorLogsPost(userAgent, spectatorLog, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorLogsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$spectatorLog = ; // set[SpectatorLog] | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorLogsPost($userAgent, $spectatorLog, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorLogsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $spectatorLog = [WWW::OPenAPIClient::Object::set[SpectatorLog]->new()]; # set[SpectatorLog] | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorLogsPost(userAgent => $userAgent, spectatorLog => $spectatorLog, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorLogsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
spectatorLog =  # set[SpectatorLog] | 
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_logs_post(userAgent, spectatorLog, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorLogsPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let spectatorLog = ; // set[SpectatorLog]
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorLogsPost(userAgent, spectatorLog, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String
Body parameters
Name Description
spectatorLog *

Responses


spectatorPastTicketsGet

Get past tickets for the mobile side. This is a split from legacy spectator/tickets GET, and is more lightweight compare to before


/spectator/past-tickets

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/past-tickets"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPastTicketsResponse result = apiInstance.spectatorPastTicketsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPastTicketsGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorPastTicketsGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPastTicketsGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPastTicketsResponse result = apiInstance.spectatorPastTicketsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPastTicketsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorPastTicketsGetWithCompletionHandler: 
              ^(SpectatorPastTicketsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPastTicketsGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPastTicketsGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorPastTicketsResponse result = apiInstance.spectatorPastTicketsGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPastTicketsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorPastTicketsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPastTicketsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorPastTicketsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPastTicketsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_past_tickets_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPastTicketsGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPastTicketsGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorPingInfoGet

Ping and get some infos


/spectator/ping/info

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/ping/info"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPingInfo result = apiInstance.spectatorPingInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPingInfoGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorPingInfoGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPingInfoGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPingInfo result = apiInstance.spectatorPingInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPingInfoGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorPingInfoGetWithCompletionHandler: 
              ^(SpectatorPingInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPingInfoGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPingInfoGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorPingInfo result = apiInstance.spectatorPingInfoGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPingInfoGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorPingInfoGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPingInfoGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorPingInfoGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPingInfoGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_ping_info_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPingInfoGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPingInfoGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorPreferenceGet

Get the preferences of the caller (spectator)


/spectator/preference

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/preference"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPreference result = apiInstance.spectatorPreferenceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPreferenceGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorPreferenceGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPreferenceGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPreference result = apiInstance.spectatorPreferenceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPreferenceGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorPreferenceGetWithCompletionHandler: 
              ^(SpectatorPreference output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPreferenceGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPreferenceGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorPreference result = apiInstance.spectatorPreferenceGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPreferenceGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorPreferenceGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPreferenceGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorPreferenceGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPreferenceGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_preference_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPreferenceGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPreferenceGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorPreferencePut

Create or update the caller's (spectator) preferences


/spectator/preference

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/preference" \
 -d '{
  "allowPromoEmail" : true,
  "allowPromoThirdPartyEmail" : true,
  "allowTracking" : true
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        SpectatorPreference spectatorPreference = ; // SpectatorPreference | 

        try {
            SpectatorPreference result = apiInstance.spectatorPreferencePut(spectatorPreference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPreferencePut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpectatorPreference spectatorPreference = new SpectatorPreference(); // SpectatorPreference | 

try {
    final result = await api_instance.spectatorPreferencePut(spectatorPreference);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPreferencePut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SpectatorPreference spectatorPreference = ; // SpectatorPreference | 

        try {
            SpectatorPreference result = apiInstance.spectatorPreferencePut(spectatorPreference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPreferencePut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SpectatorPreference *spectatorPreference = ; // 

[apiInstance spectatorPreferencePutWith:spectatorPreference
              completionHandler: ^(SpectatorPreference output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorPreference = ; // {SpectatorPreference} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPreferencePut(spectatorPreference, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPreferencePutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorPreference = new SpectatorPreference(); // SpectatorPreference | 

            try {
                SpectatorPreference result = apiInstance.spectatorPreferencePut(spectatorPreference);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPreferencePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorPreference = ; // SpectatorPreference | 

try {
    $result = $api_instance->spectatorPreferencePut($spectatorPreference);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPreferencePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorPreference = WWW::OPenAPIClient::Object::SpectatorPreference->new(); # SpectatorPreference | 

eval {
    my $result = $api_instance->spectatorPreferencePut(spectatorPreference => $spectatorPreference);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPreferencePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorPreference =  # SpectatorPreference | 

try:
    api_response = api_instance.spectator_preference_put(spectatorPreference)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPreferencePut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorPreference = ; // SpectatorPreference

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPreferencePut(spectatorPreference, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spectatorPreference *

Responses


spectatorPrivilegesDeletedGet

Get the privilege information of the spectator


/spectator/privileges/deleted

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/privileges/deleted"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPrivilegesDeletedGetResponse result = apiInstance.spectatorPrivilegesDeletedGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesDeletedGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorPrivilegesDeletedGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPrivilegesDeletedGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPrivilegesDeletedGetResponse result = apiInstance.spectatorPrivilegesDeletedGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesDeletedGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorPrivilegesDeletedGetWithCompletionHandler: 
              ^(SpectatorPrivilegesDeletedGetResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPrivilegesDeletedGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPrivilegesDeletedGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorPrivilegesDeletedGetResponse result = apiInstance.spectatorPrivilegesDeletedGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPrivilegesDeletedGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorPrivilegesDeletedGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPrivilegesDeletedGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorPrivilegesDeletedGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPrivilegesDeletedGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_privileges_deleted_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPrivilegesDeletedGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPrivilegesDeletedGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorPrivilegesGet

Get the privilege information of the spectator


/spectator/privileges

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/privileges"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPrivilegesGetResponse result = apiInstance.spectatorPrivilegesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorPrivilegesGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPrivilegesGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorPrivilegesGetResponse result = apiInstance.spectatorPrivilegesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorPrivilegesGetWithCompletionHandler: 
              ^(SpectatorPrivilegesGetResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPrivilegesGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPrivilegesGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorPrivilegesGetResponse result = apiInstance.spectatorPrivilegesGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPrivilegesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorPrivilegesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPrivilegesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorPrivilegesGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPrivilegesGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_privileges_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPrivilegesGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPrivilegesGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorPrivilegesInstanceIdGet

Get privilege instance information by instanceId


/spectator/privileges/{instanceId}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/privileges/{instanceId}"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Long instanceId = 789; // Long | technical Id of the privilege instance

        try {
            SpectatorPrivilegesInstanceIdGetResponse result = apiInstance.spectatorPrivilegesInstanceIdGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesInstanceIdGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Long instanceId = new Long(); // Long | technical Id of the privilege instance

try {
    final result = await api_instance.spectatorPrivilegesInstanceIdGet(instanceId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorPrivilegesInstanceIdGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Long instanceId = 789; // Long | technical Id of the privilege instance

        try {
            SpectatorPrivilegesInstanceIdGetResponse result = apiInstance.spectatorPrivilegesInstanceIdGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorPrivilegesInstanceIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Long *instanceId = 789; // technical Id of the privilege instance (default to null)

[apiInstance spectatorPrivilegesInstanceIdGetWith:instanceId
              completionHandler: ^(SpectatorPrivilegesInstanceIdGetResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var instanceId = 789; // {Long} technical Id of the privilege instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorPrivilegesInstanceIdGet(instanceId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorPrivilegesInstanceIdGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var instanceId = 789;  // Long | technical Id of the privilege instance (default to null)

            try {
                SpectatorPrivilegesInstanceIdGetResponse result = apiInstance.spectatorPrivilegesInstanceIdGet(instanceId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorPrivilegesInstanceIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$instanceId = 789; // Long | technical Id of the privilege instance

try {
    $result = $api_instance->spectatorPrivilegesInstanceIdGet($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorPrivilegesInstanceIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $instanceId = 789; # Long | technical Id of the privilege instance

eval {
    my $result = $api_instance->spectatorPrivilegesInstanceIdGet(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorPrivilegesInstanceIdGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
instanceId = 789 # Long | technical Id of the privilege instance (default to null)

try:
    api_response = api_instance.spectator_privileges_instance_id_get(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorPrivilegesInstanceIdGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let instanceId = 789; // Long

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorPrivilegesInstanceIdGet(instanceId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
instanceId*
Long (int64)
technical Id of the privilege instance
Required

Responses


spectatorProfileConfirmationDelete

Anonymize spectator profile and related data


/spectator/profile/confirmation

Usage and SDK Samples

curl -X DELETE \
 "https://api.tixngo.io/prod/v1.0/spectator/profile/confirmation?deletionToken=deletionToken_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String deletionToken = deletionToken_example; // String | 

        try {
            apiInstance.spectatorProfileConfirmationDelete(deletionToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileConfirmationDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String deletionToken = new String(); // String | 

try {
    final result = await api_instance.spectatorProfileConfirmationDelete(deletionToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorProfileConfirmationDelete: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String deletionToken = deletionToken_example; // String | 

        try {
            apiInstance.spectatorProfileConfirmationDelete(deletionToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileConfirmationDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *deletionToken = deletionToken_example; //  (optional) (default to null)

[apiInstance spectatorProfileConfirmationDeleteWith:deletionToken
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'deletionToken': deletionToken_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorProfileConfirmationDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorProfileConfirmationDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var deletionToken = deletionToken_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorProfileConfirmationDelete(deletionToken);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorProfileConfirmationDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$deletionToken = deletionToken_example; // String | 

try {
    $api_instance->spectatorProfileConfirmationDelete($deletionToken);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorProfileConfirmationDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $deletionToken = deletionToken_example; # String | 

eval {
    $api_instance->spectatorProfileConfirmationDelete(deletionToken => $deletionToken);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorProfileConfirmationDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
deletionToken = deletionToken_example # String |  (optional) (default to null)

try:
    api_instance.spectator_profile_confirmation_delete(deletionToken=deletionToken)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorProfileConfirmationDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let deletionToken = deletionToken_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorProfileConfirmationDelete(deletionToken, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
deletionToken
String

Responses


spectatorProfileDelete

Anonymize spectator profile and related data


/spectator/profile

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 "https://api.tixngo.io/prod/v1.0/spectator/profile"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorProfileDelete(userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorProfileDelete(userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorProfileDelete: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorProfileDelete(userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorProfileDeleteWith:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorProfileDelete(userAgent, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorProfileDeleteExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorProfileDelete(userAgent, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorProfileDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorProfileDelete($userAgent, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorProfileDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorProfileDelete(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorProfileDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_profile_delete(userAgent, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorProfileDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorProfileDelete(userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String

Responses


spectatorProfileFacePut

Create or update a picture of the face of the spectator. The associated url will be available through get /spectator/profile


/spectator/profile/face

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/octet-stream" \
 "https://api.tixngo.io/prod/v1.0/spectator/profile/face" \
 -d 'Custom MIME type example not yet supported: application/octet-stream'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String body = body_example; // String | 

        try {
            apiInstance.spectatorProfileFacePut(contentType, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileFacePut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String contentType = new String(); // String | 
final String body = new String(); // String | 

try {
    final result = await api_instance.spectatorProfileFacePut(contentType, body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorProfileFacePut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String contentType = contentType_example; // String | 
        String body = body_example; // String | 

        try {
            apiInstance.spectatorProfileFacePut(contentType, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileFacePut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *contentType = contentType_example; //  (default to null)
String *body = body_example; // 

[apiInstance spectatorProfileFacePutWith:contentType
    body:body
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var contentType = contentType_example; // {String} 
var body = body_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorProfileFacePut(contentType, body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorProfileFacePutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var contentType = contentType_example;  // String |  (default to null)
            var body = body_example;  // String | 

            try {
                apiInstance.spectatorProfileFacePut(contentType, body);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorProfileFacePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$contentType = contentType_example; // String | 
$body = body_example; // String | 

try {
    $api_instance->spectatorProfileFacePut($contentType, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorProfileFacePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $contentType = contentType_example; # String | 
my $body = WWW::OPenAPIClient::Object::String->new(); # String | 

eval {
    $api_instance->spectatorProfileFacePut(contentType => $contentType, body => $body);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorProfileFacePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
contentType = contentType_example # String |  (default to null)
body = body_example # String | 

try:
    api_instance.spectator_profile_face_put(contentType, body)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorProfileFacePut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let contentType = contentType_example; // String
    let body = body_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorProfileFacePut(contentType, body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Content-Type*
String
Required
Body parameters
Name Description
body *

Responses


spectatorProfileGet

Get information about the caller (spectator) profile


/spectator/profile

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/profile"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpecSpectatorIdentity result = apiInstance.spectatorProfileGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorProfileGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorProfileGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpecSpectatorIdentity result = apiInstance.spectatorProfileGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfileGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorProfileGetWithCompletionHandler: 
              ^(SpecSpectatorIdentity output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorProfileGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorProfileGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpecSpectatorIdentity result = apiInstance.spectatorProfileGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorProfileGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorProfileGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorProfileGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorProfileGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorProfileGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_profile_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorProfileGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorProfileGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorProfilePut

Create or update a spectator profile (use /spectator/profile/face to update face)


/spectator/profile

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/profile" \
 -d '{
  "passportNumber" : "passportNumber",
  "residenceCountry" : "residenceCountry",
  "lastName" : "lastName",
  "address" : {
    "zip" : "zip",
    "city" : "city",
    "countryCode" : "countryCode",
    "line3" : "line3",
    "line2" : "line2",
    "line1" : "line1"
  },
  "gender" : "m",
  "extraInfo1" : "extraInfo1",
  "dateOfBirth" : "2000-01-23",
  "birthCity" : "birthCity",
  "preferenceLanguage" : "preferenceLanguage",
  "extraInfo4" : "extraInfo4",
  "extraInfo2" : "extraInfo2",
  "extraInfo3" : "extraInfo3",
  "firstName" : "firstName",
  "face" : "face",
  "phoneNumber" : "phoneNumber",
  "nationality" : "nationality",
  "isLocked" : true,
  "idCardNumber" : "idCardNumber",
  "birthCountry" : "birthCountry",
  "email" : "email"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        SpecSpectatorIdentity specSpectatorIdentity = ; // SpecSpectatorIdentity | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpecSpectatorIdentity result = apiInstance.spectatorProfilePut(specSpectatorIdentity, userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfilePut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpecSpectatorIdentity specSpectatorIdentity = new SpecSpectatorIdentity(); // SpecSpectatorIdentity | 
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorProfilePut(specSpectatorIdentity, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorProfilePut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SpecSpectatorIdentity specSpectatorIdentity = ; // SpecSpectatorIdentity | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpecSpectatorIdentity result = apiInstance.spectatorProfilePut(specSpectatorIdentity, userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorProfilePut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SpecSpectatorIdentity *specSpectatorIdentity = ; // 
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorProfilePutWith:specSpectatorIdentity
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(SpecSpectatorIdentity output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var specSpectatorIdentity = ; // {SpecSpectatorIdentity} 
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorProfilePut(specSpectatorIdentity, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorProfilePutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var specSpectatorIdentity = new SpecSpectatorIdentity(); // SpecSpectatorIdentity | 
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                SpecSpectatorIdentity result = apiInstance.spectatorProfilePut(specSpectatorIdentity, userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorProfilePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$specSpectatorIdentity = ; // SpecSpectatorIdentity | 
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorProfilePut($specSpectatorIdentity, $userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorProfilePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $specSpectatorIdentity = WWW::OPenAPIClient::Object::SpecSpectatorIdentity->new(); # SpecSpectatorIdentity | 
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorProfilePut(specSpectatorIdentity => $specSpectatorIdentity, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorProfilePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
specSpectatorIdentity =  # SpecSpectatorIdentity | 
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_profile_put(specSpectatorIdentity, userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorProfilePut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let specSpectatorIdentity = ; // SpecSpectatorIdentity
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorProfilePut(specSpectatorIdentity, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Body parameters
Name Description
specSpectatorIdentity *

Responses


spectatorSecuritytokenDelete

Invalidate the given token. Call must be send on logout


/spectator/securitytoken

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 "https://api.tixngo.io/prod/v1.0/spectator/securitytoken"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String xSecurityToken = xSecurityToken_example; // String | the token to invalidate
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorSecuritytokenDelete(xSecurityToken, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorSecuritytokenDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String xSecurityToken = new String(); // String | the token to invalidate
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorSecuritytokenDelete(xSecurityToken, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorSecuritytokenDelete: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String xSecurityToken = xSecurityToken_example; // String | the token to invalidate
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorSecuritytokenDelete(xSecurityToken, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorSecuritytokenDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *xSecurityToken = xSecurityToken_example; // the token to invalidate (default to null)
String *userAgent = userAgent_example; //  (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorSecuritytokenDeleteWith:xSecurityToken
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var xSecurityToken = xSecurityToken_example; // {String} the token to invalidate
var userAgent = userAgent_example; // {String} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorSecuritytokenDelete(xSecurityToken, userAgent, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorSecuritytokenDeleteExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var xSecurityToken = xSecurityToken_example;  // String | the token to invalidate (default to null)
            var userAgent = userAgent_example;  // String |  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorSecuritytokenDelete(xSecurityToken, userAgent, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorSecuritytokenDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$xSecurityToken = xSecurityToken_example; // String | the token to invalidate
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorSecuritytokenDelete($xSecurityToken, $userAgent, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorSecuritytokenDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $xSecurityToken = xSecurityToken_example; # String | the token to invalidate
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorSecuritytokenDelete(xSecurityToken => $xSecurityToken, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorSecuritytokenDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
xSecurityToken = xSecurityToken_example # String | the token to invalidate (default to null)
userAgent = userAgent_example # String |  (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_securitytoken_delete(xSecurityToken, userAgent, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorSecuritytokenDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let xSecurityToken = xSecurityToken_example; // String
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorSecuritytokenDelete(xSecurityToken, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
x-security-token*
String
the token to invalidate
Required
User-Agent*
String
Required
x-tixngo-app-id
String

Responses


spectatorSecuritytokenGet

Require a new security token to put in x-security-token header


/spectator/securitytoken

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/securitytoken?refresh=true"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-spectators
        ApiKeyAuth tyxr-spectators = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-spectators");
        tyxr-spectators.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-spectators.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        Boolean refresh = true; // Boolean | 

        try {
            SpectatorSecurityToken result = apiInstance.spectatorSecuritytokenGet(userAgent, refresh);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorSecuritytokenGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final Boolean refresh = new Boolean(); // Boolean | 

try {
    final result = await api_instance.spectatorSecuritytokenGet(userAgent, refresh);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorSecuritytokenGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        Boolean refresh = true; // Boolean | 

        try {
            SpectatorSecurityToken result = apiInstance.spectatorSecuritytokenGet(userAgent, refresh);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorSecuritytokenGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-spectators)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
Boolean *refresh = true; //  (optional) (default to false)

[apiInstance spectatorSecuritytokenGetWith:userAgent
    refresh:refresh
              completionHandler: ^(SpectatorSecurityToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-spectators
var tyxr-spectators = defaultClient.authentications['tyxr-spectators'];
tyxr-spectators.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-spectators.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'refresh': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorSecuritytokenGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorSecuritytokenGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-spectators
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var refresh = true;  // Boolean |  (optional)  (default to false)

            try {
                SpectatorSecurityToken result = apiInstance.spectatorSecuritytokenGet(userAgent, refresh);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorSecuritytokenGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-spectators
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$refresh = true; // Boolean | 

try {
    $result = $api_instance->spectatorSecuritytokenGet($userAgent, $refresh);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorSecuritytokenGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-spectators
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $refresh = true; # Boolean | 

eval {
    my $result = $api_instance->spectatorSecuritytokenGet(userAgent => $userAgent, refresh => $refresh);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorSecuritytokenGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-spectators
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
refresh = true # Boolean |  (optional) (default to false)

try:
    api_response = api_instance.spectator_securitytoken_get(userAgent=userAgent, refresh=refresh)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorSecuritytokenGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let refresh = true; // Boolean

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorSecuritytokenGet(userAgent, refresh, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
Query parameters
Name Description
refresh
Boolean

Responses


spectatorTicketsActivationsPost

Inform the backend that a ticket was activated on the spectator side (can be by bluetooth for example). this will flag the ticket as activated backend side.


/spectator/tickets/activations

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/activations" \
 -d '{
  "identifier" : "identifier",
  "method" : "method",
  "beaconName" : "beaconName",
  "ticketId" : "ticketId",
  "timestamp" : "2000-01-23T04:56:07.000+00:00"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorActivationReport] spectatorActivationReport = ; // set[SpectatorActivationReport] | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTicketsActivationsPost(spectatorActivationReport, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsActivationsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final set[SpectatorActivationReport] spectatorActivationReport = new set[SpectatorActivationReport](); // set[SpectatorActivationReport] | 
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsActivationsPost(spectatorActivationReport, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsActivationsPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorActivationReport] spectatorActivationReport = ; // set[SpectatorActivationReport] | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTicketsActivationsPost(spectatorActivationReport, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsActivationsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
set[SpectatorActivationReport] *spectatorActivationReport = ; // 
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorTicketsActivationsPostWith:spectatorActivationReport
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorActivationReport = ; // {set[SpectatorActivationReport]} 
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTicketsActivationsPost(spectatorActivationReport, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsActivationsPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorActivationReport = new set[SpectatorActivationReport](); // set[SpectatorActivationReport] | 
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorTicketsActivationsPost(spectatorActivationReport, userAgent, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsActivationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorActivationReport = ; // set[SpectatorActivationReport] | 
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorTicketsActivationsPost($spectatorActivationReport, $userAgent, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsActivationsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorActivationReport = [WWW::OPenAPIClient::Object::set[SpectatorActivationReport]->new()]; # set[SpectatorActivationReport] | 
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorTicketsActivationsPost(spectatorActivationReport => $spectatorActivationReport, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsActivationsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorActivationReport =  # set[SpectatorActivationReport] | 
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_tickets_activations_post(spectatorActivationReport, userAgent=userAgent, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsActivationsPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorActivationReport = ; // set[SpectatorActivationReport]
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsActivationsPost(spectatorActivationReport, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Body parameters
Name Description
spectatorActivationReport *

Responses


spectatorTicketsApprovalAcknowledgePost

(deprecated) acknowledge a ticket (accept or refuse). please use patch /spectaor/transfers


/spectator/tickets/approval/acknowledge

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/approval/acknowledge" \
 -d '{
  "ticketId" : "ticketId",
  "status" : "accepted"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        array[SpectatorTicketsApprovalAcknowledgeInner] spectatorTicketsApprovalAcknowledgeInner = ; // array[SpectatorTicketsApprovalAcknowledgeInner] | 

        try {
            array[SpectatorTicketsApprovalAcknowledgeInner] result = apiInstance.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalAcknowledgePost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final array[SpectatorTicketsApprovalAcknowledgeInner] spectatorTicketsApprovalAcknowledgeInner = new array[SpectatorTicketsApprovalAcknowledgeInner](); // array[SpectatorTicketsApprovalAcknowledgeInner] | 

try {
    final result = await api_instance.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsApprovalAcknowledgePost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[SpectatorTicketsApprovalAcknowledgeInner] spectatorTicketsApprovalAcknowledgeInner = ; // array[SpectatorTicketsApprovalAcknowledgeInner] | 

        try {
            array[SpectatorTicketsApprovalAcknowledgeInner] result = apiInstance.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalAcknowledgePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
array[SpectatorTicketsApprovalAcknowledgeInner] *spectatorTicketsApprovalAcknowledgeInner = ; // 

[apiInstance spectatorTicketsApprovalAcknowledgePostWith:spectatorTicketsApprovalAcknowledgeInner
              completionHandler: ^(array[SpectatorTicketsApprovalAcknowledgeInner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorTicketsApprovalAcknowledgeInner = ; // {array[SpectatorTicketsApprovalAcknowledgeInner]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsApprovalAcknowledgePostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorTicketsApprovalAcknowledgeInner = new array[SpectatorTicketsApprovalAcknowledgeInner](); // array[SpectatorTicketsApprovalAcknowledgeInner] | 

            try {
                array[SpectatorTicketsApprovalAcknowledgeInner] result = apiInstance.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsApprovalAcknowledgePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorTicketsApprovalAcknowledgeInner = ; // array[SpectatorTicketsApprovalAcknowledgeInner] | 

try {
    $result = $api_instance->spectatorTicketsApprovalAcknowledgePost($spectatorTicketsApprovalAcknowledgeInner);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsApprovalAcknowledgePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorTicketsApprovalAcknowledgeInner = [WWW::OPenAPIClient::Object::array[SpectatorTicketsApprovalAcknowledgeInner]->new()]; # array[SpectatorTicketsApprovalAcknowledgeInner] | 

eval {
    my $result = $api_instance->spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner => $spectatorTicketsApprovalAcknowledgeInner);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsApprovalAcknowledgePost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorTicketsApprovalAcknowledgeInner =  # array[SpectatorTicketsApprovalAcknowledgeInner] | 

try:
    api_response = api_instance.spectator_tickets_approval_acknowledge_post(spectatorTicketsApprovalAcknowledgeInner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsApprovalAcknowledgePost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorTicketsApprovalAcknowledgeInner = ; // array[SpectatorTicketsApprovalAcknowledgeInner]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsApprovalAcknowledgePost(spectatorTicketsApprovalAcknowledgeInner, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spectatorTicketsApprovalAcknowledgeInner *

Responses


spectatorTicketsApprovalPost

(deprecated) initiate a transfer of a ticket to another spectator (given its email)


/spectator/tickets/approval

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/approval" \
 -d '{
  "reason" : "reason",
  "extra" : "extra",
  "to" : "to",
  "withAccept" : true,
  "lang" : "lang",
  "ticketId" : "ticketId",
  "transferMessage" : "transferMessage"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        SpectatorTransferOrder spectatorTransferOrder = ; // SpectatorTransferOrder | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorTransferOrder result = apiInstance.spectatorTicketsApprovalPost(spectatorTransferOrder, userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpectatorTransferOrder spectatorTransferOrder = new SpectatorTransferOrder(); // SpectatorTransferOrder | 
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsApprovalPost(spectatorTransferOrder, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsApprovalPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SpectatorTransferOrder spectatorTransferOrder = ; // SpectatorTransferOrder | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorTransferOrder result = apiInstance.spectatorTicketsApprovalPost(spectatorTransferOrder, userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SpectatorTransferOrder *spectatorTransferOrder = ; // 
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorTicketsApprovalPostWith:spectatorTransferOrder
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(SpectatorTransferOrder output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorTransferOrder = ; // {SpectatorTransferOrder} 
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsApprovalPost(spectatorTransferOrder, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsApprovalPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorTransferOrder = new SpectatorTransferOrder(); // SpectatorTransferOrder | 
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                SpectatorTransferOrder result = apiInstance.spectatorTicketsApprovalPost(spectatorTransferOrder, userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsApprovalPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorTransferOrder = ; // SpectatorTransferOrder | 
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorTicketsApprovalPost($spectatorTransferOrder, $userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsApprovalPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorTransferOrder = WWW::OPenAPIClient::Object::SpectatorTransferOrder->new(); # SpectatorTransferOrder | 
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorTicketsApprovalPost(spectatorTransferOrder => $spectatorTransferOrder, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsApprovalPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorTransferOrder =  # SpectatorTransferOrder | 
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_tickets_approval_post(spectatorTransferOrder, userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsApprovalPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorTransferOrder = ; // SpectatorTransferOrder
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsApprovalPost(spectatorTransferOrder, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Body parameters
Name Description
spectatorTransferOrder *

Responses


spectatorTicketsApprovalWaitingForActionGet

(deprecated) use GET /spectator/transfers


/spectator/tickets/approval/waiting-for-action

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/approval/waiting-for-action?action=action_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String action = action_example; // String | 

        try {
            array[SpectatorTicketsApprovalWaitForActionInner] result = apiInstance.spectatorTicketsApprovalWaitingForActionGet(action);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalWaitingForActionGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String action = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsApprovalWaitingForActionGet(action);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsApprovalWaitingForActionGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String action = action_example; // String | 

        try {
            array[SpectatorTicketsApprovalWaitForActionInner] result = apiInstance.spectatorTicketsApprovalWaitingForActionGet(action);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsApprovalWaitingForActionGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *action = action_example; //  (optional) (default to null)

[apiInstance spectatorTicketsApprovalWaitingForActionGetWith:action
              completionHandler: ^(array[SpectatorTicketsApprovalWaitForActionInner] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'action': action_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsApprovalWaitingForActionGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsApprovalWaitingForActionGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var action = action_example;  // String |  (optional)  (default to null)

            try {
                array[SpectatorTicketsApprovalWaitForActionInner] result = apiInstance.spectatorTicketsApprovalWaitingForActionGet(action);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsApprovalWaitingForActionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$action = action_example; // String | 

try {
    $result = $api_instance->spectatorTicketsApprovalWaitingForActionGet($action);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsApprovalWaitingForActionGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $action = action_example; # String | 

eval {
    my $result = $api_instance->spectatorTicketsApprovalWaitingForActionGet(action => $action);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsApprovalWaitingForActionGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
action = action_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_tickets_approval_waiting_for_action_get(action=action)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsApprovalWaitingForActionGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let action = action_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsApprovalWaitingForActionGet(action, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
action
String

Responses


spectatorTicketsDeactivationsPost

Inform the backend that a ticket was deactivated on the spectator side


/spectator/tickets/deactivations

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/deactivations" \
 -d '{
  "pin" : "pin",
  "ticketId" : "ticketId",
  "timestamp" : "2000-01-23T04:56:07.000+00:00"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorDeactivationReport] spectatorDeactivationReport = ; // set[SpectatorDeactivationReport] | 

        try {
            apiInstance.spectatorTicketsDeactivationsPost(spectatorDeactivationReport);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsDeactivationsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final set[SpectatorDeactivationReport] spectatorDeactivationReport = new set[SpectatorDeactivationReport](); // set[SpectatorDeactivationReport] | 

try {
    final result = await api_instance.spectatorTicketsDeactivationsPost(spectatorDeactivationReport);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsDeactivationsPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorDeactivationReport] spectatorDeactivationReport = ; // set[SpectatorDeactivationReport] | 

        try {
            apiInstance.spectatorTicketsDeactivationsPost(spectatorDeactivationReport);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsDeactivationsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
set[SpectatorDeactivationReport] *spectatorDeactivationReport = ; // 

[apiInstance spectatorTicketsDeactivationsPostWith:spectatorDeactivationReport
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorDeactivationReport = ; // {set[SpectatorDeactivationReport]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTicketsDeactivationsPost(spectatorDeactivationReport, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsDeactivationsPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorDeactivationReport = new set[SpectatorDeactivationReport](); // set[SpectatorDeactivationReport] | 

            try {
                apiInstance.spectatorTicketsDeactivationsPost(spectatorDeactivationReport);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsDeactivationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorDeactivationReport = ; // set[SpectatorDeactivationReport] | 

try {
    $api_instance->spectatorTicketsDeactivationsPost($spectatorDeactivationReport);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsDeactivationsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorDeactivationReport = [WWW::OPenAPIClient::Object::set[SpectatorDeactivationReport]->new()]; # set[SpectatorDeactivationReport] | 

eval {
    $api_instance->spectatorTicketsDeactivationsPost(spectatorDeactivationReport => $spectatorDeactivationReport);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsDeactivationsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorDeactivationReport =  # set[SpectatorDeactivationReport] | 

try:
    api_instance.spectator_tickets_deactivations_post(spectatorDeactivationReport)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsDeactivationsPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorDeactivationReport = ; // set[SpectatorDeactivationReport]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsDeactivationsPost(spectatorDeactivationReport, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spectatorDeactivationReport *

Responses


spectatorTicketsDeletedGet

Get the deleted tickets of the caller (spectator)


/spectator/tickets/deleted

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/deleted?reason=reason_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String reason = reason_example; // String | 

        try {
            SpectatorDeletedTicketsResponse result = apiInstance.spectatorTicketsDeletedGet(reason);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsDeletedGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String reason = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsDeletedGet(reason);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsDeletedGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String reason = reason_example; // String | 

        try {
            SpectatorDeletedTicketsResponse result = apiInstance.spectatorTicketsDeletedGet(reason);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsDeletedGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *reason = reason_example; //  (optional) (default to null)

[apiInstance spectatorTicketsDeletedGetWith:reason
              completionHandler: ^(SpectatorDeletedTicketsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'reason': reason_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsDeletedGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsDeletedGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var reason = reason_example;  // String |  (optional)  (default to null)

            try {
                SpectatorDeletedTicketsResponse result = apiInstance.spectatorTicketsDeletedGet(reason);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsDeletedGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$reason = reason_example; // String | 

try {
    $result = $api_instance->spectatorTicketsDeletedGet($reason);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsDeletedGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $reason = reason_example; # String | 

eval {
    my $result = $api_instance->spectatorTicketsDeletedGet(reason => $reason);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsDeletedGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
reason = reason_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_tickets_deleted_get(reason=reason)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsDeletedGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let reason = reason_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsDeletedGet(reason, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
reason
String

Responses


spectatorTicketsHistoryGet

Get the caller's (spectator) tickets transactions history


/spectator/tickets/history

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/history?order=order_example&txType=txType_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String order = order_example; // String | 
        String txType = txType_example; // String | 

        try {
            array[SpectatorTransaction] result = apiInstance.spectatorTicketsHistoryGet(order, txType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsHistoryGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String order = new String(); // String | 
final String txType = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsHistoryGet(order, txType);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsHistoryGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String order = order_example; // String | 
        String txType = txType_example; // String | 

        try {
            array[SpectatorTransaction] result = apiInstance.spectatorTicketsHistoryGet(order, txType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsHistoryGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *order = order_example; //  (optional) (default to null)
String *txType = txType_example; //  (optional) (default to null)

[apiInstance spectatorTicketsHistoryGetWith:order
    txType:txType
              completionHandler: ^(array[SpectatorTransaction] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'order': order_example, // {String} 
  'txType': txType_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsHistoryGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsHistoryGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var order = order_example;  // String |  (optional)  (default to null)
            var txType = txType_example;  // String |  (optional)  (default to null)

            try {
                array[SpectatorTransaction] result = apiInstance.spectatorTicketsHistoryGet(order, txType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsHistoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$order = order_example; // String | 
$txType = txType_example; // String | 

try {
    $result = $api_instance->spectatorTicketsHistoryGet($order, $txType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsHistoryGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $order = order_example; # String | 
my $txType = txType_example; # String | 

eval {
    my $result = $api_instance->spectatorTicketsHistoryGet(order => $order, txType => $txType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsHistoryGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
order = order_example # String |  (optional) (default to null)
txType = txType_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_tickets_history_get(order=order, txType=txType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsHistoryGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let order = order_example; // String
    let txType = txType_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsHistoryGet(order, txType, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
order
String
txType
String

Responses


spectatorTicketsHoldersPut

Create or Update the ticket holders (keep for myself or assign to a guest) for the given list of tickets


/spectator/tickets/holders

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/holders" \
 -d '{
  "ticketHolderRequest" : {
    "holder" : {
      "reason" : "reason",
      "identity" : {
        "passportNumber" : "passportNumber",
        "residenceCountry" : "residenceCountry",
        "lastName" : "lastName",
        "address" : {
          "zip" : "zip",
          "city" : "city",
          "countryCode" : "countryCode",
          "line3" : "line3",
          "line2" : "line2",
          "line1" : "line1"
        },
        "gender" : "m",
        "extraInfo1" : "extraInfo1",
        "dateOfBirth" : "2000-01-23",
        "birthCity" : "birthCity",
        "preferenceLanguage" : "preferenceLanguage",
        "extraInfo4" : "extraInfo4",
        "extraInfo2" : "extraInfo2",
        "extraInfo3" : "extraInfo3",
        "firstName" : "firstName",
        "face" : "face",
        "phoneNumber" : "phoneNumber",
        "nationality" : "nationality",
        "isLocked" : true,
        "idCardNumber" : "idCardNumber",
        "birthCountry" : "birthCountry",
        "email" : "email"
      }
    },
    "hold" : true
  },
  "ticketId" : "ticketId"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        set[TicketHoldersRequest] ticketHoldersRequest = ; // set[TicketHoldersRequest] | 

        try {
            array[TicketHolderResponse] result = apiInstance.spectatorTicketsHoldersPut(ticketHoldersRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsHoldersPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final set[TicketHoldersRequest] ticketHoldersRequest = new set[TicketHoldersRequest](); // set[TicketHoldersRequest] | 

try {
    final result = await api_instance.spectatorTicketsHoldersPut(ticketHoldersRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsHoldersPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        set[TicketHoldersRequest] ticketHoldersRequest = ; // set[TicketHoldersRequest] | 

        try {
            array[TicketHolderResponse] result = apiInstance.spectatorTicketsHoldersPut(ticketHoldersRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsHoldersPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
set[TicketHoldersRequest] *ticketHoldersRequest = ; // 

[apiInstance spectatorTicketsHoldersPutWith:ticketHoldersRequest
              completionHandler: ^(array[TicketHolderResponse] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketHoldersRequest = ; // {set[TicketHoldersRequest]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsHoldersPut(ticketHoldersRequest, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsHoldersPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketHoldersRequest = new set[TicketHoldersRequest](); // set[TicketHoldersRequest] | 

            try {
                array[TicketHolderResponse] result = apiInstance.spectatorTicketsHoldersPut(ticketHoldersRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsHoldersPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketHoldersRequest = ; // set[TicketHoldersRequest] | 

try {
    $result = $api_instance->spectatorTicketsHoldersPut($ticketHoldersRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsHoldersPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketHoldersRequest = [WWW::OPenAPIClient::Object::set[TicketHoldersRequest]->new()]; # set[TicketHoldersRequest] | 

eval {
    my $result = $api_instance->spectatorTicketsHoldersPut(ticketHoldersRequest => $ticketHoldersRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsHoldersPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketHoldersRequest =  # set[TicketHoldersRequest] | 

try:
    api_response = api_instance.spectator_tickets_holders_put(ticketHoldersRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsHoldersPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketHoldersRequest = ; // set[TicketHoldersRequest]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsHoldersPut(ticketHoldersRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ticketHoldersRequest *

Responses


spectatorTicketsSecondaryActivationsPost

Inform the backend that a ticket was activated for the second time on the spectator side (mostly bluetooth). This will trigger a flag in the ticket table to mark this ticket as


/spectator/tickets/secondary-activations

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/secondary-activations" \
 -d '{
  "identifier" : "identifier",
  "method" : "method",
  "beaconName" : "beaconName",
  "ticketId" : "ticketId",
  "timestamp" : "2000-01-23T04:56:07.000+00:00"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorActivationReport] spectatorActivationReport = ; // set[SpectatorActivationReport] | 
        String userAgent = userAgent_example; // String | 

        try {
            apiInstance.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, userAgent);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsSecondaryActivationsPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final set[SpectatorActivationReport] spectatorActivationReport = new set[SpectatorActivationReport](); // set[SpectatorActivationReport] | 
final String userAgent = new String(); // String | 

try {
    final result = await api_instance.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, userAgent);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsSecondaryActivationsPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorActivationReport] spectatorActivationReport = ; // set[SpectatorActivationReport] | 
        String userAgent = userAgent_example; // String | 

        try {
            apiInstance.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, userAgent);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsSecondaryActivationsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
set[SpectatorActivationReport] *spectatorActivationReport = ; // 
String *userAgent = userAgent_example; //  (optional) (default to null)

[apiInstance spectatorTicketsSecondaryActivationsPostWith:spectatorActivationReport
    userAgent:userAgent
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var spectatorActivationReport = ; // {set[SpectatorActivationReport]} 
var opts = {
  'userAgent': userAgent_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsSecondaryActivationsPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorActivationReport = new set[SpectatorActivationReport](); // set[SpectatorActivationReport] | 
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, userAgent);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsSecondaryActivationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorActivationReport = ; // set[SpectatorActivationReport] | 
$userAgent = userAgent_example; // String | 

try {
    $api_instance->spectatorTicketsSecondaryActivationsPost($spectatorActivationReport, $userAgent);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsSecondaryActivationsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorActivationReport = [WWW::OPenAPIClient::Object::set[SpectatorActivationReport]->new()]; # set[SpectatorActivationReport] | 
my $userAgent = userAgent_example; # String | 

eval {
    $api_instance->spectatorTicketsSecondaryActivationsPost(spectatorActivationReport => $spectatorActivationReport, userAgent => $userAgent);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsSecondaryActivationsPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorActivationReport =  # set[SpectatorActivationReport] | 
userAgent = userAgent_example # String |  (optional) (default to null)

try:
    api_instance.spectator_tickets_secondary_activations_post(spectatorActivationReport, userAgent=userAgent)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsSecondaryActivationsPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorActivationReport = ; // set[SpectatorActivationReport]
    let userAgent = userAgent_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsSecondaryActivationsPost(spectatorActivationReport, userAgent, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
Body parameters
Name Description
spectatorActivationReport *

Responses


spectatorTicketsStatisticsGet

Calculate all number of available/past/pending transfer/transferred tickets


/spectator/tickets/statistics

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/statistics"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorTicketsStatisticsResponse result = apiInstance.spectatorTicketsStatisticsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsStatisticsGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.spectatorTicketsStatisticsGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsStatisticsGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            SpectatorTicketsStatisticsResponse result = apiInstance.spectatorTicketsStatisticsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsStatisticsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance spectatorTicketsStatisticsGetWithCompletionHandler: 
              ^(SpectatorTicketsStatisticsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsStatisticsGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsStatisticsGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                SpectatorTicketsStatisticsResponse result = apiInstance.spectatorTicketsStatisticsGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsStatisticsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->spectatorTicketsStatisticsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsStatisticsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->spectatorTicketsStatisticsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsStatisticsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    api_response = api_instance.spectator_tickets_statistics_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsStatisticsGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsStatisticsGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


spectatorTicketsTicketIdHolderPut

Create or Update the ticket holder (keep for myself or assign to a guest) for the given ticket Id


/spectator/tickets/{ticketId}/holder

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/tickets/{ticketId}/holder" \
 -d '{
  "holder" : {
    "reason" : "reason",
    "identity" : {
      "passportNumber" : "passportNumber",
      "residenceCountry" : "residenceCountry",
      "lastName" : "lastName",
      "address" : {
        "zip" : "zip",
        "city" : "city",
        "countryCode" : "countryCode",
        "line3" : "line3",
        "line2" : "line2",
        "line1" : "line1"
      },
      "gender" : "m",
      "extraInfo1" : "extraInfo1",
      "dateOfBirth" : "2000-01-23",
      "birthCity" : "birthCity",
      "preferenceLanguage" : "preferenceLanguage",
      "extraInfo4" : "extraInfo4",
      "extraInfo2" : "extraInfo2",
      "extraInfo3" : "extraInfo3",
      "firstName" : "firstName",
      "face" : "face",
      "phoneNumber" : "phoneNumber",
      "nationality" : "nationality",
      "isLocked" : true,
      "idCardNumber" : "idCardNumber",
      "birthCountry" : "birthCountry",
      "email" : "email"
    }
  },
  "hold" : true
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket
        TicketHolderRequest ticketHolderRequest = ; // TicketHolderRequest | 

        try {
            TicketHolderResponse result = apiInstance.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsTicketIdHolderPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | technical Id of the ticket
final TicketHolderRequest ticketHolderRequest = new TicketHolderRequest(); // TicketHolderRequest | 

try {
    final result = await api_instance.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTicketsTicketIdHolderPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket
        TicketHolderRequest ticketHolderRequest = ; // TicketHolderRequest | 

        try {
            TicketHolderResponse result = apiInstance.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTicketsTicketIdHolderPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; // technical Id of the ticket (default to null)
TicketHolderRequest *ticketHolderRequest = ; // 

[apiInstance spectatorTicketsTicketIdHolderPutWith:ticketId
    ticketHolderRequest:ticketHolderRequest
              completionHandler: ^(TicketHolderResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} technical Id of the ticket
var ticketHolderRequest = ; // {TicketHolderRequest} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTicketsTicketIdHolderPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String | technical Id of the ticket (default to null)
            var ticketHolderRequest = new TicketHolderRequest(); // TicketHolderRequest | 

            try {
                TicketHolderResponse result = apiInstance.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTicketsTicketIdHolderPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | technical Id of the ticket
$ticketHolderRequest = ; // TicketHolderRequest | 

try {
    $result = $api_instance->spectatorTicketsTicketIdHolderPut($ticketId, $ticketHolderRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTicketsTicketIdHolderPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | technical Id of the ticket
my $ticketHolderRequest = WWW::OPenAPIClient::Object::TicketHolderRequest->new(); # TicketHolderRequest | 

eval {
    my $result = $api_instance->spectatorTicketsTicketIdHolderPut(ticketId => $ticketId, ticketHolderRequest => $ticketHolderRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTicketsTicketIdHolderPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String | technical Id of the ticket (default to null)
ticketHolderRequest =  # TicketHolderRequest | 

try:
    api_response = api_instance.spectator_tickets_ticket_id_holder_put(ticketId, ticketHolderRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTicketsTicketIdHolderPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String
    let ticketHolderRequest = ; // TicketHolderRequest

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTicketsTicketIdHolderPut(ticketId, ticketHolderRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
technical Id of the ticket
Required
Body parameters
Name Description
ticketHolderRequest *

Responses


spectatorTransfersGet

Get the list of the transfer logs(with status pending, processed, confirmed) whose direction are either sent by or received by the caller (spectator)


/spectator/transfers

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers?direction=direction_example&status=status_example&ticketId=ticketId_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String direction = direction_example; // String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
        String status = status_example; // String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
        String ticketId = ticketId_example; // String | filter on the ticketId involved in the transfer

        try {
            array[SpectatorTransfer] result = apiInstance.spectatorTransfersGet(userAgent, xTixngoAppId, direction, status, ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 
final String direction = new String(); // String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
final String status = new String(); // String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
final String ticketId = new String(); // String | filter on the ticketId involved in the transfer

try {
    final result = await api_instance.spectatorTransfersGet(userAgent, xTixngoAppId, direction, status, ticketId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String direction = direction_example; // String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
        String status = status_example; // String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
        String ticketId = ticketId_example; // String | filter on the ticketId involved in the transfer

        try {
            array[SpectatorTransfer] result = apiInstance.spectatorTransfersGet(userAgent, xTixngoAppId, direction, status, ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
String *direction = direction_example; // filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone) (optional) (default to null)
String *status = status_example; // filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done. (optional) (default to null)
String *ticketId = ticketId_example; // filter on the ticketId involved in the transfer (optional) (default to null)

[apiInstance spectatorTransfersGetWith:userAgent
    xTixngoAppId:xTixngoAppId
    direction:direction
    status:status
    ticketId:ticketId
              completionHandler: ^(array[SpectatorTransfer] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'direction': direction_example, // {String} filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
  'status': status_example, // {String} filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
  'ticketId': ticketId_example // {String} filter on the ticketId involved in the transfer
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTransfersGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var direction = direction_example;  // String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone) (optional)  (default to null)
            var status = status_example;  // String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done. (optional)  (default to null)
            var ticketId = ticketId_example;  // String | filter on the ticketId involved in the transfer (optional)  (default to null)

            try {
                array[SpectatorTransfer] result = apiInstance.spectatorTransfersGet(userAgent, xTixngoAppId, direction, status, ticketId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 
$direction = direction_example; // String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
$status = status_example; // String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
$ticketId = ticketId_example; // String | filter on the ticketId involved in the transfer

try {
    $result = $api_instance->spectatorTransfersGet($userAgent, $xTixngoAppId, $direction, $status, $ticketId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $direction = direction_example; # String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
my $status = status_example; # String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
my $ticketId = ticketId_example; # String | filter on the ticketId involved in the transfer

eval {
    my $result = $api_instance->spectatorTransfersGet(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId, direction => $direction, status => $status, ticketId => $ticketId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
direction = direction_example # String | filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone) (optional) (default to null)
status = status_example # String | filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done. (optional) (default to null)
ticketId = ticketId_example # String | filter on the ticketId involved in the transfer (optional) (default to null)

try:
    api_response = api_instance.spectator_transfers_get(userAgent=userAgent, xTixngoAppId=xTixngoAppId, direction=direction, status=status, ticketId=ticketId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let direction = direction_example; // String
    let status = status_example; // String
    let ticketId = ticketId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersGet(userAgent, xTixngoAppId, direction, status, ticketId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Query parameters
Name Description
direction
String
filter on transfer direction. must be in [sent, received]. It must be read as sent/received by caller (to/from someone)
status
String
filter on transfer status, must be in [pending, processed, confirmed]. pending: transfer not done yet, cancellable by caller.; processed: transfer not done yet, not cancellable by caller.; confirmed: transfer done.
ticketId
String
filter on the ticketId involved in the transfer

Responses


spectatorTransfersHistoryGet

Get the transfers that was processed successfully (that are confirmed)


/spectator/transfers/history

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers/history?limit=limit_example&offset=offset_example&direction=direction_example"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String limit = limit_example; // String | 
        String offset = offset_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String direction = direction_example; // String | 

        try {
            array[SpectatorTransfer] result = apiInstance.spectatorTransfersHistoryGet(userAgent, limit, offset, xTixngoAppId, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersHistoryGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String limit = new String(); // String | 
final String offset = new String(); // String | 
final String xTixngoAppId = new String(); // String | 
final String direction = new String(); // String | 

try {
    final result = await api_instance.spectatorTransfersHistoryGet(userAgent, limit, offset, xTixngoAppId, direction);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersHistoryGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String limit = limit_example; // String | 
        String offset = offset_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        String direction = direction_example; // String | 

        try {
            array[SpectatorTransfer] result = apiInstance.spectatorTransfersHistoryGet(userAgent, limit, offset, xTixngoAppId, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersHistoryGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (default to null)
String *limit = limit_example; //  (default to null)
String *offset = offset_example; //  (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
String *direction = direction_example; //  (optional) (default to null)

[apiInstance spectatorTransfersHistoryGetWith:userAgent
    limit:limit
    offset:offset
    xTixngoAppId:xTixngoAppId
    direction:direction
              completionHandler: ^(array[SpectatorTransfer] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var userAgent = userAgent_example; // {String} 
var limit = limit_example; // {String} 
var offset = offset_example; // {String} 
var opts = {
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'direction': direction_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTransfersHistoryGet(userAgent, limit, offset, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersHistoryGetExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (default to null)
            var limit = limit_example;  // String |  (default to null)
            var offset = offset_example;  // String |  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var direction = direction_example;  // String |  (optional)  (default to null)

            try {
                array[SpectatorTransfer] result = apiInstance.spectatorTransfersHistoryGet(userAgent, limit, offset, xTixngoAppId, direction);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersHistoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$limit = limit_example; // String | 
$offset = offset_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 
$direction = direction_example; // String | 

try {
    $result = $api_instance->spectatorTransfersHistoryGet($userAgent, $limit, $offset, $xTixngoAppId, $direction);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersHistoryGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $limit = limit_example; # String | 
my $offset = offset_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $direction = direction_example; # String | 

eval {
    my $result = $api_instance->spectatorTransfersHistoryGet(userAgent => $userAgent, limit => $limit, offset => $offset, xTixngoAppId => $xTixngoAppId, direction => $direction);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersHistoryGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (default to null)
limit = limit_example # String |  (default to null)
offset = offset_example # String |  (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
direction = direction_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_transfers_history_get(userAgent, limit, offset, xTixngoAppId=xTixngoAppId, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersHistoryGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let limit = limit_example; // String
    let offset = offset_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let direction = direction_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersHistoryGet(userAgent, limit, offset, xTixngoAppId, direction, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent*
String
Required
x-tixngo-app-id
String
Query parameters
Name Description
limit*
String
Required
offset*
String
Required
direction
String

Responses


spectatorTransfersPatch

Used by the receiver of a ticket to acknowledge (accept/reject) a transfer (just before paying for it)


/spectator/transfers

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers" \
 -d '{
  "action" : "accept",
  "ticketId" : "ticketId"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorTransferPatch] spectatorTransferPatch = ; // set[SpectatorTransferPatch] | 

        try {
            apiInstance.spectatorTransfersPatch(spectatorTransferPatch);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final set[SpectatorTransferPatch] spectatorTransferPatch = new set[SpectatorTransferPatch](); // set[SpectatorTransferPatch] | 

try {
    final result = await api_instance.spectatorTransfersPatch(spectatorTransferPatch);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersPatch: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        set[SpectatorTransferPatch] spectatorTransferPatch = ; // set[SpectatorTransferPatch] | 

        try {
            apiInstance.spectatorTransfersPatch(spectatorTransferPatch);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
set[SpectatorTransferPatch] *spectatorTransferPatch = ; //  (optional)

[apiInstance spectatorTransfersPatchWith:spectatorTransferPatch
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'spectatorTransferPatch':  // {set[SpectatorTransferPatch]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTransfersPatch(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersPatchExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var spectatorTransferPatch = new set[SpectatorTransferPatch](); // set[SpectatorTransferPatch] |  (optional) 

            try {
                apiInstance.spectatorTransfersPatch(spectatorTransferPatch);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$spectatorTransferPatch = ; // set[SpectatorTransferPatch] | 

try {
    $api_instance->spectatorTransfersPatch($spectatorTransferPatch);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $spectatorTransferPatch = [WWW::OPenAPIClient::Object::set[SpectatorTransferPatch]->new()]; # set[SpectatorTransferPatch] | 

eval {
    $api_instance->spectatorTransfersPatch(spectatorTransferPatch => $spectatorTransferPatch);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersPatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
spectatorTransferPatch =  # set[SpectatorTransferPatch] |  (optional)

try:
    api_instance.spectator_transfers_patch(spectatorTransferPatch=spectatorTransferPatch)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersPatch: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let spectatorTransferPatch = ; // set[SpectatorTransferPatch]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersPatch(spectatorTransferPatch, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spectatorTransferPatch

Responses


spectatorTransfersPost

Create transfers. Can only be used by the owner of the ticket.


/spectator/transfers

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers" \
 -d '{
  "reason" : "reason",
  "extra" : "extra",
  "to" : "to",
  "withAccept" : true,
  "lang" : "lang",
  "ticketId" : "ticketId",
  "transferMessage" : "transferMessage"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        set[SpectatorTransferOrder] spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

        try {
            SpectatorTransferResponse result = apiInstance.spectatorTransfersPost(userAgent, xTixngoAppId, spectatorTransferOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 
final set[SpectatorTransferOrder] spectatorTransferOrder = new set[SpectatorTransferOrder](); // set[SpectatorTransferOrder] | 

try {
    final result = await api_instance.spectatorTransfersPost(userAgent, xTixngoAppId, spectatorTransferOrder);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        set[SpectatorTransferOrder] spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

        try {
            SpectatorTransferResponse result = apiInstance.spectatorTransfersPost(userAgent, xTixngoAppId, spectatorTransferOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
set[SpectatorTransferOrder] *spectatorTransferOrder = ; //  (optional)

[apiInstance spectatorTransfersPostWith:userAgent
    xTixngoAppId:xTixngoAppId
    spectatorTransferOrder:spectatorTransferOrder
              completionHandler: ^(SpectatorTransferResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'spectatorTransferOrder':  // {set[SpectatorTransferOrder]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTransfersPost(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var spectatorTransferOrder = new set[SpectatorTransferOrder](); // set[SpectatorTransferOrder] |  (optional) 

            try {
                SpectatorTransferResponse result = apiInstance.spectatorTransfersPost(userAgent, xTixngoAppId, spectatorTransferOrder);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 
$spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

try {
    $result = $api_instance->spectatorTransfersPost($userAgent, $xTixngoAppId, $spectatorTransferOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $spectatorTransferOrder = [WWW::OPenAPIClient::Object::set[SpectatorTransferOrder]->new()]; # set[SpectatorTransferOrder] | 

eval {
    my $result = $api_instance->spectatorTransfersPost(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId, spectatorTransferOrder => $spectatorTransferOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
spectatorTransferOrder =  # set[SpectatorTransferOrder] |  (optional)

try:
    api_response = api_instance.spectator_transfers_post(userAgent=userAgent, xTixngoAppId=xTixngoAppId, spectatorTransferOrder=spectatorTransferOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let spectatorTransferOrder = ; // set[SpectatorTransferOrder]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersPost(userAgent, xTixngoAppId, spectatorTransferOrder, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Body parameters
Name Description
spectatorTransferOrder

Responses


spectatorTransfersPut

Create transfers or update the ones the caller (spectator) is the owner of (using a short TransferOrder). Can only be used by the owner of the ticket in transfer


/spectator/transfers

Usage and SDK Samples

curl -X PUT \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers" \
 -d '{
  "reason" : "reason",
  "extra" : "extra",
  "to" : "to",
  "withAccept" : true,
  "lang" : "lang",
  "ticketId" : "ticketId",
  "transferMessage" : "transferMessage"
}'
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        set[SpectatorTransferOrder] spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

        try {
            SpectatorTransferResponse result = apiInstance.spectatorTransfersPut(userAgent, xTixngoAppId, spectatorTransferOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 
final set[SpectatorTransferOrder] spectatorTransferOrder = new set[SpectatorTransferOrder](); // set[SpectatorTransferOrder] | 

try {
    final result = await api_instance.spectatorTransfersPut(userAgent, xTixngoAppId, spectatorTransferOrder);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersPut: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 
        set[SpectatorTransferOrder] spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

        try {
            SpectatorTransferResponse result = apiInstance.spectatorTransfersPut(userAgent, xTixngoAppId, spectatorTransferOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)
set[SpectatorTransferOrder] *spectatorTransferOrder = ; //  (optional)

[apiInstance spectatorTransfersPutWith:userAgent
    xTixngoAppId:xTixngoAppId
    spectatorTransferOrder:spectatorTransferOrder
              completionHandler: ^(SpectatorTransferResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example, // {String} 
  'spectatorTransferOrder':  // {set[SpectatorTransferOrder]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTransfersPut(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersPutExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)
            var spectatorTransferOrder = new set[SpectatorTransferOrder](); // set[SpectatorTransferOrder] |  (optional) 

            try {
                SpectatorTransferResponse result = apiInstance.spectatorTransfersPut(userAgent, xTixngoAppId, spectatorTransferOrder);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 
$spectatorTransferOrder = ; // set[SpectatorTransferOrder] | 

try {
    $result = $api_instance->spectatorTransfersPut($userAgent, $xTixngoAppId, $spectatorTransferOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 
my $spectatorTransferOrder = [WWW::OPenAPIClient::Object::set[SpectatorTransferOrder]->new()]; # set[SpectatorTransferOrder] | 

eval {
    my $result = $api_instance->spectatorTransfersPut(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId, spectatorTransferOrder => $spectatorTransferOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersPut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)
spectatorTransferOrder =  # set[SpectatorTransferOrder] |  (optional)

try:
    api_response = api_instance.spectator_transfers_put(userAgent=userAgent, xTixngoAppId=xTixngoAppId, spectatorTransferOrder=spectatorTransferOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersPut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String
    let spectatorTransferOrder = ; // set[SpectatorTransferOrder]

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersPut(userAgent, xTixngoAppId, spectatorTransferOrder, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String
Body parameters
Name Description
spectatorTransferOrder

Responses


spectatorTransfersTicketIdDelete

Delete a transfer order. this is equivalent to cancelling the order using PUT but it is callable from both the sender and the receiver.


/spectator/transfers/{ticketId}

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers/{ticketId}"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTransfersTicketIdDelete(ticketId, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersTicketIdDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | 
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorTransfersTicketIdDelete(ticketId, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersTicketIdDelete: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | 
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTransfersTicketIdDelete(ticketId, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersTicketIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; //  (default to null)
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorTransfersTicketIdDeleteWith:ticketId
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} 
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTransfersTicketIdDelete(ticketId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersTicketIdDeleteExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String |  (default to null)
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorTransfersTicketIdDelete(ticketId, userAgent, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersTicketIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | 
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorTransfersTicketIdDelete($ticketId, $userAgent, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersTicketIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | 
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorTransfersTicketIdDelete(ticketId => $ticketId, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersTicketIdDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String |  (default to null)
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_transfers_ticket_id_delete(ticketId, userAgent=userAgent, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersTicketIdDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersTicketIdDelete(ticketId, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
Required
Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses


spectatorTransfersTicketIdReturnPost

Return previously transferred ticket to the sender


/spectator/transfers/{ticketId}/return

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 "https://api.tixngo.io/prod/v1.0/spectator/transfers/{ticketId}/return"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: tyxr-security-token
        ApiKeyAuth tyxr-security-token = (ApiKeyAuth) defaultClient.getAuthentication("tyxr-security-token");
        tyxr-security-token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //tyxr-security-token.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTransfersTicketIdReturnPost(ticketId, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersTicketIdReturnPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String ticketId = new String(); // String | technical Id of the ticket
final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorTransfersTicketIdReturnPost(ticketId, userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTransfersTicketIdReturnPost: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String ticketId = ticketId_example; // String | technical Id of the ticket
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            apiInstance.spectatorTransfersTicketIdReturnPost(ticketId, userAgent, xTixngoAppId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTransfersTicketIdReturnPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: tyxr-security-token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ticketId = ticketId_example; // technical Id of the ticket (default to null)
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorTransfersTicketIdReturnPostWith:ticketId
    userAgent:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');
var defaultClient = TixngoRestApiBackendSpectatorApi.ApiClient.instance;

// Configure API key authorization: tyxr-security-token
var tyxr-security-token = defaultClient.authentications['tyxr-security-token'];
tyxr-security-token.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tyxr-security-token.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var ticketId = ticketId_example; // {String} technical Id of the ticket
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.spectatorTransfersTicketIdReturnPost(ticketId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTransfersTicketIdReturnPostExample
    {
        public void main()
        {
            // Configure API key authorization: tyxr-security-token
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var ticketId = ticketId_example;  // String | technical Id of the ticket (default to null)
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                apiInstance.spectatorTransfersTicketIdReturnPost(ticketId, userAgent, xTixngoAppId);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTransfersTicketIdReturnPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: tyxr-security-token
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ticketId = ticketId_example; // String | technical Id of the ticket
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $api_instance->spectatorTransfersTicketIdReturnPost($ticketId, $userAgent, $xTixngoAppId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTransfersTicketIdReturnPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Configure API key authorization: tyxr-security-token
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ticketId = ticketId_example; # String | technical Id of the ticket
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    $api_instance->spectatorTransfersTicketIdReturnPost(ticketId => $ticketId, userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTransfersTicketIdReturnPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: tyxr-security-token
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ticketId = ticketId_example # String | technical Id of the ticket (default to null)
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_instance.spectator_transfers_ticket_id_return_post(ticketId, userAgent=userAgent, xTixngoAppId=xTixngoAppId)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTransfersTicketIdReturnPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let ticketId = ticketId_example; // String
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTransfersTicketIdReturnPost(ticketId, userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
ticketId*
String
technical Id of the ticket
Required
Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses


spectatorTranslationDownloadGet

Download app translation crowdin zip file


/spectator/translation/download

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/zip" \
 "https://api.tixngo.io/prod/v1.0/spectator/translation/download"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            byte[] result = apiInstance.spectatorTranslationDownloadGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTranslationDownloadGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorTranslationDownloadGet(userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorTranslationDownloadGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            byte[] result = apiInstance.spectatorTranslationDownloadGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorTranslationDownloadGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorTranslationDownloadGetWith:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(byte[] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorTranslationDownloadGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorTranslationDownloadGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                byte[] result = apiInstance.spectatorTranslationDownloadGet(userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorTranslationDownloadGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorTranslationDownloadGet($userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorTranslationDownloadGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorTranslationDownloadGet(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorTranslationDownloadGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_translation_download_get(userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorTranslationDownloadGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorTranslationDownloadGet(userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses

Name Type Format Description
Content-Disposition File binary

spectatorVersionGet

Extract the version from the User-Agent and check that the version used is compatible with the backend.


/spectator/version

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.tixngo.io/prod/v1.0/spectator/version"
import com.secutix.tixngo.v1.0.*;
import com.secutix.tixngo.v1.0.auth.*;
import com.secutix.tixngo.v1.0.model.*;
import com.secutix.tixngo.v1.0.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorVersion result = apiInstance.spectatorVersionGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorVersionGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String userAgent = new String(); // String | 
final String xTixngoAppId = new String(); // String | 

try {
    final result = await api_instance.spectatorVersionGet(userAgent, xTixngoAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->spectatorVersionGet: $e\n');
}

import com.secutix.tixngo.v1.0.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String userAgent = userAgent_example; // String | 
        String xTixngoAppId = xTixngoAppId_example; // String | 

        try {
            SpectatorVersion result = apiInstance.spectatorVersionGet(userAgent, xTixngoAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#spectatorVersionGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *userAgent = userAgent_example; //  (optional) (default to null)
String *xTixngoAppId = xTixngoAppId_example; //  (optional) (default to null)

[apiInstance spectatorVersionGetWith:userAgent
    xTixngoAppId:xTixngoAppId
              completionHandler: ^(SpectatorVersion output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TixngoRestApiBackendSpectatorApi = require('tixngo_rest_api_backend_spectator_api');

// Create an instance of the API class
var api = new TixngoRestApiBackendSpectatorApi.DefaultApi()
var opts = {
  'userAgent': userAgent_example, // {String} 
  'xTixngoAppId': xTixngoAppId_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.spectatorVersionGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class spectatorVersionGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var userAgent = userAgent_example;  // String |  (optional)  (default to null)
            var xTixngoAppId = xTixngoAppId_example;  // String |  (optional)  (default to null)

            try {
                SpectatorVersion result = apiInstance.spectatorVersionGet(userAgent, xTixngoAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.spectatorVersionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$userAgent = userAgent_example; // String | 
$xTixngoAppId = xTixngoAppId_example; // String | 

try {
    $result = $api_instance->spectatorVersionGet($userAgent, $xTixngoAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->spectatorVersionGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $userAgent = userAgent_example; # String | 
my $xTixngoAppId = xTixngoAppId_example; # String | 

eval {
    my $result = $api_instance->spectatorVersionGet(userAgent => $userAgent, xTixngoAppId => $xTixngoAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->spectatorVersionGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
userAgent = userAgent_example # String |  (optional) (default to null)
xTixngoAppId = xTixngoAppId_example # String |  (optional) (default to null)

try:
    api_response = api_instance.spectator_version_get(userAgent=userAgent, xTixngoAppId=xTixngoAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->spectatorVersionGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let userAgent = userAgent_example; // String
    let xTixngoAppId = xTixngoAppId_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.spectatorVersionGet(userAgent, xTixngoAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
User-Agent
String
x-tixngo-app-id
String

Responses