Dataspike.io API

Watch

watchListIdAddPost

Add item to wtach list


/watch/list/{id}/add

Usage and SDK Samples

curl -X POST\
-H "ds-api-token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/list/{id}/add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        Body_3 body = ; // Body_3 | 
        String id = id_example; // String | 
        try {
            apiInstance.watchListIdAddPost(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdAddPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        Body_3 body = ; // Body_3 | 
        String id = id_example; // String | 
        try {
            apiInstance.watchListIdAddPost(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdAddPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
Body_3 *body = ; // 
String *id = id_example; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Add item to wtach list
[apiInstance watchListIdAddPostWith:body
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var body = ; // {{Body_3}} 
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.watchListIdAddPost(bodyid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var body = new Body_3(); // Body_3 | 
            var id = id_example;  // String | 

            try
            {
                // Add item to wtach list
                apiInstance.watchListIdAddPost(body, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListIdAddPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$body = ; // Body_3 | 
$id = id_example; // String | 

try {
    $api_instance->watchListIdAddPost($body, $id);
} catch (Exception $e) {
    echo 'Exception when calling WatchApi->watchListIdAddPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WatchApi;

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 
my $id = id_example; # String | 

eval { 
    $api_instance->watchListIdAddPost(body => $body, id => $id);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListIdAddPost: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
body =  # Body_3 | 
id = id_example # String | 

try: 
    # Add item to wtach list
    api_instance.watch_list_id_add_post(body, id)
except ApiException as e:
    print("Exception when calling WatchApi->watchListIdAddPost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Item added to watch list

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListIdGet

Request content of specified watch list


/watch/list/{id}

Usage and SDK Samples

curl -X GET\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/list/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        String id = id_example; // String | 
        try {
            WatchListUnitResult result = apiInstance.watchListIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        String id = id_example; // String | 
        try {
            WatchListUnitResult result = apiInstance.watchListIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
String *id = id_example; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Request content of specified watch list
[apiInstance watchListIdGetWith:id
              completionHandler: ^(WatchListUnitResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var id = id_example;  // String | 

            try
            {
                // Request content of specified watch list
                WatchListUnitResult result = apiInstance.watchListIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$id = id_example; // String | 

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->watchListIdGet(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListIdGet: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
id = id_example # String | 

try: 
    # Request content of specified watch list
    api_response = api_instance.watch_list_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - User defined watch lists

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListIdInfoGet

Request information about last updates of watch list


/watch/list/{id}/info

Usage and SDK Samples

curl -X GET\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/list/{id}/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        String id = id_example; // String | 
        try {
            WatchListObject result = apiInstance.watchListIdInfoGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdInfoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        String id = id_example; // String | 
        try {
            WatchListObject result = apiInstance.watchListIdInfoGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdInfoGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
String *id = id_example; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Request information about last updates of watch list
[apiInstance watchListIdInfoGetWith:id
              completionHandler: ^(WatchListObject output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var id = id_example; // {{String}} 

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var id = id_example;  // String | 

            try
            {
                // Request information about last updates of watch list
                WatchListObject result = apiInstance.watchListIdInfoGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListIdInfoGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$id = id_example; // String | 

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->watchListIdInfoGet(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListIdInfoGet: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
id = id_example # String | 

try: 
    # Request information about last updates of watch list
    api_response = api_instance.watch_list_id_info_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListIdInfoGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - User defined watch lists

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListIdRemovePost

Remove item from watch list


/watch/list/{id}/remove

Usage and SDK Samples

curl -X POST\
-H "ds-api-token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/list/{id}/remove"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        Body_4 body = ; // Body_4 | 
        String id = id_example; // String | 
        try {
            apiInstance.watchListIdRemovePost(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdRemovePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        Body_4 body = ; // Body_4 | 
        String id = id_example; // String | 
        try {
            apiInstance.watchListIdRemovePost(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListIdRemovePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
Body_4 *body = ; // 
String *id = id_example; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Remove item from watch list
[apiInstance watchListIdRemovePostWith:body
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var body = ; // {{Body_4}} 
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.watchListIdRemovePost(bodyid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var body = new Body_4(); // Body_4 | 
            var id = id_example;  // String | 

            try
            {
                // Remove item from watch list
                apiInstance.watchListIdRemovePost(body, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListIdRemovePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$body = ; // Body_4 | 
$id = id_example; // String | 

try {
    $api_instance->watchListIdRemovePost($body, $id);
} catch (Exception $e) {
    echo 'Exception when calling WatchApi->watchListIdRemovePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WatchApi;

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 
my $id = id_example; # String | 

eval { 
    $api_instance->watchListIdRemovePost(body => $body, id => $id);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListIdRemovePost: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
body =  # Body_4 | 
id = id_example # String | 

try: 
    # Remove item from watch list
    api_instance.watch_list_id_remove_post(body, id)
except ApiException as e:
    print("Exception when calling WatchApi->watchListIdRemovePost: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Item added to watch list

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListsCreatePost

Created new watch list


/watch/lists/create

Usage and SDK Samples

curl -X POST\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/lists/create"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.watchListsCreatePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsCreatePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        Body body = ; // Body | 
        try {
            inline_response_200 result = apiInstance.watchListsCreatePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsCreatePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
Body *body = ; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Created new watch list
[apiInstance watchListsCreatePostWith:body
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var body = ; // {{Body}} 

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var body = new Body(); // Body | 

            try
            {
                // Created new watch list
                inline_response_200 result = apiInstance.watchListsCreatePost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListsCreatePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$body = ; // Body | 

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->watchListsCreatePost(body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListsCreatePost: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
body =  # Body | 

try: 
    # Created new watch list
    api_response = api_instance.watch_lists_create_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListsCreatePost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Watch lists created

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListsGet

Request all user-deinfed watch lists


/watch/lists

Usage and SDK Samples

curl -X GET\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        try {
            WatchListResult result = apiInstance.watchListsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        try {
            WatchListResult result = apiInstance.watchListsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];

WatchApi *apiInstance = [[WatchApi alloc] init];

// Request all user-deinfed watch lists
[apiInstance watchListsGetWithCompletionHandler: 
              ^(WatchListResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.watchListsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();

            try
            {
                // Request all user-deinfed watch lists
                WatchListResult result = apiInstance.watchListsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();

eval { 
    my $result = $api_instance->watchListsGet();
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListsGet: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()

try: 
    # Request all user-deinfed watch lists
    api_response = api_instance.watch_lists_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListsGet: %s\n" % e)

Parameters

Responses

Status: 200 - User defined watch lists

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListsRemovePost

Remove specified watch list


/watch/lists/remove

Usage and SDK Samples

curl -X POST\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/lists/remove"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        Body_1 body = ; // Body_1 | 
        try {
            body_1 result = apiInstance.watchListsRemovePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsRemovePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        Body_1 body = ; // Body_1 | 
        try {
            body_1 result = apiInstance.watchListsRemovePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsRemovePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
Body_1 *body = ; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Remove specified watch list
[apiInstance watchListsRemovePostWith:body
              completionHandler: ^(body_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var body = ; // {{Body_1}} 

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var body = new Body_1(); // Body_1 | 

            try
            {
                // Remove specified watch list
                body_1 result = apiInstance.watchListsRemovePost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListsRemovePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$body = ; // Body_1 | 

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

eval { 
    my $result = $api_instance->watchListsRemovePost(body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListsRemovePost: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
body =  # Body_1 | 

try: 
    # Remove specified watch list
    api_response = api_instance.watch_lists_remove_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListsRemovePost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Watch lists removed

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened


watchListsRenamePost

Rename specified watch list


/watch/lists/rename

Usage and SDK Samples

curl -X POST\
-H "ds-api-token: [[apiKey]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.dataspike.io/api/v2/sealed/watch/lists/rename"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WatchApi;

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

public class WatchApiExample {

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

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

        WatchApi apiInstance = new WatchApi();
        Body_2 body = ; // Body_2 | 
        try {
            body_1 result = apiInstance.watchListsRenamePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsRenamePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WatchApi;

public class WatchApiExample {

    public static void main(String[] args) {
        WatchApi apiInstance = new WatchApi();
        Body_2 body = ; // Body_2 | 
        try {
            body_1 result = apiInstance.watchListsRenamePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WatchApi#watchListsRenamePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ds-api-token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ds-api-token"];
Body_2 *body = ; // 

WatchApi *apiInstance = [[WatchApi alloc] init];

// Rename specified watch list
[apiInstance watchListsRenamePostWith:body
              completionHandler: ^(body_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DataspikeioApi = require('dataspikeio_api');
var defaultClient = DataspikeioApi.ApiClient.instance;

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

var api = new DataspikeioApi.WatchApi()
var body = ; // {{Body_2}} 

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

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

            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("ds-api-token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("ds-api-token", "Bearer");

            var apiInstance = new WatchApi();
            var body = new Body_2(); // Body_2 | 

            try
            {
                // Rename specified watch list
                body_1 result = apiInstance.watchListsRenamePost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WatchApi.watchListsRenamePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\ApiWatchApi();
$body = ; // Body_2 | 

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

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

my $api_instance = WWW::SwaggerClient::WatchApi->new();
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

eval { 
    my $result = $api_instance->watchListsRenamePost(body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling WatchApi->watchListsRenamePost: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

# create an instance of the API class
api_instance = swagger_client.WatchApi()
body =  # Body_2 | 

try: 
    # Rename specified watch list
    api_response = api_instance.watch_lists_rename_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WatchApi->watchListsRenamePost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Watch lists renamed

Status: 400 - Wrong request body

Status: 403 - Authentication or additional permissions required

Status: 500 - Something bad happened