DiscoverSnoop

Alerts

alertsChangeGet

Edit or insert new alert


/alerts_change

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/alerts_change?id=&alertname=&activated=&type=&channel=&recipient=¶m1=¶m2=¶m3=¶m4=¶m5=¶m6="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AlertsApi;

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

public class AlertsApiExample {

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


        AlertsApi apiInstance = new AlertsApi();
        String id = id_example; // String | ID of the alert to edit ; if adding a new one leave blank
        String alertname = alertname_example; // String | Name of the alert
        Boolean activated = true; // Boolean | Should the alert be activated or not
        Integer type = 56; // Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
        Integer channel = 56; // Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
        String recipient = recipient_example; // String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
        String param1 = param1_example; // String | Parameter 1 (meaning changes with alert type)
        String param2 = param2_example; // String | Parameter 2 (meaning changes with alert type)
        String param3 = param3_example; // String | Parameter 3 (meaning changes with alert type)
        String param4 = param4_example; // String | Parameter 4 (meaning changes with alert type)
        String param5 = param5_example; // String | Parameter 5 (meaning changes with alert type)
        String param6 = param6_example; // String | Parameter 6 (meaning changes with alert type)
        try {
            array[Domains] result = apiInstance.alertsChangeGet(id, alertname, activated, type, channel, recipient, param1, param2, param3, param4, param5, param6);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsChangeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AlertsApi;

public class AlertsApiExample {

    public static void main(String[] args) {
        AlertsApi apiInstance = new AlertsApi();
        String id = id_example; // String | ID of the alert to edit ; if adding a new one leave blank
        String alertname = alertname_example; // String | Name of the alert
        Boolean activated = true; // Boolean | Should the alert be activated or not
        Integer type = 56; // Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
        Integer channel = 56; // Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
        String recipient = recipient_example; // String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
        String param1 = param1_example; // String | Parameter 1 (meaning changes with alert type)
        String param2 = param2_example; // String | Parameter 2 (meaning changes with alert type)
        String param3 = param3_example; // String | Parameter 3 (meaning changes with alert type)
        String param4 = param4_example; // String | Parameter 4 (meaning changes with alert type)
        String param5 = param5_example; // String | Parameter 5 (meaning changes with alert type)
        String param6 = param6_example; // String | Parameter 6 (meaning changes with alert type)
        try {
            array[Domains] result = apiInstance.alertsChangeGet(id, alertname, activated, type, channel, recipient, param1, param2, param3, param4, param5, param6);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsChangeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // ID of the alert to edit ; if adding a new one leave blank
String *alertname = alertname_example; // Name of the alert
Boolean *activated = true; // Should the alert be activated or not
Integer *type = 56; // Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
Integer *channel = 56; // 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
String *recipient = recipient_example; // Email address of recipient or webhook for Slack/Gchat or JSON endpoint
String *param1 = param1_example; // Parameter 1 (meaning changes with alert type) (optional)
String *param2 = param2_example; // Parameter 2 (meaning changes with alert type) (optional)
String *param3 = param3_example; // Parameter 3 (meaning changes with alert type) (optional)
String *param4 = param4_example; // Parameter 4 (meaning changes with alert type) (optional)
String *param5 = param5_example; // Parameter 5 (meaning changes with alert type) (optional)
String *param6 = param6_example; // Parameter 6 (meaning changes with alert type) (optional)

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

// Edit or insert new alert
[apiInstance alertsChangeGetWith:id
    alertname:alertname
    activated:activated
    type:type
    channel:channel
    recipient:recipient
    param1:param1
    param2:param2
    param3:param3
    param4:param4
    param5:param5
    param6:param6
              completionHandler: ^(array[Domains] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.AlertsApi()
var id = id_example; // {{String}} ID of the alert to edit ; if adding a new one leave blank
var alertname = alertname_example; // {{String}} Name of the alert
var activated = true; // {{Boolean}} Should the alert be activated or not
var type = 56; // {{Integer}} Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
var channel = 56; // {{Integer}} 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
var recipient = recipient_example; // {{String}} Email address of recipient or webhook for Slack/Gchat or JSON endpoint
var opts = { 
  'param1': param1_example, // {{String}} Parameter 1 (meaning changes with alert type)
  'param2': param2_example, // {{String}} Parameter 2 (meaning changes with alert type)
  'param3': param3_example, // {{String}} Parameter 3 (meaning changes with alert type)
  'param4': param4_example, // {{String}} Parameter 4 (meaning changes with alert type)
  'param5': param5_example, // {{String}} Parameter 5 (meaning changes with alert type)
  'param6': param6_example // {{String}} Parameter 6 (meaning changes with alert type)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.alertsChangeGet(id, alertname, activated, type, channel, recipient, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new AlertsApi();
            var id = id_example;  // String | ID of the alert to edit ; if adding a new one leave blank
            var alertname = alertname_example;  // String | Name of the alert
            var activated = true;  // Boolean | Should the alert be activated or not
            var type = 56;  // Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
            var channel = 56;  // Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
            var recipient = recipient_example;  // String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
            var param1 = param1_example;  // String | Parameter 1 (meaning changes with alert type) (optional) 
            var param2 = param2_example;  // String | Parameter 2 (meaning changes with alert type) (optional) 
            var param3 = param3_example;  // String | Parameter 3 (meaning changes with alert type) (optional) 
            var param4 = param4_example;  // String | Parameter 4 (meaning changes with alert type) (optional) 
            var param5 = param5_example;  // String | Parameter 5 (meaning changes with alert type) (optional) 
            var param6 = param6_example;  // String | Parameter 6 (meaning changes with alert type) (optional) 

            try
            {
                // Edit or insert new alert
                array[Domains] result = apiInstance.alertsChangeGet(id, alertname, activated, type, channel, recipient, param1, param2, param3, param4, param5, param6);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertsApi.alertsChangeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiAlertsApi();
$id = id_example; // String | ID of the alert to edit ; if adding a new one leave blank
$alertname = alertname_example; // String | Name of the alert
$activated = true; // Boolean | Should the alert be activated or not
$type = 56; // Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
$channel = 56; // Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
$recipient = recipient_example; // String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
$param1 = param1_example; // String | Parameter 1 (meaning changes with alert type)
$param2 = param2_example; // String | Parameter 2 (meaning changes with alert type)
$param3 = param3_example; // String | Parameter 3 (meaning changes with alert type)
$param4 = param4_example; // String | Parameter 4 (meaning changes with alert type)
$param5 = param5_example; // String | Parameter 5 (meaning changes with alert type)
$param6 = param6_example; // String | Parameter 6 (meaning changes with alert type)

try {
    $result = $api_instance->alertsChangeGet($id, $alertname, $activated, $type, $channel, $recipient, $param1, $param2, $param3, $param4, $param5, $param6);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertsApi->alertsChangeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AlertsApi;


my $api_instance = WWW::SwaggerClient::AlertsApi->new();
my $id = id_example; # String | ID of the alert to edit ; if adding a new one leave blank
my $alertname = alertname_example; # String | Name of the alert
my $activated = true; # Boolean | Should the alert be activated or not
my $type = 56; # Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
my $channel = 56; # Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
my $recipient = recipient_example; # String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
my $param1 = param1_example; # String | Parameter 1 (meaning changes with alert type)
my $param2 = param2_example; # String | Parameter 2 (meaning changes with alert type)
my $param3 = param3_example; # String | Parameter 3 (meaning changes with alert type)
my $param4 = param4_example; # String | Parameter 4 (meaning changes with alert type)
my $param5 = param5_example; # String | Parameter 5 (meaning changes with alert type)
my $param6 = param6_example; # String | Parameter 6 (meaning changes with alert type)

eval { 
    my $result = $api_instance->alertsChangeGet(id => $id, alertname => $alertname, activated => $activated, type => $type, channel => $channel, recipient => $recipient, param1 => $param1, param2 => $param2, param3 => $param3, param4 => $param4, param5 => $param5, param6 => $param6);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertsApi->alertsChangeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.AlertsApi()
id = id_example # String | ID of the alert to edit ; if adding a new one leave blank
alertname = alertname_example # String | Name of the alert
activated = true # Boolean | Should the alert be activated or not
type = 56 # Integer | Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
channel = 56 # Integer | 1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
recipient = recipient_example # String | Email address of recipient or webhook for Slack/Gchat or JSON endpoint
param1 = param1_example # String | Parameter 1 (meaning changes with alert type) (optional)
param2 = param2_example # String | Parameter 2 (meaning changes with alert type) (optional)
param3 = param3_example # String | Parameter 3 (meaning changes with alert type) (optional)
param4 = param4_example # String | Parameter 4 (meaning changes with alert type) (optional)
param5 = param5_example # String | Parameter 5 (meaning changes with alert type) (optional)
param6 = param6_example # String | Parameter 6 (meaning changes with alert type) (optional)

try: 
    # Edit or insert new alert
    api_response = api_instance.alerts_change_get(id, alertname, activated, type, channel, recipient, param1=param1, param2=param2, param3=param3, param4=param4, param5=param5, param6=param6)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertsApi->alertsChangeGet: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
ID of the alert to edit ; if adding a new one leave blank
Required
alertname*
String
Name of the alert
Required
activated*
Boolean
Should the alert be activated or not
Required
type*
Integer
Alert type (1= New content for website, 2=New performing contents), 3=New contents in category
Required
channel*
Integer
1 for email, 2 for Slack, 3 for Google Chat, 4 for JSON
Required
recipient*
String
Email address of recipient or webhook for Slack/Gchat or JSON endpoint
Required
param1
String
Parameter 1 (meaning changes with alert type)
param2
String
Parameter 2 (meaning changes with alert type)
param3
String
Parameter 3 (meaning changes with alert type)
param4
String
Parameter 4 (meaning changes with alert type)
param5
String
Parameter 5 (meaning changes with alert type)
param6
String
Parameter 6 (meaning changes with alert type)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


alertsDeleteGet

Permanently delete the alert


/alerts_delete

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/alerts_delete?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AlertsApi;

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

public class AlertsApiExample {

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


        AlertsApi apiInstance = new AlertsApi();
        String id = id_example; // String | alert id to delete
        try {
            array[TransactionInfo] result = apiInstance.alertsDeleteGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsDeleteGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AlertsApi;

public class AlertsApiExample {

    public static void main(String[] args) {
        AlertsApi apiInstance = new AlertsApi();
        String id = id_example; // String | alert id to delete
        try {
            array[TransactionInfo] result = apiInstance.alertsDeleteGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsDeleteGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // alert id to delete

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

// Permanently delete the alert
[apiInstance alertsDeleteGetWith:id
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.AlertsApi()
var id = id_example; // {{String}} alert id to delete

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

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


            var apiInstance = new AlertsApi();
            var id = id_example;  // String | alert id to delete

            try
            {
                // Permanently delete the alert
                array[TransactionInfo] result = apiInstance.alertsDeleteGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertsApi.alertsDeleteGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiAlertsApi();
$id = id_example; // String | alert id to delete

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


my $api_instance = WWW::SwaggerClient::AlertsApi->new();
my $id = id_example; # String | alert id to delete

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


# create an instance of the API class
api_instance = swagger_client.AlertsApi()
id = id_example # String | alert id to delete

try: 
    # Permanently delete the alert
    api_response = api_instance.alerts_delete_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertsApi->alertsDeleteGet: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
alert id to delete
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


alertsGet

Get alerts for user account


/alerts

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/alerts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AlertsApi;

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

public class AlertsApiExample {

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


        AlertsApi apiInstance = new AlertsApi();
        try {
            array[Alerts] result = apiInstance.alertsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AlertsApi;

public class AlertsApiExample {

    public static void main(String[] args) {
        AlertsApi apiInstance = new AlertsApi();
        try {
            array[Alerts] result = apiInstance.alertsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertsApi#alertsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

// Get alerts for user account
[apiInstance alertsGetWithCompletionHandler: 
              ^(array[Alerts] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


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

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


            var apiInstance = new AlertsApi();

            try
            {
                // Get alerts for user account
                array[Alerts] result = apiInstance.alertsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertsApi.alertsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


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

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


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

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


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

try: 
    # Get alerts for user account
    api_response = api_instance.alerts_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertsApi->alertsGet: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


Favs

favsAddGet

Create a new fav


/favs_add

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/favs_add?name=&action=¶meters="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FavsApi;

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

public class FavsApiExample {

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


        FavsApi apiInstance = new FavsApi();
        String name = name_example; // String | Name of the fav.
        String action = action_example; // String | Action to be opened.
        String parameters = parameters_example; // String | Action's parameters encoded in JSON.
        try {
            array[TransactionInfo] result = apiInstance.favsAddGet(name, action, parameters);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsAddGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FavsApi;

public class FavsApiExample {

    public static void main(String[] args) {
        FavsApi apiInstance = new FavsApi();
        String name = name_example; // String | Name of the fav.
        String action = action_example; // String | Action to be opened.
        String parameters = parameters_example; // String | Action's parameters encoded in JSON.
        try {
            array[TransactionInfo] result = apiInstance.favsAddGet(name, action, parameters);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsAddGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *name = name_example; // Name of the fav. (optional)
String *action = action_example; // Action to be opened. (optional)
String *parameters = parameters_example; // Action's parameters encoded in JSON. (optional)

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

// Create a new fav
[apiInstance favsAddGetWith:name
    action:action
    parameters:parameters
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.FavsApi()
var opts = { 
  'name': name_example, // {{String}} Name of the fav.
  'action': action_example, // {{String}} Action to be opened.
  'parameters': parameters_example // {{String}} Action's parameters encoded in JSON.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.favsAddGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new FavsApi();
            var name = name_example;  // String | Name of the fav. (optional) 
            var action = action_example;  // String | Action to be opened. (optional) 
            var parameters = parameters_example;  // String | Action's parameters encoded in JSON. (optional) 

            try
            {
                // Create a new fav
                array[TransactionInfo] result = apiInstance.favsAddGet(name, action, parameters);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FavsApi.favsAddGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiFavsApi();
$name = name_example; // String | Name of the fav.
$action = action_example; // String | Action to be opened.
$parameters = parameters_example; // String | Action's parameters encoded in JSON.

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


my $api_instance = WWW::SwaggerClient::FavsApi->new();
my $name = name_example; # String | Name of the fav.
my $action = action_example; # String | Action to be opened.
my $parameters = parameters_example; # String | Action's parameters encoded in JSON.

eval { 
    my $result = $api_instance->favsAddGet(name => $name, action => $action, parameters => $parameters);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FavsApi->favsAddGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.FavsApi()
name = name_example # String | Name of the fav. (optional)
action = action_example # String | Action to be opened. (optional)
parameters = parameters_example # String | Action's parameters encoded in JSON. (optional)

try: 
    # Create a new fav
    api_response = api_instance.favs_add_get(name=name, action=action, parameters=parameters)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FavsApi->favsAddGet: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
Name of the fav.
action
String
Action to be opened.
parameters
String
Action's parameters encoded in JSON.

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


favsDeleteGet

Permanently delete the fav


/favs_delete

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/favs_delete?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FavsApi;

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

public class FavsApiExample {

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


        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the fav to delete.
        try {
            array[TransactionInfo] result = apiInstance.favsDeleteGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsDeleteGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FavsApi;

public class FavsApiExample {

    public static void main(String[] args) {
        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the fav to delete.
        try {
            array[TransactionInfo] result = apiInstance.favsDeleteGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsDeleteGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // ID of the fav to delete. (optional)

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

// Permanently delete the fav
[apiInstance favsDeleteGetWith:id
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.FavsApi()
var opts = { 
  'id': id_example // {{String}} ID of the fav to delete.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.favsDeleteGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new FavsApi();
            var id = id_example;  // String | ID of the fav to delete. (optional) 

            try
            {
                // Permanently delete the fav
                array[TransactionInfo] result = apiInstance.favsDeleteGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FavsApi.favsDeleteGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiFavsApi();
$id = id_example; // String | ID of the fav to delete.

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


my $api_instance = WWW::SwaggerClient::FavsApi->new();
my $id = id_example; # String | ID of the fav to delete.

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


# create an instance of the API class
api_instance = swagger_client.FavsApi()
id = id_example # String | ID of the fav to delete. (optional)

try: 
    # Permanently delete the fav
    api_response = api_instance.favs_delete_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FavsApi->favsDeleteGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
String
ID of the fav to delete.

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


favsGet

Get favorites


/favs

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/favs?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FavsApi;

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

public class FavsApiExample {

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


        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the requested fav. ignore or set to 0 to get the full favs list
        try {
            array[Favs] result = apiInstance.favsGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FavsApi;

public class FavsApiExample {

    public static void main(String[] args) {
        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the requested fav. ignore or set to 0 to get the full favs list
        try {
            array[Favs] result = apiInstance.favsGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // ID of the requested fav. ignore or set to 0 to get the full favs list (optional)

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

// Get favorites
[apiInstance favsGetWith:id
              completionHandler: ^(array[Favs] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.FavsApi()
var opts = { 
  'id': id_example // {{String}} ID of the requested fav. ignore or set to 0 to get the full favs list
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.favsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new FavsApi();
            var id = id_example;  // String | ID of the requested fav. ignore or set to 0 to get the full favs list (optional) 

            try
            {
                // Get favorites
                array[Favs] result = apiInstance.favsGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FavsApi.favsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiFavsApi();
$id = id_example; // String | ID of the requested fav. ignore or set to 0 to get the full favs list

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


my $api_instance = WWW::SwaggerClient::FavsApi->new();
my $id = id_example; # String | ID of the requested fav. ignore or set to 0 to get the full favs list

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


# create an instance of the API class
api_instance = swagger_client.FavsApi()
id = id_example # String | ID of the requested fav. ignore or set to 0 to get the full favs list (optional)

try: 
    # Get favorites
    api_response = api_instance.favs_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FavsApi->favsGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
String
ID of the requested fav. ignore or set to 0 to get the full favs list

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


favsUpdateGet

Update the fav


/favs_update

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/favs_update?id=&name=&action=¶meters=&scheduled=&scheduledto="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FavsApi;

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

public class FavsApiExample {

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


        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the fav that should be edited
        String name = name_example; // String | Name of the fav.
        String action = action_example; // String | Action to be opened.
        String parameters = parameters_example; // String | Action's parameters encoded in JSON.
        Integer scheduled = 56; // Integer | 0 if not scheduled, else x in hours
        String scheduledto = scheduledto_example; // String | email address of the recipient of this report
        try {
            array[TransactionInfo] result = apiInstance.favsUpdateGet(id, name, action, parameters, scheduled, scheduledto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsUpdateGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FavsApi;

public class FavsApiExample {

    public static void main(String[] args) {
        FavsApi apiInstance = new FavsApi();
        String id = id_example; // String | ID of the fav that should be edited
        String name = name_example; // String | Name of the fav.
        String action = action_example; // String | Action to be opened.
        String parameters = parameters_example; // String | Action's parameters encoded in JSON.
        Integer scheduled = 56; // Integer | 0 if not scheduled, else x in hours
        String scheduledto = scheduledto_example; // String | email address of the recipient of this report
        try {
            array[TransactionInfo] result = apiInstance.favsUpdateGet(id, name, action, parameters, scheduled, scheduledto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FavsApi#favsUpdateGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // ID of the fav that should be edited
String *name = name_example; // Name of the fav. (optional)
String *action = action_example; // Action to be opened. (optional)
String *parameters = parameters_example; // Action's parameters encoded in JSON. (optional)
Integer *scheduled = 56; // 0 if not scheduled, else x in hours (optional)
String *scheduledto = scheduledto_example; // email address of the recipient of this report (optional)

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

// Update the fav
[apiInstance favsUpdateGetWith:id
    name:name
    action:action
    parameters:parameters
    scheduled:scheduled
    scheduledto:scheduledto
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.FavsApi()
var id = id_example; // {{String}} ID of the fav that should be edited
var opts = { 
  'name': name_example, // {{String}} Name of the fav.
  'action': action_example, // {{String}} Action to be opened.
  'parameters': parameters_example, // {{String}} Action's parameters encoded in JSON.
  'scheduled': 56, // {{Integer}} 0 if not scheduled, else x in hours
  'scheduledto': scheduledto_example // {{String}} email address of the recipient of this report
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.favsUpdateGet(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new FavsApi();
            var id = id_example;  // String | ID of the fav that should be edited
            var name = name_example;  // String | Name of the fav. (optional) 
            var action = action_example;  // String | Action to be opened. (optional) 
            var parameters = parameters_example;  // String | Action's parameters encoded in JSON. (optional) 
            var scheduled = 56;  // Integer | 0 if not scheduled, else x in hours (optional) 
            var scheduledto = scheduledto_example;  // String | email address of the recipient of this report (optional) 

            try
            {
                // Update the fav
                array[TransactionInfo] result = apiInstance.favsUpdateGet(id, name, action, parameters, scheduled, scheduledto);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FavsApi.favsUpdateGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiFavsApi();
$id = id_example; // String | ID of the fav that should be edited
$name = name_example; // String | Name of the fav.
$action = action_example; // String | Action to be opened.
$parameters = parameters_example; // String | Action's parameters encoded in JSON.
$scheduled = 56; // Integer | 0 if not scheduled, else x in hours
$scheduledto = scheduledto_example; // String | email address of the recipient of this report

try {
    $result = $api_instance->favsUpdateGet($id, $name, $action, $parameters, $scheduled, $scheduledto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FavsApi->favsUpdateGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FavsApi;


my $api_instance = WWW::SwaggerClient::FavsApi->new();
my $id = id_example; # String | ID of the fav that should be edited
my $name = name_example; # String | Name of the fav.
my $action = action_example; # String | Action to be opened.
my $parameters = parameters_example; # String | Action's parameters encoded in JSON.
my $scheduled = 56; # Integer | 0 if not scheduled, else x in hours
my $scheduledto = scheduledto_example; # String | email address of the recipient of this report

eval { 
    my $result = $api_instance->favsUpdateGet(id => $id, name => $name, action => $action, parameters => $parameters, scheduled => $scheduled, scheduledto => $scheduledto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FavsApi->favsUpdateGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.FavsApi()
id = id_example # String | ID of the fav that should be edited
name = name_example # String | Name of the fav. (optional)
action = action_example # String | Action to be opened. (optional)
parameters = parameters_example # String | Action's parameters encoded in JSON. (optional)
scheduled = 56 # Integer | 0 if not scheduled, else x in hours (optional)
scheduledto = scheduledto_example # String | email address of the recipient of this report (optional)

try: 
    # Update the fav
    api_response = api_instance.favs_update_get(id, name=name, action=action, parameters=parameters, scheduled=scheduled, scheduledto=scheduledto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FavsApi->favsUpdateGet: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
ID of the fav that should be edited
Required
name
String
Name of the fav.
action
String
Action to be opened.
parameters
String
Action's parameters encoded in JSON.
scheduled
Integer
0 if not scheduled, else x in hours
scheduledto
String
email address of the recipient of this report

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


Historical

categoriesGet

Get historical stats for categories


/categories

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/categories?country=&subcountry=&from_date=&to_date=&keyword_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String keywordFilter = keywordFilter_example; // String | Filter answers to cateogry names containing a particular keyword
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Categories] result = apiInstance.categoriesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#categoriesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String keywordFilter = keywordFilter_example; // String | Filter answers to cateogry names containing a particular keyword
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Categories] result = apiInstance.categoriesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#categoriesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to cateogry names containing a particular keyword (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get historical stats for categories
[apiInstance categoriesGetWith:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
    keywordFilter:keywordFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Categories] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example, // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to cateogry names containing a particular keyword
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.categoriesGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to cateogry names containing a particular keyword (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get historical stats for categories
                array[Categories] result = apiInstance.categoriesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.categoriesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
$keywordFilter = keywordFilter_example; // String | Filter answers to cateogry names containing a particular keyword
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->categoriesGet($country, $subcountry, $fromDate, $toDate, $keywordFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->categoriesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $keywordFilter = keywordFilter_example; # String | Filter answers to cateogry names containing a particular keyword
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->categoriesGet(country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate, keywordFilter => $keywordFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->categoriesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
keywordFilter = keywordFilter_example # String | Filter answers to cateogry names containing a particular keyword (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get historical stats for categories
    api_response = api_instance.categories_get(country, subcountry=subcountry, fromDate=fromDate, toDate=toDate, keywordFilter=keywordFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->categoriesGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
keyword_filter
String
Filter answers to cateogry names containing a particular keyword
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


categoryGet

Get history for category ID


/category

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/category?id=&country=&subcountry=&from_date=&to_date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String id = id_example; // String | category id
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Category] result = apiInstance.categoryGet(id, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#categoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String id = id_example; // String | category id
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Category] result = apiInstance.categoryGet(id, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#categoryGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *id = id_example; // category id
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

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

// Get history for category ID
[apiInstance categoryGetWith:id
    country:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(array[Category] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var id = id_example; // {{String}} category id
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.categoryGet(id, country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var id = id_example;  // String | category id
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 

            try
            {
                // Get history for category ID
                array[Category] result = apiInstance.categoryGet(id, country, subcountry, fromDate, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.categoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$id = id_example; // String | category id
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

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


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $id = id_example; # String | category id
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

eval { 
    my $result = $api_instance->categoryGet(id => $id, country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->categoryGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
id = id_example # String | category id
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

try: 
    # Get history for category ID
    api_response = api_instance.category_get(id, country, subcountry=subcountry, fromDate=fromDate, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->categoryGet: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
category id
Required
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


domainGet

Get history for domain name


/domain

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/domain?domain=&country=&subcountry=&from_date=&to_date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String domain = domain_example; // String | domain name (no subdomain allowed)
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Domain] result = apiInstance.domainGet(domain, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#domainGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String domain = domain_example; // String | domain name (no subdomain allowed)
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Domain] result = apiInstance.domainGet(domain, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#domainGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *domain = domain_example; // domain name (no subdomain allowed)
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

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

// Get history for domain name
[apiInstance domainGetWith:domain
    country:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(array[Domain] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var domain = domain_example; // {{String}} domain name (no subdomain allowed)
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainGet(domain, country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var domain = domain_example;  // String | domain name (no subdomain allowed)
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 

            try
            {
                // Get history for domain name
                array[Domain] result = apiInstance.domainGet(domain, country, subcountry, fromDate, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.domainGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$domain = domain_example; // String | domain name (no subdomain allowed)
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

try {
    $result = $api_instance->domainGet($domain, $country, $subcountry, $fromDate, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->domainGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $domain = domain_example; # String | domain name (no subdomain allowed)
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

eval { 
    my $result = $api_instance->domainGet(domain => $domain, country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->domainGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
domain = domain_example # String | domain name (no subdomain allowed)
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

try: 
    # Get history for domain name
    api_response = api_instance.domain_get(domain, country, subcountry=subcountry, fromDate=fromDate, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->domainGet: %s\n" % e)

Parameters

Query parameters
Name Description
domain*
String
domain name (no subdomain allowed)
Required
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


domainsGet

Get historical stats for domains


/domains

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/domains?country=&subcountry=&from_date=&to_date=&url_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Domains] result = apiInstance.domainsGet(country, subcountry, fromDate, toDate, urlFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#domainsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Domains] result = apiInstance.domainsGet(country, subcountry, fromDate, toDate, urlFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#domainsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *urlFilter = urlFilter_example; // Filter answers to domains including a specified string (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get historical stats for domains
[apiInstance domainsGetWith:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
    urlFilter:urlFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Domains] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example, // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'urlFilter': urlFilter_example, // {{String}} Filter answers to domains including a specified string
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var urlFilter = urlFilter_example;  // String | Filter answers to domains including a specified string (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get historical stats for domains
                array[Domains] result = apiInstance.domainsGet(country, subcountry, fromDate, toDate, urlFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.domainsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
$urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->domainsGet($country, $subcountry, $fromDate, $toDate, $urlFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->domainsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $urlFilter = urlFilter_example; # String | Filter answers to domains including a specified string
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->domainsGet(country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate, urlFilter => $urlFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->domainsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
urlFilter = urlFilter_example # String | Filter answers to domains including a specified string (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get historical stats for domains
    api_response = api_instance.domains_get(country, subcountry=subcountry, fromDate=fromDate, toDate=toDate, urlFilter=urlFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->domainsGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
url_filter
String
Filter answers to domains including a specified string
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


entitiesGet

Get historical stats for entities


/entities

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/entities?country=&subcountry=&from_date=&to_date=&keyword_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
        Integer lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Entities] result = apiInstance.entitiesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#entitiesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
        Integer lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Entities] result = apiInstance.entitiesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#entitiesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to entity names containing a particular keyword (optional)
Integer *lines = 56; // Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get historical stats for entities
[apiInstance entitiesGetWith:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
    keywordFilter:keywordFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Entities] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example, // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to entity names containing a particular keyword
  'lines': 56, // {{Integer}} Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.entitiesGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to entity names containing a particular keyword (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get historical stats for entities
                array[Entities] result = apiInstance.entitiesGet(country, subcountry, fromDate, toDate, keywordFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.entitiesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
$keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
$lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->entitiesGet($country, $subcountry, $fromDate, $toDate, $keywordFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->entitiesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $keywordFilter = keywordFilter_example; # String | Filter answers to entity names containing a particular keyword
my $lines = 56; # Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->entitiesGet(country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate, keywordFilter => $keywordFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->entitiesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
keywordFilter = keywordFilter_example # String | Filter answers to entity names containing a particular keyword (optional)
lines = 56 # Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get historical stats for entities
    api_response = api_instance.entities_get(country, subcountry=subcountry, fromDate=fromDate, toDate=toDate, keywordFilter=keywordFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->entitiesGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
keyword_filter
String
Filter answers to entity names containing a particular keyword
lines
Integer
Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


entityGet

Get history for entity


/entity

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/entity?name=&country=&subcountry=&from_date=&to_date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String name = name_example; // String | entity exact name URL encoded
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Entity] result = apiInstance.entityGet(name, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#entityGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String name = name_example; // String | entity exact name URL encoded
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Entity] result = apiInstance.entityGet(name, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#entityGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *name = name_example; // entity exact name URL encoded
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

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

// Get history for entity
[apiInstance entityGetWith:name
    country:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(array[Entity] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var name = name_example; // {{String}} entity exact name URL encoded
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.entityGet(name, country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var name = name_example;  // String | entity exact name URL encoded
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 

            try
            {
                // Get history for entity
                array[Entity] result = apiInstance.entityGet(name, country, subcountry, fromDate, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.entityGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$name = name_example; // String | entity exact name URL encoded
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

try {
    $result = $api_instance->entityGet($name, $country, $subcountry, $fromDate, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->entityGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $name = name_example; # String | entity exact name URL encoded
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

eval { 
    my $result = $api_instance->entityGet(name => $name, country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->entityGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
name = name_example # String | entity exact name URL encoded
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

try: 
    # Get history for entity
    api_response = api_instance.entity_get(name, country, subcountry=subcountry, fromDate=fromDate, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->entityGet: %s\n" % e)

Parameters

Query parameters
Name Description
name*
String
entity exact name URL encoded
Required
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


pageGet

Get page history for URL


/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/page?url=&country=&subcountry=&from_date=&to_date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String url = url_example; // String | Fully qualified page url. URL needs to be URL encoded
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Page] result = apiInstance.pageGet(url, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#pageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String url = url_example; // String | Fully qualified page url. URL needs to be URL encoded
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
        try {
            array[Page] result = apiInstance.pageGet(url, country, subcountry, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#pageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *url = url_example; // Fully qualified page url. URL needs to be URL encoded
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

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

// Get page history for URL
[apiInstance pageGetWith:url
    country:country
    subcountry:subcountry
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(array[Page] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var url = url_example; // {{String}} Fully qualified page url. URL needs to be URL encoded
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
  'toDate': toDate_example // {{String}} Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pageGet(url, country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var url = url_example;  // String | Fully qualified page url. URL needs to be URL encoded
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional) 

            try
            {
                // Get page history for URL
                array[Page] result = apiInstance.pageGet(url, country, subcountry, fromDate, toDate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.pageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$url = url_example; // String | Fully qualified page url. URL needs to be URL encoded
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

try {
    $result = $api_instance->pageGet($url, $country, $subcountry, $fromDate, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->pageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $url = url_example; # String | Fully qualified page url. URL needs to be URL encoded
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

eval { 
    my $result = $api_instance->pageGet(url => $url, country => $country, subcountry => $subcountry, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->pageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
url = url_example # String | Fully qualified page url. URL needs to be URL encoded
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience) (optional)

try: 
    # Get page history for URL
    api_response = api_instance.page_get(url, country, subcountry=subcountry, fromDate=fromDate, toDate=toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->pageGet: %s\n" % e)

Parameters

Query parameters
Name Description
url*
String
Fully qualified page url. URL needs to be URL encoded
Required
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
from_date
String
Datas from YYYY-MM-DD (if not provided, datas will adjust to page audience)
to_date
String
Datas to YYYY-MM-DD (if not provided, datas will adjust to page audience)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


pagesGet

Get historical stats for pages


/pages

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/pages?from_date=&to_date=&country=&subcountry=&preset_filter=&domain_filter=&keyword_filter=&entity_filter=&url_filter=&category_filter=&language_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HistoricalApi;

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

public class HistoricalApiExample {

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


        HistoricalApi apiInstance = new HistoricalApi();
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, last 30 days)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, last 30 days)
        String country = country_example; // String | ISO_3166 country code in 2 letters (if not provided  worldwide)
        String subcountry = subcountry_example; // String | state code
        Integer presetFilter = 56; // Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        String keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
        String entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
        String urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
        Integer categoryFilter = 56; // Integer | Filter answers to a specific page category
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Pages] result = apiInstance.pagesGet(fromDate, toDate, country, subcountry, presetFilter, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#pagesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HistoricalApi;

public class HistoricalApiExample {

    public static void main(String[] args) {
        HistoricalApi apiInstance = new HistoricalApi();
        String fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, last 30 days)
        String toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, last 30 days)
        String country = country_example; // String | ISO_3166 country code in 2 letters (if not provided  worldwide)
        String subcountry = subcountry_example; // String | state code
        Integer presetFilter = 56; // Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        String keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
        String entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
        String urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
        Integer categoryFilter = 56; // Integer | Filter answers to a specific page category
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Pages] result = apiInstance.pagesGet(fromDate, toDate, country, subcountry, presetFilter, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HistoricalApi#pagesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *fromDate = fromDate_example; // Datas from YYYY-MM-DD (if not provided, last 30 days) (optional)
String *toDate = toDate_example; // Datas to YYYY-MM-DD (if not provided, last 30 days) (optional)
String *country = country_example; // ISO_3166 country code in 2 letters (if not provided  worldwide) (optional)
String *subcountry = subcountry_example; // state code (optional)
Integer *presetFilter = 56; // Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories (optional)
String *domainFilter = domainFilter_example; // Filter answers to pages of a designated domain name (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to pages titles containing a particular keyword (optional)
String *entityFilter = entityFilter_example; // Filter answers to pages with entities containing a particular keyword (optional)
String *urlFilter = urlFilter_example; // Filter answers to pages URL including a specified string (optional)
Integer *categoryFilter = 56; // Filter answers to a specific page category (optional)
String *languageFilter = languageFilter_example; // Filter answers to pages in specific user language (optional)
Integer *lines = 56; // Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get historical stats for pages
[apiInstance pagesGetWith:fromDate
    toDate:toDate
    country:country
    subcountry:subcountry
    presetFilter:presetFilter
    domainFilter:domainFilter
    keywordFilter:keywordFilter
    entityFilter:entityFilter
    urlFilter:urlFilter
    categoryFilter:categoryFilter
    languageFilter:languageFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Pages] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.HistoricalApi()
var opts = { 
  'fromDate': fromDate_example, // {{String}} Datas from YYYY-MM-DD (if not provided, last 30 days)
  'toDate': toDate_example, // {{String}} Datas to YYYY-MM-DD (if not provided, last 30 days)
  'country': country_example, // {{String}} ISO_3166 country code in 2 letters (if not provided  worldwide)
  'subcountry': subcountry_example, // {{String}} state code
  'presetFilter': 56, // {{Integer}} Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
  'domainFilter': domainFilter_example, // {{String}} Filter answers to pages of a designated domain name
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to pages titles containing a particular keyword
  'entityFilter': entityFilter_example, // {{String}} Filter answers to pages with entities containing a particular keyword
  'urlFilter': urlFilter_example, // {{String}} Filter answers to pages URL including a specified string
  'categoryFilter': 56, // {{Integer}} Filter answers to a specific page category
  'languageFilter': languageFilter_example, // {{String}} Filter answers to pages in specific user language
  'lines': 56, // {{Integer}} Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pagesGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new HistoricalApi();
            var fromDate = fromDate_example;  // String | Datas from YYYY-MM-DD (if not provided, last 30 days) (optional) 
            var toDate = toDate_example;  // String | Datas to YYYY-MM-DD (if not provided, last 30 days) (optional) 
            var country = country_example;  // String | ISO_3166 country code in 2 letters (if not provided  worldwide) (optional) 
            var subcountry = subcountry_example;  // String | state code (optional) 
            var presetFilter = 56;  // Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories (optional) 
            var domainFilter = domainFilter_example;  // String | Filter answers to pages of a designated domain name (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to pages titles containing a particular keyword (optional) 
            var entityFilter = entityFilter_example;  // String | Filter answers to pages with entities containing a particular keyword (optional) 
            var urlFilter = urlFilter_example;  // String | Filter answers to pages URL including a specified string (optional) 
            var categoryFilter = 56;  // Integer | Filter answers to a specific page category (optional) 
            var languageFilter = languageFilter_example;  // String | Filter answers to pages in specific user language (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get historical stats for pages
                array[Pages] result = apiInstance.pagesGet(fromDate, toDate, country, subcountry, presetFilter, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HistoricalApi.pagesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiHistoricalApi();
$fromDate = fromDate_example; // String | Datas from YYYY-MM-DD (if not provided, last 30 days)
$toDate = toDate_example; // String | Datas to YYYY-MM-DD (if not provided, last 30 days)
$country = country_example; // String | ISO_3166 country code in 2 letters (if not provided  worldwide)
$subcountry = subcountry_example; // String | state code
$presetFilter = 56; // Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
$domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
$keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
$entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
$urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
$categoryFilter = 56; // Integer | Filter answers to a specific page category
$languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
$lines = 56; // Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->pagesGet($fromDate, $toDate, $country, $subcountry, $presetFilter, $domainFilter, $keywordFilter, $entityFilter, $urlFilter, $categoryFilter, $languageFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HistoricalApi->pagesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HistoricalApi;


my $api_instance = WWW::SwaggerClient::HistoricalApi->new();
my $fromDate = fromDate_example; # String | Datas from YYYY-MM-DD (if not provided, last 30 days)
my $toDate = toDate_example; # String | Datas to YYYY-MM-DD (if not provided, last 30 days)
my $country = country_example; # String | ISO_3166 country code in 2 letters (if not provided  worldwide)
my $subcountry = subcountry_example; # String | state code
my $presetFilter = 56; # Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
my $domainFilter = domainFilter_example; # String | Filter answers to pages of a designated domain name
my $keywordFilter = keywordFilter_example; # String | Filter answers to pages titles containing a particular keyword
my $entityFilter = entityFilter_example; # String | Filter answers to pages with entities containing a particular keyword
my $urlFilter = urlFilter_example; # String | Filter answers to pages URL including a specified string
my $categoryFilter = 56; # Integer | Filter answers to a specific page category
my $languageFilter = languageFilter_example; # String | Filter answers to pages in specific user language
my $lines = 56; # Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->pagesGet(fromDate => $fromDate, toDate => $toDate, country => $country, subcountry => $subcountry, presetFilter => $presetFilter, domainFilter => $domainFilter, keywordFilter => $keywordFilter, entityFilter => $entityFilter, urlFilter => $urlFilter, categoryFilter => $categoryFilter, languageFilter => $languageFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HistoricalApi->pagesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.HistoricalApi()
fromDate = fromDate_example # String | Datas from YYYY-MM-DD (if not provided, last 30 days) (optional)
toDate = toDate_example # String | Datas to YYYY-MM-DD (if not provided, last 30 days) (optional)
country = country_example # String | ISO_3166 country code in 2 letters (if not provided  worldwide) (optional)
subcountry = subcountry_example # String | state code (optional)
presetFilter = 56 # Integer | Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories (optional)
domainFilter = domainFilter_example # String | Filter answers to pages of a designated domain name (optional)
keywordFilter = keywordFilter_example # String | Filter answers to pages titles containing a particular keyword (optional)
entityFilter = entityFilter_example # String | Filter answers to pages with entities containing a particular keyword (optional)
urlFilter = urlFilter_example # String | Filter answers to pages URL including a specified string (optional)
categoryFilter = 56 # Integer | Filter answers to a specific page category (optional)
languageFilter = languageFilter_example # String | Filter answers to pages in specific user language (optional)
lines = 56 # Integer | Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get historical stats for pages
    api_response = api_instance.pages_get(fromDate=fromDate, toDate=toDate, country=country, subcountry=subcountry, presetFilter=presetFilter, domainFilter=domainFilter, keywordFilter=keywordFilter, entityFilter=entityFilter, urlFilter=urlFilter, categoryFilter=categoryFilter, languageFilter=languageFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HistoricalApi->pagesGet: %s\n" % e)

Parameters

Query parameters
Name Description
from_date
String
Datas from YYYY-MM-DD (if not provided, last 30 days)
to_date
String
Datas to YYYY-MM-DD (if not provided, last 30 days)
country
String
ISO_3166 country code in 2 letters (if not provided worldwide)
subcountry
String
state code
preset_filter
Integer
Apply preset filters => 0 no filter 1 no headlines 2 only headlines 3 to 6 deprecated 7 no articles 8 only articles 9 no shorts 10 only shorts 11 no showcase 12 only showcase 13 no video 14 only video 15 no webstory 16 only webstories
domain_filter
String
Filter answers to pages of a designated domain name
keyword_filter
String
Filter answers to pages titles containing a particular keyword
entity_filter
String
Filter answers to pages with entities containing a particular keyword
url_filter
String
Filter answers to pages URL including a specified string
category_filter
Integer
Filter answers to a specific page category
language_filter
String
Filter answers to pages in specific user language
lines
Integer
Get X results (max in one request is 50000 a request with more than 50000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


Info

categoriesListGet

Get list of categories used in the product


/categories_list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/categories_list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

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

public class InfoApiExample {

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


        InfoApi apiInstance = new InfoApi();
        try {
            array[CategoriesList] result = apiInstance.categoriesListGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#categoriesListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            array[CategoriesList] result = apiInstance.categoriesListGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#categoriesListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

// Get list of categories used in the product
[apiInstance categoriesListGetWithCompletionHandler: 
              ^(array[CategoriesList] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


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

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


            var apiInstance = new InfoApi();

            try
            {
                // Get list of categories used in the product
                array[CategoriesList] result = apiInstance.categoriesListGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.categoriesListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


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

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


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

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


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

try: 
    # Get list of categories used in the product
    api_response = api_instance.categories_list_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->categoriesListGet: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation

Status: 403 - Invalid username/token supplied


countriesListGet

Get list of countries available in the product


/countries_list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/countries_list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

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

public class InfoApiExample {

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


        InfoApi apiInstance = new InfoApi();
        try {
            array[CountriesList] result = apiInstance.countriesListGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#countriesListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            array[CountriesList] result = apiInstance.countriesListGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#countriesListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

// Get list of countries available in the product
[apiInstance countriesListGetWithCompletionHandler: 
              ^(array[CountriesList] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


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

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


            var apiInstance = new InfoApi();

            try
            {
                // Get list of countries available in the product
                array[CountriesList] result = apiInstance.countriesListGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.countriesListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


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

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


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

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


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

try: 
    # Get list of countries available in the product
    api_response = api_instance.countries_list_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->countriesListGet: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation

Status: 403 - Invalid username/token supplied


Kb

kbArticlesGet

Get knowledge base articles


/kb_articles

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/kb_articles?article="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.KbApi;

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

public class KbApiExample {

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


        KbApi apiInstance = new KbApi();
        Integer article = 56; // Integer | ID of the requested article. 0 to get the full article list
        try {
            array[KB] result = apiInstance.kbArticlesGet(article);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KbApi#kbArticlesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.KbApi;

public class KbApiExample {

    public static void main(String[] args) {
        KbApi apiInstance = new KbApi();
        Integer article = 56; // Integer | ID of the requested article. 0 to get the full article list
        try {
            array[KB] result = apiInstance.kbArticlesGet(article);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KbApi#kbArticlesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *article = 56; // ID of the requested article. 0 to get the full article list (optional)

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

// Get knowledge base articles
[apiInstance kbArticlesGetWith:article
              completionHandler: ^(array[KB] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.KbApi()
var opts = { 
  'article': 56 // {{Integer}} ID of the requested article. 0 to get the full article list
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kbArticlesGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new KbApi();
            var article = 56;  // Integer | ID of the requested article. 0 to get the full article list (optional) 

            try
            {
                // Get knowledge base articles
                array[KB] result = apiInstance.kbArticlesGet(article);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling KbApi.kbArticlesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiKbApi();
$article = 56; // Integer | ID of the requested article. 0 to get the full article list

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


my $api_instance = WWW::SwaggerClient::KbApi->new();
my $article = 56; # Integer | ID of the requested article. 0 to get the full article list

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


# create an instance of the API class
api_instance = swagger_client.KbApi()
article = 56 # Integer | ID of the requested article. 0 to get the full article list (optional)

try: 
    # Get knowledge base articles
    api_response = api_instance.kb_articles_get(article=article)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KbApi->kbArticlesGet: %s\n" % e)

Parameters

Query parameters
Name Description
article
Integer
ID of the requested article. 0 to get the full article list

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


Live

livecategoriesGet

Get livedata stats for categories


/livecategories

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/livecategories?country=&subcountry=&hours=&keyword_filter=&language_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveApi;

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

public class LiveApiExample {

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


        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        String keywordFilter = keywordFilter_example; // String | Filter answers to category names containing a particular keyword
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Categories] result = apiInstance.livecategoriesGet(country, subcountry, hours, keywordFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livecategoriesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveApi;

public class LiveApiExample {

    public static void main(String[] args) {
        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        String keywordFilter = keywordFilter_example; // String | Filter answers to category names containing a particular keyword
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Categories] result = apiInstance.livecategoriesGet(country, subcountry, hours, keywordFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livecategoriesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
Integer *hours = 56; // Get results for last x hours (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to category names containing a particular keyword (optional)
String *languageFilter = languageFilter_example; // Filter answers to pages in specific user language (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get livedata stats for categories
[apiInstance livecategoriesGetWith:country
    subcountry:subcountry
    hours:hours
    keywordFilter:keywordFilter
    languageFilter:languageFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Categories] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.LiveApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'hours': 56, // {{Integer}} Get results for last x hours
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to category names containing a particular keyword
  'languageFilter': languageFilter_example, // {{String}} Filter answers to pages in specific user language
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.livecategoriesGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LiveApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var hours = 56;  // Integer | Get results for last x hours (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to category names containing a particular keyword (optional) 
            var languageFilter = languageFilter_example;  // String | Filter answers to pages in specific user language (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get livedata stats for categories
                array[Categories] result = apiInstance.livecategoriesGet(country, subcountry, hours, keywordFilter, languageFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveApi.livecategoriesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLiveApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$hours = 56; // Integer | Get results for last x hours
$keywordFilter = keywordFilter_example; // String | Filter answers to category names containing a particular keyword
$languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->livecategoriesGet($country, $subcountry, $hours, $keywordFilter, $languageFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveApi->livecategoriesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveApi;


my $api_instance = WWW::SwaggerClient::LiveApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $hours = 56; # Integer | Get results for last x hours
my $keywordFilter = keywordFilter_example; # String | Filter answers to category names containing a particular keyword
my $languageFilter = languageFilter_example; # String | Filter answers to pages in specific user language
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->livecategoriesGet(country => $country, subcountry => $subcountry, hours => $hours, keywordFilter => $keywordFilter, languageFilter => $languageFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveApi->livecategoriesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LiveApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
hours = 56 # Integer | Get results for last x hours (optional)
keywordFilter = keywordFilter_example # String | Filter answers to category names containing a particular keyword (optional)
languageFilter = languageFilter_example # String | Filter answers to pages in specific user language (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get livedata stats for categories
    api_response = api_instance.livecategories_get(country, subcountry=subcountry, hours=hours, keywordFilter=keywordFilter, languageFilter=languageFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveApi->livecategoriesGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
hours
Integer
Get results for last x hours
keyword_filter
String
Filter answers to category names containing a particular keyword
language_filter
String
Filter answers to pages in specific user language
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


livedomainsGet

Get livedata stats for domains


/livedomains

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/livedomains?country=&subcountry=&url_filter=&hours=&lines=&language_filter=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveApi;

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

public class LiveApiExample {

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


        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
        Integer hours = 56; // Integer | Get results for last x hours
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Domains] result = apiInstance.livedomainsGet(country, subcountry, urlFilter, hours, lines, languageFilter, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livedomainsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveApi;

public class LiveApiExample {

    public static void main(String[] args) {
        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        String urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
        Integer hours = 56; // Integer | Get results for last x hours
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Domains] result = apiInstance.livedomainsGet(country, subcountry, urlFilter, hours, lines, languageFilter, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livedomainsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
String *urlFilter = urlFilter_example; // Filter answers to domains including a specified string (optional)
Integer *hours = 56; // Get results for last x hours (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
String *languageFilter = languageFilter_example; // Filter answers to pages in specific user language (optional)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get livedata stats for domains
[apiInstance livedomainsGetWith:country
    subcountry:subcountry
    urlFilter:urlFilter
    hours:hours
    lines:lines
    languageFilter:languageFilter
    offset:offset
              completionHandler: ^(array[Domains] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.LiveApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'urlFilter': urlFilter_example, // {{String}} Filter answers to domains including a specified string
  'hours': 56, // {{Integer}} Get results for last x hours
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
  'languageFilter': languageFilter_example, // {{String}} Filter answers to pages in specific user language
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.livedomainsGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LiveApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var urlFilter = urlFilter_example;  // String | Filter answers to domains including a specified string (optional) 
            var hours = 56;  // Integer | Get results for last x hours (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var languageFilter = languageFilter_example;  // String | Filter answers to pages in specific user language (optional) 
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get livedata stats for domains
                array[Domains] result = apiInstance.livedomainsGet(country, subcountry, urlFilter, hours, lines, languageFilter, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveApi.livedomainsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLiveApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$urlFilter = urlFilter_example; // String | Filter answers to domains including a specified string
$hours = 56; // Integer | Get results for last x hours
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
$languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->livedomainsGet($country, $subcountry, $urlFilter, $hours, $lines, $languageFilter, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveApi->livedomainsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveApi;


my $api_instance = WWW::SwaggerClient::LiveApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $urlFilter = urlFilter_example; # String | Filter answers to domains including a specified string
my $hours = 56; # Integer | Get results for last x hours
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
my $languageFilter = languageFilter_example; # String | Filter answers to pages in specific user language
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->livedomainsGet(country => $country, subcountry => $subcountry, urlFilter => $urlFilter, hours => $hours, lines => $lines, languageFilter => $languageFilter, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveApi->livedomainsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LiveApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
urlFilter = urlFilter_example # String | Filter answers to domains including a specified string (optional)
hours = 56 # Integer | Get results for last x hours (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
languageFilter = languageFilter_example # String | Filter answers to pages in specific user language (optional)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get livedata stats for domains
    api_response = api_instance.livedomains_get(country, subcountry=subcountry, urlFilter=urlFilter, hours=hours, lines=lines, languageFilter=languageFilter, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveApi->livedomainsGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
url_filter
String
Filter answers to domains including a specified string
hours
Integer
Get results for last x hours
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
language_filter
String
Filter answers to pages in specific user language
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


liveentitiesGet

Get livedata stats for entities


/liveentities

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/liveentities?country=&subcountry=&hours=&keyword_filter=&category_filter=&language_filter=&domain_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveApi;

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

public class LiveApiExample {

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


        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        String keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
        Integer categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Entities] result = apiInstance.liveentitiesGet(country, subcountry, hours, keywordFilter, categoryFilter, languageFilter, domainFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#liveentitiesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveApi;

public class LiveApiExample {

    public static void main(String[] args) {
        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        String keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
        Integer categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Entities] result = apiInstance.liveentitiesGet(country, subcountry, hours, keywordFilter, categoryFilter, languageFilter, domainFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#liveentitiesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
Integer *hours = 56; // Get results for last x hours (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to entity names containing a particular keyword (optional)
Integer *categoryFilter = 56; // Filter answers to pages of a designated category id (optional)
String *languageFilter = languageFilter_example; // Filter answers to pages in specific user language (optional)
String *domainFilter = domainFilter_example; // Filter answers to pages of a designated domain name (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get livedata stats for entities
[apiInstance liveentitiesGetWith:country
    subcountry:subcountry
    hours:hours
    keywordFilter:keywordFilter
    categoryFilter:categoryFilter
    languageFilter:languageFilter
    domainFilter:domainFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Entities] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.LiveApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'hours': 56, // {{Integer}} Get results for last x hours
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to entity names containing a particular keyword
  'categoryFilter': 56, // {{Integer}} Filter answers to pages of a designated category id
  'languageFilter': languageFilter_example, // {{String}} Filter answers to pages in specific user language
  'domainFilter': domainFilter_example, // {{String}} Filter answers to pages of a designated domain name
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.liveentitiesGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LiveApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var hours = 56;  // Integer | Get results for last x hours (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to entity names containing a particular keyword (optional) 
            var categoryFilter = 56;  // Integer | Filter answers to pages of a designated category id (optional) 
            var languageFilter = languageFilter_example;  // String | Filter answers to pages in specific user language (optional) 
            var domainFilter = domainFilter_example;  // String | Filter answers to pages of a designated domain name (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get livedata stats for entities
                array[Entities] result = apiInstance.liveentitiesGet(country, subcountry, hours, keywordFilter, categoryFilter, languageFilter, domainFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveApi.liveentitiesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLiveApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$hours = 56; // Integer | Get results for last x hours
$keywordFilter = keywordFilter_example; // String | Filter answers to entity names containing a particular keyword
$categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
$languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
$domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->liveentitiesGet($country, $subcountry, $hours, $keywordFilter, $categoryFilter, $languageFilter, $domainFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveApi->liveentitiesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveApi;


my $api_instance = WWW::SwaggerClient::LiveApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $hours = 56; # Integer | Get results for last x hours
my $keywordFilter = keywordFilter_example; # String | Filter answers to entity names containing a particular keyword
my $categoryFilter = 56; # Integer | Filter answers to pages of a designated category id
my $languageFilter = languageFilter_example; # String | Filter answers to pages in specific user language
my $domainFilter = domainFilter_example; # String | Filter answers to pages of a designated domain name
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->liveentitiesGet(country => $country, subcountry => $subcountry, hours => $hours, keywordFilter => $keywordFilter, categoryFilter => $categoryFilter, languageFilter => $languageFilter, domainFilter => $domainFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveApi->liveentitiesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LiveApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
hours = 56 # Integer | Get results for last x hours (optional)
keywordFilter = keywordFilter_example # String | Filter answers to entity names containing a particular keyword (optional)
categoryFilter = 56 # Integer | Filter answers to pages of a designated category id (optional)
languageFilter = languageFilter_example # String | Filter answers to pages in specific user language (optional)
domainFilter = domainFilter_example # String | Filter answers to pages of a designated domain name (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get livedata stats for entities
    api_response = api_instance.liveentities_get(country, subcountry=subcountry, hours=hours, keywordFilter=keywordFilter, categoryFilter=categoryFilter, languageFilter=languageFilter, domainFilter=domainFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveApi->liveentitiesGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
hours
Integer
Get results for last x hours
keyword_filter
String
Filter answers to entity names containing a particular keyword
category_filter
Integer
Filter answers to pages of a designated category id
language_filter
String
Filter answers to pages in specific user language
domain_filter
String
Filter answers to pages of a designated domain name
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 10000 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


livepagesGet

Get livedata stats for pages


/livepages

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/livepages?country=&subcountry=&hours=&preset_filter=&only_new=&domain_filter=&keyword_filter=&entity_filter=&url_filter=&category_filter=&language_filter=&lines=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LiveApi;

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

public class LiveApiExample {

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


        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        Integer presetFilter = 56; // Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
        Integer onlyNew = 56; // Integer | Get only pages first seen in the reporting period if set on 1
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        String keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
        String entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
        String urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
        Integer categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Pages] result = apiInstance.livepagesGet(country, subcountry, hours, presetFilter, onlyNew, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livepagesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LiveApi;

public class LiveApiExample {

    public static void main(String[] args) {
        LiveApi apiInstance = new LiveApi();
        String country = country_example; // String | ISO_3166 country code in 2 letters
        String subcountry = subcountry_example; // String | state code
        Integer hours = 56; // Integer | Get results for last x hours
        Integer presetFilter = 56; // Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
        Integer onlyNew = 56; // Integer | Get only pages first seen in the reporting period if set on 1
        String domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
        String keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
        String entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
        String urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
        Integer categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
        String languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
        Integer lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
        Integer offset = 56; // Integer | Get paginated results from X offset
        try {
            array[Pages] result = apiInstance.livepagesGet(country, subcountry, hours, presetFilter, onlyNew, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LiveApi#livepagesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *country = country_example; // ISO_3166 country code in 2 letters
String *subcountry = subcountry_example; // state code (optional)
Integer *hours = 56; // Get results for last x hours (optional)
Integer *presetFilter = 56; // Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories (optional)
Integer *onlyNew = 56; // Get only pages first seen in the reporting period if set on 1 (optional) (default to 0)
String *domainFilter = domainFilter_example; // Filter answers to pages of a designated domain name (optional)
String *keywordFilter = keywordFilter_example; // Filter answers to pages titles containing a particular keyword (optional)
String *entityFilter = entityFilter_example; // Filter answers to pages with entities containing a particular keyword (optional)
String *urlFilter = urlFilter_example; // Filter answers to pages URL including a specified string (optional)
Integer *categoryFilter = 56; // Filter answers to pages of a designated category id (optional)
String *languageFilter = languageFilter_example; // Filter answers to pages in specific user language (optional)
Integer *lines = 56; // Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more) (optional) (default to 50)
Integer *offset = 56; // Get paginated results from X offset (optional) (default to 0)

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

// Get livedata stats for pages
[apiInstance livepagesGetWith:country
    subcountry:subcountry
    hours:hours
    presetFilter:presetFilter
    onlyNew:onlyNew
    domainFilter:domainFilter
    keywordFilter:keywordFilter
    entityFilter:entityFilter
    urlFilter:urlFilter
    categoryFilter:categoryFilter
    languageFilter:languageFilter
    lines:lines
    offset:offset
              completionHandler: ^(array[Pages] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.LiveApi()
var country = country_example; // {{String}} ISO_3166 country code in 2 letters
var opts = { 
  'subcountry': subcountry_example, // {{String}} state code
  'hours': 56, // {{Integer}} Get results for last x hours
  'presetFilter': 56, // {{Integer}} Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
  'onlyNew': 56, // {{Integer}} Get only pages first seen in the reporting period if set on 1
  'domainFilter': domainFilter_example, // {{String}} Filter answers to pages of a designated domain name
  'keywordFilter': keywordFilter_example, // {{String}} Filter answers to pages titles containing a particular keyword
  'entityFilter': entityFilter_example, // {{String}} Filter answers to pages with entities containing a particular keyword
  'urlFilter': urlFilter_example, // {{String}} Filter answers to pages URL including a specified string
  'categoryFilter': 56, // {{Integer}} Filter answers to pages of a designated category id
  'languageFilter': languageFilter_example, // {{String}} Filter answers to pages in specific user language
  'lines': 56, // {{Integer}} Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
  'offset': 56 // {{Integer}} Get paginated results from X offset
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.livepagesGet(country, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LiveApi();
            var country = country_example;  // String | ISO_3166 country code in 2 letters
            var subcountry = subcountry_example;  // String | state code (optional) 
            var hours = 56;  // Integer | Get results for last x hours (optional) 
            var presetFilter = 56;  // Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories (optional) 
            var onlyNew = 56;  // Integer | Get only pages first seen in the reporting period if set on 1 (optional)  (default to 0)
            var domainFilter = domainFilter_example;  // String | Filter answers to pages of a designated domain name (optional) 
            var keywordFilter = keywordFilter_example;  // String | Filter answers to pages titles containing a particular keyword (optional) 
            var entityFilter = entityFilter_example;  // String | Filter answers to pages with entities containing a particular keyword (optional) 
            var urlFilter = urlFilter_example;  // String | Filter answers to pages URL including a specified string (optional) 
            var categoryFilter = 56;  // Integer | Filter answers to pages of a designated category id (optional) 
            var languageFilter = languageFilter_example;  // String | Filter answers to pages in specific user language (optional) 
            var lines = 56;  // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more) (optional)  (default to 50)
            var offset = 56;  // Integer | Get paginated results from X offset (optional)  (default to 0)

            try
            {
                // Get livedata stats for pages
                array[Pages] result = apiInstance.livepagesGet(country, subcountry, hours, presetFilter, onlyNew, domainFilter, keywordFilter, entityFilter, urlFilter, categoryFilter, languageFilter, lines, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LiveApi.livepagesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLiveApi();
$country = country_example; // String | ISO_3166 country code in 2 letters
$subcountry = subcountry_example; // String | state code
$hours = 56; // Integer | Get results for last x hours
$presetFilter = 56; // Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
$onlyNew = 56; // Integer | Get only pages first seen in the reporting period if set on 1
$domainFilter = domainFilter_example; // String | Filter answers to pages of a designated domain name
$keywordFilter = keywordFilter_example; // String | Filter answers to pages titles containing a particular keyword
$entityFilter = entityFilter_example; // String | Filter answers to pages with entities containing a particular keyword
$urlFilter = urlFilter_example; // String | Filter answers to pages URL including a specified string
$categoryFilter = 56; // Integer | Filter answers to pages of a designated category id
$languageFilter = languageFilter_example; // String | Filter answers to pages in specific user language
$lines = 56; // Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
$offset = 56; // Integer | Get paginated results from X offset

try {
    $result = $api_instance->livepagesGet($country, $subcountry, $hours, $presetFilter, $onlyNew, $domainFilter, $keywordFilter, $entityFilter, $urlFilter, $categoryFilter, $languageFilter, $lines, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LiveApi->livepagesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LiveApi;


my $api_instance = WWW::SwaggerClient::LiveApi->new();
my $country = country_example; # String | ISO_3166 country code in 2 letters
my $subcountry = subcountry_example; # String | state code
my $hours = 56; # Integer | Get results for last x hours
my $presetFilter = 56; # Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
my $onlyNew = 56; # Integer | Get only pages first seen in the reporting period if set on 1
my $domainFilter = domainFilter_example; # String | Filter answers to pages of a designated domain name
my $keywordFilter = keywordFilter_example; # String | Filter answers to pages titles containing a particular keyword
my $entityFilter = entityFilter_example; # String | Filter answers to pages with entities containing a particular keyword
my $urlFilter = urlFilter_example; # String | Filter answers to pages URL including a specified string
my $categoryFilter = 56; # Integer | Filter answers to pages of a designated category id
my $languageFilter = languageFilter_example; # String | Filter answers to pages in specific user language
my $lines = 56; # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
my $offset = 56; # Integer | Get paginated results from X offset

eval { 
    my $result = $api_instance->livepagesGet(country => $country, subcountry => $subcountry, hours => $hours, presetFilter => $presetFilter, onlyNew => $onlyNew, domainFilter => $domainFilter, keywordFilter => $keywordFilter, entityFilter => $entityFilter, urlFilter => $urlFilter, categoryFilter => $categoryFilter, languageFilter => $languageFilter, lines => $lines, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LiveApi->livepagesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LiveApi()
country = country_example # String | ISO_3166 country code in 2 letters
subcountry = subcountry_example # String | state code (optional)
hours = 56 # Integer | Get results for last x hours (optional)
presetFilter = 56 # Integer | Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories (optional)
onlyNew = 56 # Integer | Get only pages first seen in the reporting period if set on 1 (optional) (default to 0)
domainFilter = domainFilter_example # String | Filter answers to pages of a designated domain name (optional)
keywordFilter = keywordFilter_example # String | Filter answers to pages titles containing a particular keyword (optional)
entityFilter = entityFilter_example # String | Filter answers to pages with entities containing a particular keyword (optional)
urlFilter = urlFilter_example # String | Filter answers to pages URL including a specified string (optional)
categoryFilter = 56 # Integer | Filter answers to pages of a designated category id (optional)
languageFilter = languageFilter_example # String | Filter answers to pages in specific user language (optional)
lines = 56 # Integer | Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more) (optional) (default to 50)
offset = 56 # Integer | Get paginated results from X offset (optional) (default to 0)

try: 
    # Get livedata stats for pages
    api_response = api_instance.livepages_get(country, subcountry=subcountry, hours=hours, presetFilter=presetFilter, onlyNew=onlyNew, domainFilter=domainFilter, keywordFilter=keywordFilter, entityFilter=entityFilter, urlFilter=urlFilter, categoryFilter=categoryFilter, languageFilter=languageFilter, lines=lines, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LiveApi->livepagesGet: %s\n" % e)

Parameters

Query parameters
Name Description
country*
String
ISO_3166 country code in 2 letters
Required
subcountry
String
state code
hours
Integer
Get results for last x hours
preset_filter
Integer
Apply preset filters => 0 no filter, 1 no headlines, 2 only headlines, 3 to 6 deprecated, 7 no articles, 8 only articles, 9 no shorts, 10 only shorts, 11 no showcase, 12 only showcase, 13 no video, 14 only video, 15 no webstory, 16 only webstories
only_new
Integer
Get only pages first seen in the reporting period if set on 1
domain_filter
String
Filter answers to pages of a designated domain name
keyword_filter
String
Filter answers to pages titles containing a particular keyword
entity_filter
String
Filter answers to pages with entities containing a particular keyword
url_filter
String
Filter answers to pages URL including a specified string
category_filter
Integer
Filter answers to pages of a designated category id
language_filter
String
Filter answers to pages in specific user language
lines
Integer
Get X results (max in one request is 10000 a request with more than 10000 will be downgraded to 20 please use offset paginated results if you need more)
offset
Integer
Get paginated results from X offset

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


User

userCountriesChangeGet

Change user's activated countries


/user_countries_change

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_countries_change?countries=&categories="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String countries = countries_example; // String | json encoded string representing countries to activate
        String categories = categories_example; // String | json encoded string representing categories ID to activate
        try {
            array[TransactionInfo] result = apiInstance.userCountriesChangeGet(countries, categories);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userCountriesChangeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String countries = countries_example; // String | json encoded string representing countries to activate
        String categories = categories_example; // String | json encoded string representing categories ID to activate
        try {
            array[TransactionInfo] result = apiInstance.userCountriesChangeGet(countries, categories);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userCountriesChangeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *countries = countries_example; // json encoded string representing countries to activate
String *categories = categories_example; // json encoded string representing categories ID to activate

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

// Change user's activated countries
[apiInstance userCountriesChangeGetWith:countries
    categories:categories
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var countries = countries_example; // {{String}} json encoded string representing countries to activate
var categories = categories_example; // {{String}} json encoded string representing categories ID to activate

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

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


            var apiInstance = new UserApi();
            var countries = countries_example;  // String | json encoded string representing countries to activate
            var categories = categories_example;  // String | json encoded string representing categories ID to activate

            try
            {
                // Change user's activated countries
                array[TransactionInfo] result = apiInstance.userCountriesChangeGet(countries, categories);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userCountriesChangeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$countries = countries_example; // String | json encoded string representing countries to activate
$categories = categories_example; // String | json encoded string representing categories ID to activate

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $countries = countries_example; # String | json encoded string representing countries to activate
my $categories = categories_example; # String | json encoded string representing categories ID to activate

eval { 
    my $result = $api_instance->userCountriesChangeGet(countries => $countries, categories => $categories);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->userCountriesChangeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.UserApi()
countries = countries_example # String | json encoded string representing countries to activate
categories = categories_example # String | json encoded string representing categories ID to activate

try: 
    # Change user's activated countries
    api_response = api_instance.user_countries_change_get(countries, categories)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userCountriesChangeGet: %s\n" % e)

Parameters

Query parameters
Name Description
countries*
String
json encoded string representing countries to activate
Required
categories*
String
json encoded string representing categories ID to activate
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid coutries supplied


userCustidChangeGet

Change user customer id. This function is system reserved


/user_custid_change

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_custid_change?custid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String custid = custid_example; // String | new customer id for user
        try {
            array[TransactionInfo] result = apiInstance.userCustidChangeGet(custid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userCustidChangeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String custid = custid_example; // String | new customer id for user
        try {
            array[TransactionInfo] result = apiInstance.userCustidChangeGet(custid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userCustidChangeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *custid = custid_example; // new customer id for user

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

// Change user customer id. This function is system reserved
[apiInstance userCustidChangeGetWith:custid
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var custid = custid_example; // {{String}} new customer id for user

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

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


            var apiInstance = new UserApi();
            var custid = custid_example;  // String | new customer id for user

            try
            {
                // Change user customer id. This function is system reserved
                array[TransactionInfo] result = apiInstance.userCustidChangeGet(custid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userCustidChangeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$custid = custid_example; // String | new customer id for user

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $custid = custid_example; # String | new customer id for user

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
custid = custid_example # String | new customer id for user

try: 
    # Change user customer id. This function is system reserved
    api_response = api_instance.user_custid_change_get(custid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userCustidChangeGet: %s\n" % e)

Parameters

Query parameters
Name Description
custid*
String
new customer id for user
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


userDeleteGet

Permanently delete the user


/user_delete

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        try {
            array[TransactionInfo] result = apiInstance.userDeleteGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDeleteGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[TransactionInfo] result = apiInstance.userDeleteGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDeleteGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

// Permanently delete the user
[apiInstance userDeleteGetWithCompletionHandler: 
              ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


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

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


            var apiInstance = new UserApi();

            try
            {
                // Permanently delete the user
                array[TransactionInfo] result = apiInstance.userDeleteGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userDeleteGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


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

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


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

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


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

try: 
    # Permanently delete the user
    api_response = api_instance.user_delete_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userDeleteGet: %s\n" % e)

Parameters

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid data supplied


userDetailsChangeGet

Change user details


/user_details_change

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_details_change?email=&fname=&lname=&translation="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String email = email_example; // String | new email address for user
        String fname = fname_example; // String | new firstname for user
        String lname = lname_example; // String | new lastname for user
        String translation = translation_example; // String | update the translation settings for user original (will show original titles) | english (will show titles translated in english)
        try {
            array[TransactionInfo] result = apiInstance.userDetailsChangeGet(email, fname, lname, translation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDetailsChangeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String email = email_example; // String | new email address for user
        String fname = fname_example; // String | new firstname for user
        String lname = lname_example; // String | new lastname for user
        String translation = translation_example; // String | update the translation settings for user original (will show original titles) | english (will show titles translated in english)
        try {
            array[TransactionInfo] result = apiInstance.userDetailsChangeGet(email, fname, lname, translation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDetailsChangeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *email = email_example; // new email address for user
String *fname = fname_example; // new firstname for user
String *lname = lname_example; // new lastname for user
String *translation = translation_example; // update the translation settings for user original (will show original titles) | english (will show titles translated in english) (optional)

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

// Change user details
[apiInstance userDetailsChangeGetWith:email
    fname:fname
    lname:lname
    translation:translation
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var email = email_example; // {{String}} new email address for user
var fname = fname_example; // {{String}} new firstname for user
var lname = lname_example; // {{String}} new lastname for user
var opts = { 
  'translation': translation_example // {{String}} update the translation settings for user original (will show original titles) | english (will show titles translated in english)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userDetailsChangeGet(email, fname, lname, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new UserApi();
            var email = email_example;  // String | new email address for user
            var fname = fname_example;  // String | new firstname for user
            var lname = lname_example;  // String | new lastname for user
            var translation = translation_example;  // String | update the translation settings for user original (will show original titles) | english (will show titles translated in english) (optional) 

            try
            {
                // Change user details
                array[TransactionInfo] result = apiInstance.userDetailsChangeGet(email, fname, lname, translation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userDetailsChangeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$email = email_example; // String | new email address for user
$fname = fname_example; // String | new firstname for user
$lname = lname_example; // String | new lastname for user
$translation = translation_example; // String | update the translation settings for user original (will show original titles) | english (will show titles translated in english)

try {
    $result = $api_instance->userDetailsChangeGet($email, $fname, $lname, $translation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->userDetailsChangeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $email = email_example; # String | new email address for user
my $fname = fname_example; # String | new firstname for user
my $lname = lname_example; # String | new lastname for user
my $translation = translation_example; # String | update the translation settings for user original (will show original titles) | english (will show titles translated in english)

eval { 
    my $result = $api_instance->userDetailsChangeGet(email => $email, fname => $fname, lname => $lname, translation => $translation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->userDetailsChangeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.UserApi()
email = email_example # String | new email address for user
fname = fname_example # String | new firstname for user
lname = lname_example # String | new lastname for user
translation = translation_example # String | update the translation settings for user original (will show original titles) | english (will show titles translated in english) (optional)

try: 
    # Change user details
    api_response = api_instance.user_details_change_get(email, fname, lname, translation=translation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userDetailsChangeGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
new email address for user
Required
fname*
String
new firstname for user
Required
lname*
String
new lastname for user
Required
translation
String
update the translation settings for user original (will show original titles) | english (will show titles translated in english)

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/password supplied


userLoginGet

Login user with his credentials


/user_login

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_login?email=&password=&pin="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | password for user
        Integer pin = 56; // Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"
        try {
            array[UserInfo] result = apiInstance.userLoginGet(email, password, pin);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userLoginGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | password for user
        Integer pin = 56; // Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"
        try {
            array[UserInfo] result = apiInstance.userLoginGet(email, password, pin);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userLoginGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *email = email_example; // email address for user
String *password = password_example; // password for user
Integer *pin = 56; // pin code to validate account creation ; when using pin code, password must be set to "loginwithpin" (optional)

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

// Login user with his credentials
[apiInstance userLoginGetWith:email
    password:password
    pin:pin
              completionHandler: ^(array[UserInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var email = email_example; // {{String}} email address for user
var password = password_example; // {{String}} password for user
var opts = { 
  'pin': 56 // {{Integer}} pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userLoginGet(email, password, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new UserApi();
            var email = email_example;  // String | email address for user
            var password = password_example;  // String | password for user
            var pin = 56;  // Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin" (optional) 

            try
            {
                // Login user with his credentials
                array[UserInfo] result = apiInstance.userLoginGet(email, password, pin);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userLoginGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$email = email_example; // String | email address for user
$password = password_example; // String | password for user
$pin = 56; // Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $email = email_example; # String | email address for user
my $password = password_example; # String | password for user
my $pin = 56; # Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
email = email_example # String | email address for user
password = password_example # String | password for user
pin = 56 # Integer | pin code to validate account creation ; when using pin code, password must be set to "loginwithpin" (optional)

try: 
    # Login user with his credentials
    api_response = api_instance.user_login_get(email, password, pin=pin)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userLoginGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
email address for user
Required
password*
String
password for user
Required
pin
Integer
pin code to validate account creation ; when using pin code, password must be set to "loginwithpin"

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/password supplied

Status: 423 - Account not validated. Must login with PIN to validate account.


userMessagesGet

Get messages for user


/user_messages

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_messages?message="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        Integer message = 56; // Integer | ID of the requested message. 0 to get the full message list
        try {
            array[Message] result = apiInstance.userMessagesGet(message);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userMessagesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Integer message = 56; // Integer | ID of the requested message. 0 to get the full message list
        try {
            array[Message] result = apiInstance.userMessagesGet(message);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userMessagesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *message = 56; // ID of the requested message. 0 to get the full message list (optional)

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

// Get messages for user
[apiInstance userMessagesGetWith:message
              completionHandler: ^(array[Message] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var opts = { 
  'message': 56 // {{Integer}} ID of the requested message. 0 to get the full message list
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userMessagesGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new UserApi();
            var message = 56;  // Integer | ID of the requested message. 0 to get the full message list (optional) 

            try
            {
                // Get messages for user
                array[Message] result = apiInstance.userMessagesGet(message);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userMessagesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$message = 56; // Integer | ID of the requested message. 0 to get the full message list

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $message = 56; # Integer | ID of the requested message. 0 to get the full message list

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
message = 56 # Integer | ID of the requested message. 0 to get the full message list (optional)

try: 
    # Get messages for user
    api_response = api_instance.user_messages_get(message=message)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userMessagesGet: %s\n" % e)

Parameters

Query parameters
Name Description
message
Integer
ID of the requested message. 0 to get the full message list

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/token supplied


userPasswordChangeGet

Change user password


/user_password_change

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_password_change?email=&password=&newpassword="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | current password for user
        String newpassword = newpassword_example; // String | new password to set up for user
        try {
            array[TransactionInfo] result = apiInstance.userPasswordChangeGet(email, password, newpassword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPasswordChangeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | current password for user
        String newpassword = newpassword_example; // String | new password to set up for user
        try {
            array[TransactionInfo] result = apiInstance.userPasswordChangeGet(email, password, newpassword);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPasswordChangeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *email = email_example; // email address for user
String *password = password_example; // current password for user
String *newpassword = newpassword_example; // new password to set up for user

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

// Change user password
[apiInstance userPasswordChangeGetWith:email
    password:password
    newpassword:newpassword
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var email = email_example; // {{String}} email address for user
var password = password_example; // {{String}} current password for user
var newpassword = newpassword_example; // {{String}} new password to set up for user

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

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


            var apiInstance = new UserApi();
            var email = email_example;  // String | email address for user
            var password = password_example;  // String | current password for user
            var newpassword = newpassword_example;  // String | new password to set up for user

            try
            {
                // Change user password
                array[TransactionInfo] result = apiInstance.userPasswordChangeGet(email, password, newpassword);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userPasswordChangeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$email = email_example; // String | email address for user
$password = password_example; // String | current password for user
$newpassword = newpassword_example; // String | new password to set up for user

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $email = email_example; # String | email address for user
my $password = password_example; # String | current password for user
my $newpassword = newpassword_example; # String | new password to set up for user

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
email = email_example # String | email address for user
password = password_example # String | current password for user
newpassword = newpassword_example # String | new password to set up for user

try: 
    # Change user password
    api_response = api_instance.user_password_change_get(email, password, newpassword)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userPasswordChangeGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
email address for user
Required
password*
String
current password for user
Required
newpassword*
String
new password to set up for user
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/password supplied


userPasswordResetGet

Reset user password


/user_password_reset

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_password_reset?email="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        try {
            array[TransactionInfo] result = apiInstance.userPasswordResetGet(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPasswordResetGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        try {
            array[TransactionInfo] result = apiInstance.userPasswordResetGet(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPasswordResetGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *email = email_example; // email address for user

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

// Reset user password
[apiInstance userPasswordResetGetWith:email
              completionHandler: ^(array[TransactionInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var email = email_example; // {{String}} email address for user

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

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


            var apiInstance = new UserApi();
            var email = email_example;  // String | email address for user

            try
            {
                // Reset user password
                array[TransactionInfo] result = apiInstance.userPasswordResetGet(email);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userPasswordResetGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$email = email_example; // String | email address for user

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $email = email_example; # String | email address for user

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
email = email_example # String | email address for user

try: 
    # Reset user password
    api_response = api_instance.user_password_reset_get(email)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userPasswordResetGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
email address for user
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid email supplied


userRefreshSubscriptionGet

Refresh user rights with his Customer ID. This function is system reserved


/user_refresh_subscription

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_refresh_subscription?custid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String custid = custid_example; // String | Customer ID for the user
        try {
            array[UserInfo] result = apiInstance.userRefreshSubscriptionGet(custid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userRefreshSubscriptionGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String custid = custid_example; // String | Customer ID for the user
        try {
            array[UserInfo] result = apiInstance.userRefreshSubscriptionGet(custid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userRefreshSubscriptionGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *custid = custid_example; // Customer ID for the user

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

// Refresh user rights with his Customer ID. This function is system reserved
[apiInstance userRefreshSubscriptionGetWith:custid
              completionHandler: ^(array[UserInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var custid = custid_example; // {{String}} Customer ID for the user

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

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


            var apiInstance = new UserApi();
            var custid = custid_example;  // String | Customer ID for the user

            try
            {
                // Refresh user rights with his Customer ID. This function is system reserved
                array[UserInfo] result = apiInstance.userRefreshSubscriptionGet(custid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userRefreshSubscriptionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$custid = custid_example; // String | Customer ID for the user

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


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $custid = custid_example; # String | Customer ID for the user

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


# create an instance of the API class
api_instance = swagger_client.UserApi()
custid = custid_example # String | Customer ID for the user

try: 
    # Refresh user rights with his Customer ID. This function is system reserved
    api_response = api_instance.user_refresh_subscription_get(custid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userRefreshSubscriptionGet: %s\n" % e)

Parameters

Query parameters
Name Description
custid*
String
Customer ID for the user
Required

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/password supplied


userRegisterGet

Login user with his credentials


/user_register

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.discoversnoop.com/user_register?email=&password=&fname=&lname=&referrer="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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


        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | password for user
        String fname = fname_example; // String | new firstname for user
        String lname = lname_example; // String | new lastname for user
        String referrer = referrer_example; // String | referrer for this user. should be urlencoded
        try {
            array[UserInfo] result = apiInstance.userRegisterGet(email, password, fname, lname, referrer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userRegisterGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String email = email_example; // String | email address for user
        String password = password_example; // String | password for user
        String fname = fname_example; // String | new firstname for user
        String lname = lname_example; // String | new lastname for user
        String referrer = referrer_example; // String | referrer for this user. should be urlencoded
        try {
            array[UserInfo] result = apiInstance.userRegisterGet(email, password, fname, lname, referrer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userRegisterGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *email = email_example; // email address for user
String *password = password_example; // password for user
String *fname = fname_example; // new firstname for user
String *lname = lname_example; // new lastname for user
String *referrer = referrer_example; // referrer for this user. should be urlencoded (optional)

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

// Login user with his credentials
[apiInstance userRegisterGetWith:email
    password:password
    fname:fname
    lname:lname
    referrer:referrer
              completionHandler: ^(array[UserInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DiscoverSnoop = require('discover_snoop');
var defaultClient = DiscoverSnoop.ApiClient.instance;


var api = new DiscoverSnoop.UserApi()
var email = email_example; // {{String}} email address for user
var password = password_example; // {{String}} password for user
var fname = fname_example; // {{String}} new firstname for user
var lname = lname_example; // {{String}} new lastname for user
var opts = { 
  'referrer': referrer_example // {{String}} referrer for this user. should be urlencoded
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userRegisterGet(email, password, fname, lname, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new UserApi();
            var email = email_example;  // String | email address for user
            var password = password_example;  // String | password for user
            var fname = fname_example;  // String | new firstname for user
            var lname = lname_example;  // String | new lastname for user
            var referrer = referrer_example;  // String | referrer for this user. should be urlencoded (optional) 

            try
            {
                // Login user with his credentials
                array[UserInfo] result = apiInstance.userRegisterGet(email, password, fname, lname, referrer);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userRegisterGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiUserApi();
$email = email_example; // String | email address for user
$password = password_example; // String | password for user
$fname = fname_example; // String | new firstname for user
$lname = lname_example; // String | new lastname for user
$referrer = referrer_example; // String | referrer for this user. should be urlencoded

try {
    $result = $api_instance->userRegisterGet($email, $password, $fname, $lname, $referrer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->userRegisterGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;


my $api_instance = WWW::SwaggerClient::UserApi->new();
my $email = email_example; # String | email address for user
my $password = password_example; # String | password for user
my $fname = fname_example; # String | new firstname for user
my $lname = lname_example; # String | new lastname for user
my $referrer = referrer_example; # String | referrer for this user. should be urlencoded

eval { 
    my $result = $api_instance->userRegisterGet(email => $email, password => $password, fname => $fname, lname => $lname, referrer => $referrer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->userRegisterGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.UserApi()
email = email_example # String | email address for user
password = password_example # String | password for user
fname = fname_example # String | new firstname for user
lname = lname_example # String | new lastname for user
referrer = referrer_example # String | referrer for this user. should be urlencoded (optional)

try: 
    # Login user with his credentials
    api_response = api_instance.user_register_get(email, password, fname, lname, referrer=referrer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->userRegisterGet: %s\n" % e)

Parameters

Query parameters
Name Description
email*
String
email address for user
Required
password*
String
password for user
Required
fname*
String
new firstname for user
Required
lname*
String
new lastname for user
Required
referrer
String
referrer for this user. should be urlencoded

Responses

Status: 200 - successful operation

Status: 400 - Missing parameters

Status: 403 - Invalid username/password supplied