AS Server - API - Notification

Default

notificationDelete

Notification_Delete


/Notification/Delete

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/Delete" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListInt32 actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

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

final api_instance = DefaultApi();

final ActionRequestListInt32 actionRequestListInt32 = new ActionRequestListInt32(); // ActionRequestListInt32 | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListInt32 actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

        try {
            Object result = apiInstance.notificationDelete(actionRequestListInt32);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestListInt32 *actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_Delete
[apiInstance notificationDeleteWith:actionRequestListInt32
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'actionRequestListInt32': {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestListInt32} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestListInt32 |  (optional)

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

pub fn main() {
    let actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32

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

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

Scopes

Parameters

Body parameters
Name Description
actionRequestListInt32

Responses


notificationDeleteAll

Notification_DeleteAll


/Notification/DeleteAll

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Notification/DeleteAll"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            Object result = apiInstance.notificationDeleteAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationDeleteAll");
            e.printStackTrace();
        }
    }
}


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

// Notification_DeleteAll
[apiInstance notificationDeleteAllWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


notificationGet

Notification_Get


/Notification/Get

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/Get" \
 -d '{
  "WebsiteID" : 5,
  "TenantID" : 1,
  "UserID" : 5,
  "DatTypeID" : 6,
  "ID" : 0
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<NotificationEditRequest>
  <ID>123</ID>
  <DatTypeID>123</DatTypeID>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</NotificationEditRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        NotificationEditRequest notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationEditRequest | 

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

final api_instance = DefaultApi();

final NotificationEditRequest notificationEditRequest = new NotificationEditRequest(); // NotificationEditRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        NotificationEditRequest notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationEditRequest | 

        try {
            Object result = apiInstance.notificationGet(notificationEditRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
NotificationEditRequest *notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_Get
[apiInstance notificationGetWith:notificationEditRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'notificationEditRequest': {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {NotificationEditRequest} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationEditRequest | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0} # NotificationEditRequest |  (optional)

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

pub fn main() {
    let notificationEditRequest = {"ID":0,"DatTypeID":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationEditRequest

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

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

Scopes

Parameters

Body parameters
Name Description
notificationEditRequest

Responses


notificationGetUnpreviewedCount

Notification_GetUnpreviewedCount


/Notification/GetUnpreviewedCount

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Notification/GetUnpreviewedCount?req.updateLastPreviewedDateTime=true&req.datTypes=&req.isGetUnreadOnly=true&req.isGetForAllApps=true&req.statuses=&req.statusStrings=&req.status=&req.searchString=reqPeriodsearchString_example&req.searchNameOnly=true&req.search=reqPeriodsearch_example&req.startDate=2013-10-20T19:20:30+01:00&req.endDate=2013-10-20T19:20:30+01:00&req.datePeriod=reqPerioddatePeriod_example&req.isExactMatch=true&req.isGetBasicInfo=true&req.includeDeleted=true&req.includeLogs=true&req.ignoreID=56&req.parentID=56&req.getCountOnly=true&req.transactionTypeDatTypeID=56&req.categoryID=56&req.adaptorID=56&req.categoryIDs=&req.brandIDs=&req.iDs=&req.gUIDs=&req.linkedSupplierID=56&req.isApprovedForPOS=true&req.isApprovedForWeb=true&req.isApprovedForService=true&req.iD=56&req.isHierarchicalSort=true&req.types=&req.isShowFavourites=true&req.isHidden=true&req.includeSystemTasks=true&req.isSystem=true&req.batchStatus=reqPeriodbatchStatus_example&req.sortField=reqPeriodsortField_example&req.sortAsc=true&req.groupBy=reqPeriodgroupBy_example&req.lastRowNumber=789&req.maxResults=56&req.tenantID=56&req.websiteID=56&req.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Boolean reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
        array[Integer] reqPerioddatTypes = ; // array[Integer] | 
        Boolean reqPeriodisGetUnreadOnly = true; // Boolean | 
        Boolean reqPeriodisGetForAllApps = true; // Boolean | 
        array[Integer] reqPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodstatus = ; // array[String] | 
        String reqPeriodsearchString = reqPeriodsearchString_example; // String | 
        Boolean reqPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodsearch = reqPeriodsearch_example; // String | 
        Date reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
        Boolean reqPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodignoreID = 56; // Integer | Format - int32.
        Integer reqPeriodparentID = 56; // Integer | Format - int32.
        Boolean reqPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer reqPeriodcategoryID = 56; // Integer | Format - int32.
        Integer reqPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] reqPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean reqPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | Format - int32.
        Boolean reqPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodtypes = ; // array[String] | 
        Boolean reqPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodisSystem = true; // Boolean | 
        String reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
        String reqPeriodsortField = reqPeriodsortField_example; // String | 
        Boolean reqPeriodsortAsc = true; // Boolean | 
        String reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
        Long reqPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer reqPeriodmaxResults = 56; // Integer | Format - int32.
        Integer reqPeriodtenantID = 56; // Integer | Format - int32.
        Integer reqPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer reqPerioduserID = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGetUnpreviewedCount");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean reqPeriodupdateLastPreviewedDateTime = new Boolean(); // Boolean | 
final array[Integer] reqPerioddatTypes = new array[Integer](); // array[Integer] | 
final Boolean reqPeriodisGetUnreadOnly = new Boolean(); // Boolean | 
final Boolean reqPeriodisGetForAllApps = new Boolean(); // Boolean | 
final array[Integer] reqPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] reqPeriodstatus = new array[String](); // array[String] | 
final String reqPeriodsearchString = new String(); // String | 
final Boolean reqPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String reqPeriodsearch = new String(); // String | 
final Date reqPeriodstartDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final Date reqPeriodendDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final String reqPerioddatePeriod = new String(); // String | 
final Boolean reqPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean reqPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer reqPeriodignoreID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodparentID = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer reqPeriodtransactionTypeDatTypeID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodcategoryID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodadaptorID = new Integer(); // Integer | Format - int32.
final array[Integer] reqPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodgUIDs = new array[String](); // array[String] | 
final Integer reqPeriodlinkedSupplierID = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean reqPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean reqPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer reqPeriodiD = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] reqPeriodtypes = new array[String](); // array[String] | 
final Boolean reqPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean reqPeriodisHidden = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean reqPeriodisSystem = new Boolean(); // Boolean | 
final String reqPeriodbatchStatus = new String(); // String | 
final String reqPeriodsortField = new String(); // String | 
final Boolean reqPeriodsortAsc = new Boolean(); // Boolean | 
final String reqPeriodgroupBy = new String(); // String | 
final Long reqPeriodlastRowNumber = new Long(); // Long | Format - int64.
final Integer reqPeriodmaxResults = new Integer(); // Integer | Format - int32.
final Integer reqPeriodtenantID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodwebsiteID = new Integer(); // Integer | Format - int32.
final Integer reqPerioduserID = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->notificationGetUnpreviewedCount: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Boolean reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
        array[Integer] reqPerioddatTypes = ; // array[Integer] | 
        Boolean reqPeriodisGetUnreadOnly = true; // Boolean | 
        Boolean reqPeriodisGetForAllApps = true; // Boolean | 
        array[Integer] reqPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodstatus = ; // array[String] | 
        String reqPeriodsearchString = reqPeriodsearchString_example; // String | 
        Boolean reqPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodsearch = reqPeriodsearch_example; // String | 
        Date reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
        Boolean reqPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodignoreID = 56; // Integer | Format - int32.
        Integer reqPeriodparentID = 56; // Integer | Format - int32.
        Boolean reqPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer reqPeriodcategoryID = 56; // Integer | Format - int32.
        Integer reqPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] reqPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean reqPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | Format - int32.
        Boolean reqPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodtypes = ; // array[String] | 
        Boolean reqPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodisSystem = true; // Boolean | 
        String reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
        String reqPeriodsortField = reqPeriodsortField_example; // String | 
        Boolean reqPeriodsortAsc = true; // Boolean | 
        String reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
        Long reqPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer reqPeriodmaxResults = 56; // Integer | Format - int32.
        Integer reqPeriodtenantID = 56; // Integer | Format - int32.
        Integer reqPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer reqPerioduserID = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGetUnpreviewedCount");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Boolean *reqPeriodupdateLastPreviewedDateTime = true; //  (optional) (default to null)
array[Integer] *reqPerioddatTypes = ; //  (optional) (default to null)
Boolean *reqPeriodisGetUnreadOnly = true; //  (optional) (default to null)
Boolean *reqPeriodisGetForAllApps = true; //  (optional) (default to null)
array[Integer] *reqPeriodstatuses = ; //  (optional) (default to null)
array[String] *reqPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *reqPeriodstatus = ; //  (optional) (default to null)
String *reqPeriodsearchString = reqPeriodsearchString_example; //  (optional) (default to null)
Boolean *reqPeriodsearchNameOnly = true; //  (optional) (default to null)
String *reqPeriodsearch = reqPeriodsearch_example; //  (optional) (default to null)
Date *reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
Date *reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
String *reqPerioddatePeriod = reqPerioddatePeriod_example; //  (optional) (default to null)
Boolean *reqPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *reqPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *reqPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *reqPeriodincludeLogs = true; //  (optional) (default to null)
Integer *reqPeriodignoreID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodparentID = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *reqPeriodtransactionTypeDatTypeID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodcategoryID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodadaptorID = 56; // Format - int32. (optional) (default to null)
array[Integer] *reqPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodiDs = ; //  (optional) (default to null)
array[String] *reqPeriodgUIDs = ; //  (optional) (default to null)
Integer *reqPeriodlinkedSupplierID = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *reqPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *reqPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *reqPeriodiD = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *reqPeriodtypes = ; //  (optional) (default to null)
Boolean *reqPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *reqPeriodisHidden = true; //  (optional) (default to null)
Boolean *reqPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *reqPeriodisSystem = true; //  (optional) (default to null)
String *reqPeriodbatchStatus = reqPeriodbatchStatus_example; //  (optional) (default to null)
String *reqPeriodsortField = reqPeriodsortField_example; //  (optional) (default to null)
Boolean *reqPeriodsortAsc = true; //  (optional) (default to null)
String *reqPeriodgroupBy = reqPeriodgroupBy_example; //  (optional) (default to null)
Long *reqPeriodlastRowNumber = 789; // Format - int64. (optional) (default to null)
Integer *reqPeriodmaxResults = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodtenantID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodwebsiteID = 56; // Format - int32. (optional) (default to null)
Integer *reqPerioduserID = 56; // Format - int32. (optional) (default to null)

// Notification_GetUnpreviewedCount
[apiInstance notificationGetUnpreviewedCountWith:reqPeriodupdateLastPreviewedDateTime
    reqPerioddatTypes:reqPerioddatTypes
    reqPeriodisGetUnreadOnly:reqPeriodisGetUnreadOnly
    reqPeriodisGetForAllApps:reqPeriodisGetForAllApps
    reqPeriodstatuses:reqPeriodstatuses
    reqPeriodstatusStrings:reqPeriodstatusStrings
    reqPeriodstatus:reqPeriodstatus
    reqPeriodsearchString:reqPeriodsearchString
    reqPeriodsearchNameOnly:reqPeriodsearchNameOnly
    reqPeriodsearch:reqPeriodsearch
    reqPeriodstartDate:reqPeriodstartDate
    reqPeriodendDate:reqPeriodendDate
    reqPerioddatePeriod:reqPerioddatePeriod
    reqPeriodisExactMatch:reqPeriodisExactMatch
    reqPeriodisGetBasicInfo:reqPeriodisGetBasicInfo
    reqPeriodincludeDeleted:reqPeriodincludeDeleted
    reqPeriodincludeLogs:reqPeriodincludeLogs
    reqPeriodignoreID:reqPeriodignoreID
    reqPeriodparentID:reqPeriodparentID
    reqPeriodgetCountOnly:reqPeriodgetCountOnly
    reqPeriodtransactionTypeDatTypeID:reqPeriodtransactionTypeDatTypeID
    reqPeriodcategoryID:reqPeriodcategoryID
    reqPeriodadaptorID:reqPeriodadaptorID
    reqPeriodcategoryIDs:reqPeriodcategoryIDs
    reqPeriodbrandIDs:reqPeriodbrandIDs
    reqPeriodiDs:reqPeriodiDs
    reqPeriodgUIDs:reqPeriodgUIDs
    reqPeriodlinkedSupplierID:reqPeriodlinkedSupplierID
    reqPeriodisApprovedForPOS:reqPeriodisApprovedForPOS
    reqPeriodisApprovedForWeb:reqPeriodisApprovedForWeb
    reqPeriodisApprovedForService:reqPeriodisApprovedForService
    reqPeriodiD:reqPeriodiD
    reqPeriodisHierarchicalSort:reqPeriodisHierarchicalSort
    reqPeriodtypes:reqPeriodtypes
    reqPeriodisShowFavourites:reqPeriodisShowFavourites
    reqPeriodisHidden:reqPeriodisHidden
    reqPeriodincludeSystemTasks:reqPeriodincludeSystemTasks
    reqPeriodisSystem:reqPeriodisSystem
    reqPeriodbatchStatus:reqPeriodbatchStatus
    reqPeriodsortField:reqPeriodsortField
    reqPeriodsortAsc:reqPeriodsortAsc
    reqPeriodgroupBy:reqPeriodgroupBy
    reqPeriodlastRowNumber:reqPeriodlastRowNumber
    reqPeriodmaxResults:reqPeriodmaxResults
    reqPeriodtenantID:reqPeriodtenantID
    reqPeriodwebsiteID:reqPeriodwebsiteID
    reqPerioduserID:reqPerioduserID
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'reqPeriodupdateLastPreviewedDateTime': true, // {Boolean} 
  'reqPerioddatTypes': , // {array[Integer]} 
  'reqPeriodisGetUnreadOnly': true, // {Boolean} 
  'reqPeriodisGetForAllApps': true, // {Boolean} 
  'reqPeriodstatuses': , // {array[Integer]} 
  'reqPeriodstatusStrings': , // {array[String]} 
  'reqPeriodstatus': , // {array[String]} 
  'reqPeriodsearchString': reqPeriodsearchString_example, // {String} 
  'reqPeriodsearchNameOnly': true, // {Boolean} 
  'reqPeriodsearch': reqPeriodsearch_example, // {String} 
  'reqPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'reqPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'reqPerioddatePeriod': reqPerioddatePeriod_example, // {String} 
  'reqPeriodisExactMatch': true, // {Boolean} 
  'reqPeriodisGetBasicInfo': true, // {Boolean} 
  'reqPeriodincludeDeleted': true, // {Boolean} 
  'reqPeriodincludeLogs': true, // {Boolean} 
  'reqPeriodignoreID': 56, // {Integer} Format - int32.
  'reqPeriodparentID': 56, // {Integer} Format - int32.
  'reqPeriodgetCountOnly': true, // {Boolean} 
  'reqPeriodtransactionTypeDatTypeID': 56, // {Integer} Format - int32.
  'reqPeriodcategoryID': 56, // {Integer} Format - int32.
  'reqPeriodadaptorID': 56, // {Integer} Format - int32.
  'reqPeriodcategoryIDs': , // {array[Integer]} 
  'reqPeriodbrandIDs': , // {array[Integer]} 
  'reqPeriodiDs': , // {array[Integer]} 
  'reqPeriodgUIDs': , // {array[String]} 
  'reqPeriodlinkedSupplierID': 56, // {Integer} Format - int32.
  'reqPeriodisApprovedForPOS': true, // {Boolean} 
  'reqPeriodisApprovedForWeb': true, // {Boolean} 
  'reqPeriodisApprovedForService': true, // {Boolean} 
  'reqPeriodiD': 56, // {Integer} Format - int32.
  'reqPeriodisHierarchicalSort': true, // {Boolean} 
  'reqPeriodtypes': , // {array[String]} 
  'reqPeriodisShowFavourites': true, // {Boolean} 
  'reqPeriodisHidden': true, // {Boolean} 
  'reqPeriodincludeSystemTasks': true, // {Boolean} 
  'reqPeriodisSystem': true, // {Boolean} 
  'reqPeriodbatchStatus': reqPeriodbatchStatus_example, // {String} 
  'reqPeriodsortField': reqPeriodsortField_example, // {String} 
  'reqPeriodsortAsc': true, // {Boolean} 
  'reqPeriodgroupBy': reqPeriodgroupBy_example, // {String} 
  'reqPeriodlastRowNumber': 789, // {Long} Format - int64.
  'reqPeriodmaxResults': 56, // {Integer} Format - int32.
  'reqPeriodtenantID': 56, // {Integer} Format - int32.
  'reqPeriodwebsiteID': 56, // {Integer} Format - int32.
  'reqPerioduserID': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var reqPeriodupdateLastPreviewedDateTime = true;  // Boolean |  (optional)  (default to null)
            var reqPerioddatTypes = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodisGetUnreadOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisGetForAllApps = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodsearchString = reqPeriodsearchString_example;  // String |  (optional)  (default to null)
            var reqPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodsearch = reqPeriodsearch_example;  // String |  (optional)  (default to null)
            var reqPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var reqPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var reqPerioddatePeriod = reqPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var reqPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodignoreID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodparentID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodtransactionTypeDatTypeID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodcategoryID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodadaptorID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlinkedSupplierID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodiD = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodbatchStatus = reqPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var reqPeriodsortField = reqPeriodsortField_example;  // String |  (optional)  (default to null)
            var reqPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodgroupBy = reqPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var reqPeriodlastRowNumber = 789;  // Long | Format - int64. (optional)  (default to null)
            var reqPeriodmaxResults = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodtenantID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodwebsiteID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPerioduserID = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // Notification_GetUnpreviewedCount
                Object result = apiInstance.notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.notificationGetUnpreviewedCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
$reqPerioddatTypes = ; // array[Integer] | 
$reqPeriodisGetUnreadOnly = true; // Boolean | 
$reqPeriodisGetForAllApps = true; // Boolean | 
$reqPeriodstatuses = ; // array[Integer] | 
$reqPeriodstatusStrings = ; // array[String] | 
$reqPeriodstatus = ; // array[String] | 
$reqPeriodsearchString = reqPeriodsearchString_example; // String | 
$reqPeriodsearchNameOnly = true; // Boolean | 
$reqPeriodsearch = reqPeriodsearch_example; // String | 
$reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
$reqPeriodisExactMatch = true; // Boolean | 
$reqPeriodisGetBasicInfo = true; // Boolean | 
$reqPeriodincludeDeleted = true; // Boolean | 
$reqPeriodincludeLogs = true; // Boolean | 
$reqPeriodignoreID = 56; // Integer | Format - int32.
$reqPeriodparentID = 56; // Integer | Format - int32.
$reqPeriodgetCountOnly = true; // Boolean | 
$reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
$reqPeriodcategoryID = 56; // Integer | Format - int32.
$reqPeriodadaptorID = 56; // Integer | Format - int32.
$reqPeriodcategoryIDs = ; // array[Integer] | 
$reqPeriodbrandIDs = ; // array[Integer] | 
$reqPeriodiDs = ; // array[Integer] | 
$reqPeriodgUIDs = ; // array[String] | 
$reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
$reqPeriodisApprovedForPOS = true; // Boolean | 
$reqPeriodisApprovedForWeb = true; // Boolean | 
$reqPeriodisApprovedForService = true; // Boolean | 
$reqPeriodiD = 56; // Integer | Format - int32.
$reqPeriodisHierarchicalSort = true; // Boolean | 
$reqPeriodtypes = ; // array[String] | 
$reqPeriodisShowFavourites = true; // Boolean | 
$reqPeriodisHidden = true; // Boolean | 
$reqPeriodincludeSystemTasks = true; // Boolean | 
$reqPeriodisSystem = true; // Boolean | 
$reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
$reqPeriodsortField = reqPeriodsortField_example; // String | 
$reqPeriodsortAsc = true; // Boolean | 
$reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
$reqPeriodlastRowNumber = 789; // Long | Format - int64.
$reqPeriodmaxResults = 56; // Integer | Format - int32.
$reqPeriodtenantID = 56; // Integer | Format - int32.
$reqPeriodwebsiteID = 56; // Integer | Format - int32.
$reqPerioduserID = 56; // Integer | Format - int32.

try {
    $result = $api_instance->notificationGetUnpreviewedCount($reqPeriodupdateLastPreviewedDateTime, $reqPerioddatTypes, $reqPeriodisGetUnreadOnly, $reqPeriodisGetForAllApps, $reqPeriodstatuses, $reqPeriodstatusStrings, $reqPeriodstatus, $reqPeriodsearchString, $reqPeriodsearchNameOnly, $reqPeriodsearch, $reqPeriodstartDate, $reqPeriodendDate, $reqPerioddatePeriod, $reqPeriodisExactMatch, $reqPeriodisGetBasicInfo, $reqPeriodincludeDeleted, $reqPeriodincludeLogs, $reqPeriodignoreID, $reqPeriodparentID, $reqPeriodgetCountOnly, $reqPeriodtransactionTypeDatTypeID, $reqPeriodcategoryID, $reqPeriodadaptorID, $reqPeriodcategoryIDs, $reqPeriodbrandIDs, $reqPeriodiDs, $reqPeriodgUIDs, $reqPeriodlinkedSupplierID, $reqPeriodisApprovedForPOS, $reqPeriodisApprovedForWeb, $reqPeriodisApprovedForService, $reqPeriodiD, $reqPeriodisHierarchicalSort, $reqPeriodtypes, $reqPeriodisShowFavourites, $reqPeriodisHidden, $reqPeriodincludeSystemTasks, $reqPeriodisSystem, $reqPeriodbatchStatus, $reqPeriodsortField, $reqPeriodsortAsc, $reqPeriodgroupBy, $reqPeriodlastRowNumber, $reqPeriodmaxResults, $reqPeriodtenantID, $reqPeriodwebsiteID, $reqPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->notificationGetUnpreviewedCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $reqPeriodupdateLastPreviewedDateTime = true; # Boolean | 
my $reqPerioddatTypes = []; # array[Integer] | 
my $reqPeriodisGetUnreadOnly = true; # Boolean | 
my $reqPeriodisGetForAllApps = true; # Boolean | 
my $reqPeriodstatuses = []; # array[Integer] | 
my $reqPeriodstatusStrings = []; # array[String] | 
my $reqPeriodstatus = []; # array[String] | 
my $reqPeriodsearchString = reqPeriodsearchString_example; # String | 
my $reqPeriodsearchNameOnly = true; # Boolean | 
my $reqPeriodsearch = reqPeriodsearch_example; # String | 
my $reqPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $reqPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $reqPerioddatePeriod = reqPerioddatePeriod_example; # String | 
my $reqPeriodisExactMatch = true; # Boolean | 
my $reqPeriodisGetBasicInfo = true; # Boolean | 
my $reqPeriodincludeDeleted = true; # Boolean | 
my $reqPeriodincludeLogs = true; # Boolean | 
my $reqPeriodignoreID = 56; # Integer | Format - int32.
my $reqPeriodparentID = 56; # Integer | Format - int32.
my $reqPeriodgetCountOnly = true; # Boolean | 
my $reqPeriodtransactionTypeDatTypeID = 56; # Integer | Format - int32.
my $reqPeriodcategoryID = 56; # Integer | Format - int32.
my $reqPeriodadaptorID = 56; # Integer | Format - int32.
my $reqPeriodcategoryIDs = []; # array[Integer] | 
my $reqPeriodbrandIDs = []; # array[Integer] | 
my $reqPeriodiDs = []; # array[Integer] | 
my $reqPeriodgUIDs = []; # array[String] | 
my $reqPeriodlinkedSupplierID = 56; # Integer | Format - int32.
my $reqPeriodisApprovedForPOS = true; # Boolean | 
my $reqPeriodisApprovedForWeb = true; # Boolean | 
my $reqPeriodisApprovedForService = true; # Boolean | 
my $reqPeriodiD = 56; # Integer | Format - int32.
my $reqPeriodisHierarchicalSort = true; # Boolean | 
my $reqPeriodtypes = []; # array[String] | 
my $reqPeriodisShowFavourites = true; # Boolean | 
my $reqPeriodisHidden = true; # Boolean | 
my $reqPeriodincludeSystemTasks = true; # Boolean | 
my $reqPeriodisSystem = true; # Boolean | 
my $reqPeriodbatchStatus = reqPeriodbatchStatus_example; # String | 
my $reqPeriodsortField = reqPeriodsortField_example; # String | 
my $reqPeriodsortAsc = true; # Boolean | 
my $reqPeriodgroupBy = reqPeriodgroupBy_example; # String | 
my $reqPeriodlastRowNumber = 789; # Long | Format - int64.
my $reqPeriodmaxResults = 56; # Integer | Format - int32.
my $reqPeriodtenantID = 56; # Integer | Format - int32.
my $reqPeriodwebsiteID = 56; # Integer | Format - int32.
my $reqPerioduserID = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime => $reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes => $reqPerioddatTypes, reqPeriodisGetUnreadOnly => $reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps => $reqPeriodisGetForAllApps, reqPeriodstatuses => $reqPeriodstatuses, reqPeriodstatusStrings => $reqPeriodstatusStrings, reqPeriodstatus => $reqPeriodstatus, reqPeriodsearchString => $reqPeriodsearchString, reqPeriodsearchNameOnly => $reqPeriodsearchNameOnly, reqPeriodsearch => $reqPeriodsearch, reqPeriodstartDate => $reqPeriodstartDate, reqPeriodendDate => $reqPeriodendDate, reqPerioddatePeriod => $reqPerioddatePeriod, reqPeriodisExactMatch => $reqPeriodisExactMatch, reqPeriodisGetBasicInfo => $reqPeriodisGetBasicInfo, reqPeriodincludeDeleted => $reqPeriodincludeDeleted, reqPeriodincludeLogs => $reqPeriodincludeLogs, reqPeriodignoreID => $reqPeriodignoreID, reqPeriodparentID => $reqPeriodparentID, reqPeriodgetCountOnly => $reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID => $reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID => $reqPeriodcategoryID, reqPeriodadaptorID => $reqPeriodadaptorID, reqPeriodcategoryIDs => $reqPeriodcategoryIDs, reqPeriodbrandIDs => $reqPeriodbrandIDs, reqPeriodiDs => $reqPeriodiDs, reqPeriodgUIDs => $reqPeriodgUIDs, reqPeriodlinkedSupplierID => $reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS => $reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb => $reqPeriodisApprovedForWeb, reqPeriodisApprovedForService => $reqPeriodisApprovedForService, reqPeriodiD => $reqPeriodiD, reqPeriodisHierarchicalSort => $reqPeriodisHierarchicalSort, reqPeriodtypes => $reqPeriodtypes, reqPeriodisShowFavourites => $reqPeriodisShowFavourites, reqPeriodisHidden => $reqPeriodisHidden, reqPeriodincludeSystemTasks => $reqPeriodincludeSystemTasks, reqPeriodisSystem => $reqPeriodisSystem, reqPeriodbatchStatus => $reqPeriodbatchStatus, reqPeriodsortField => $reqPeriodsortField, reqPeriodsortAsc => $reqPeriodsortAsc, reqPeriodgroupBy => $reqPeriodgroupBy, reqPeriodlastRowNumber => $reqPeriodlastRowNumber, reqPeriodmaxResults => $reqPeriodmaxResults, reqPeriodtenantID => $reqPeriodtenantID, reqPeriodwebsiteID => $reqPeriodwebsiteID, reqPerioduserID => $reqPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->notificationGetUnpreviewedCount: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
reqPeriodupdateLastPreviewedDateTime = true # Boolean |  (optional) (default to null)
reqPerioddatTypes =  # array[Integer] |  (optional) (default to null)
reqPeriodisGetUnreadOnly = true # Boolean |  (optional) (default to null)
reqPeriodisGetForAllApps = true # Boolean |  (optional) (default to null)
reqPeriodstatuses =  # array[Integer] |  (optional) (default to null)
reqPeriodstatusStrings =  # array[String] |  (optional) (default to null)
reqPeriodstatus =  # array[String] |  (optional) (default to null)
reqPeriodsearchString = reqPeriodsearchString_example # String |  (optional) (default to null)
reqPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
reqPeriodsearch = reqPeriodsearch_example # String |  (optional) (default to null)
reqPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
reqPeriodendDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
reqPerioddatePeriod = reqPerioddatePeriod_example # String |  (optional) (default to null)
reqPeriodisExactMatch = true # Boolean |  (optional) (default to null)
reqPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
reqPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
reqPeriodincludeLogs = true # Boolean |  (optional) (default to null)
reqPeriodignoreID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodparentID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
reqPeriodtransactionTypeDatTypeID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodcategoryID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodadaptorID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodiDs =  # array[Integer] |  (optional) (default to null)
reqPeriodgUIDs =  # array[String] |  (optional) (default to null)
reqPeriodlinkedSupplierID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
reqPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
reqPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
reqPeriodiD = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
reqPeriodtypes =  # array[String] |  (optional) (default to null)
reqPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
reqPeriodisHidden = true # Boolean |  (optional) (default to null)
reqPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
reqPeriodisSystem = true # Boolean |  (optional) (default to null)
reqPeriodbatchStatus = reqPeriodbatchStatus_example # String |  (optional) (default to null)
reqPeriodsortField = reqPeriodsortField_example # String |  (optional) (default to null)
reqPeriodsortAsc = true # Boolean |  (optional) (default to null)
reqPeriodgroupBy = reqPeriodgroupBy_example # String |  (optional) (default to null)
reqPeriodlastRowNumber = 789 # Long | Format - int64. (optional) (default to null)
reqPeriodmaxResults = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodtenantID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodwebsiteID = 56 # Integer | Format - int32. (optional) (default to null)
reqPerioduserID = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # Notification_GetUnpreviewedCount
    api_response = api_instance.notification_get_unpreviewed_count(reqPeriodupdateLastPreviewedDateTime=reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes=reqPerioddatTypes, reqPeriodisGetUnreadOnly=reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps=reqPeriodisGetForAllApps, reqPeriodstatuses=reqPeriodstatuses, reqPeriodstatusStrings=reqPeriodstatusStrings, reqPeriodstatus=reqPeriodstatus, reqPeriodsearchString=reqPeriodsearchString, reqPeriodsearchNameOnly=reqPeriodsearchNameOnly, reqPeriodsearch=reqPeriodsearch, reqPeriodstartDate=reqPeriodstartDate, reqPeriodendDate=reqPeriodendDate, reqPerioddatePeriod=reqPerioddatePeriod, reqPeriodisExactMatch=reqPeriodisExactMatch, reqPeriodisGetBasicInfo=reqPeriodisGetBasicInfo, reqPeriodincludeDeleted=reqPeriodincludeDeleted, reqPeriodincludeLogs=reqPeriodincludeLogs, reqPeriodignoreID=reqPeriodignoreID, reqPeriodparentID=reqPeriodparentID, reqPeriodgetCountOnly=reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID=reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID=reqPeriodcategoryID, reqPeriodadaptorID=reqPeriodadaptorID, reqPeriodcategoryIDs=reqPeriodcategoryIDs, reqPeriodbrandIDs=reqPeriodbrandIDs, reqPeriodiDs=reqPeriodiDs, reqPeriodgUIDs=reqPeriodgUIDs, reqPeriodlinkedSupplierID=reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS=reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb=reqPeriodisApprovedForWeb, reqPeriodisApprovedForService=reqPeriodisApprovedForService, reqPeriodiD=reqPeriodiD, reqPeriodisHierarchicalSort=reqPeriodisHierarchicalSort, reqPeriodtypes=reqPeriodtypes, reqPeriodisShowFavourites=reqPeriodisShowFavourites, reqPeriodisHidden=reqPeriodisHidden, reqPeriodincludeSystemTasks=reqPeriodincludeSystemTasks, reqPeriodisSystem=reqPeriodisSystem, reqPeriodbatchStatus=reqPeriodbatchStatus, reqPeriodsortField=reqPeriodsortField, reqPeriodsortAsc=reqPeriodsortAsc, reqPeriodgroupBy=reqPeriodgroupBy, reqPeriodlastRowNumber=reqPeriodlastRowNumber, reqPeriodmaxResults=reqPeriodmaxResults, reqPeriodtenantID=reqPeriodtenantID, reqPeriodwebsiteID=reqPeriodwebsiteID, reqPerioduserID=reqPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->notificationGetUnpreviewedCount: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let reqPeriodupdateLastPreviewedDateTime = true; // Boolean
    let reqPerioddatTypes = ; // array[Integer]
    let reqPeriodisGetUnreadOnly = true; // Boolean
    let reqPeriodisGetForAllApps = true; // Boolean
    let reqPeriodstatuses = ; // array[Integer]
    let reqPeriodstatusStrings = ; // array[String]
    let reqPeriodstatus = ; // array[String]
    let reqPeriodsearchString = reqPeriodsearchString_example; // String
    let reqPeriodsearchNameOnly = true; // Boolean
    let reqPeriodsearch = reqPeriodsearch_example; // String
    let reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPerioddatePeriod = reqPerioddatePeriod_example; // String
    let reqPeriodisExactMatch = true; // Boolean
    let reqPeriodisGetBasicInfo = true; // Boolean
    let reqPeriodincludeDeleted = true; // Boolean
    let reqPeriodincludeLogs = true; // Boolean
    let reqPeriodignoreID = 56; // Integer
    let reqPeriodparentID = 56; // Integer
    let reqPeriodgetCountOnly = true; // Boolean
    let reqPeriodtransactionTypeDatTypeID = 56; // Integer
    let reqPeriodcategoryID = 56; // Integer
    let reqPeriodadaptorID = 56; // Integer
    let reqPeriodcategoryIDs = ; // array[Integer]
    let reqPeriodbrandIDs = ; // array[Integer]
    let reqPeriodiDs = ; // array[Integer]
    let reqPeriodgUIDs = ; // array[String]
    let reqPeriodlinkedSupplierID = 56; // Integer
    let reqPeriodisApprovedForPOS = true; // Boolean
    let reqPeriodisApprovedForWeb = true; // Boolean
    let reqPeriodisApprovedForService = true; // Boolean
    let reqPeriodiD = 56; // Integer
    let reqPeriodisHierarchicalSort = true; // Boolean
    let reqPeriodtypes = ; // array[String]
    let reqPeriodisShowFavourites = true; // Boolean
    let reqPeriodisHidden = true; // Boolean
    let reqPeriodincludeSystemTasks = true; // Boolean
    let reqPeriodisSystem = true; // Boolean
    let reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String
    let reqPeriodsortField = reqPeriodsortField_example; // String
    let reqPeriodsortAsc = true; // Boolean
    let reqPeriodgroupBy = reqPeriodgroupBy_example; // String
    let reqPeriodlastRowNumber = 789; // Long
    let reqPeriodmaxResults = 56; // Integer
    let reqPeriodtenantID = 56; // Integer
    let reqPeriodwebsiteID = 56; // Integer
    let reqPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.notificationGetUnpreviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
req.updateLastPreviewedDateTime
Boolean
req.datTypes
array[Integer] (int32)
req.isGetUnreadOnly
Boolean
req.isGetForAllApps
Boolean
req.statuses
array[Integer] (int32)
req.statusStrings
array[String]
req.status
array[String]
req.searchString
String
req.searchNameOnly
Boolean
req.search
String
req.startDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
req.endDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
req.datePeriod
String
req.isExactMatch
Boolean
req.isGetBasicInfo
Boolean
req.includeDeleted
Boolean
req.includeLogs
Boolean
req.ignoreID
Integer (int32)
Format - int32.
req.parentID
Integer (int32)
Format - int32.
req.getCountOnly
Boolean
req.transactionTypeDatTypeID
Integer (int32)
Format - int32.
req.categoryID
Integer (int32)
Format - int32.
req.adaptorID
Integer (int32)
Format - int32.
req.categoryIDs
array[Integer] (int32)
req.brandIDs
array[Integer] (int32)
req.iDs
array[Integer] (int32)
req.gUIDs
array[String]
req.linkedSupplierID
Integer (int32)
Format - int32.
req.isApprovedForPOS
Boolean
req.isApprovedForWeb
Boolean
req.isApprovedForService
Boolean
req.iD
Integer (int32)
Format - int32.
req.isHierarchicalSort
Boolean
req.types
array[String]
req.isShowFavourites
Boolean
req.isHidden
Boolean
req.includeSystemTasks
Boolean
req.isSystem
Boolean
req.batchStatus
String
req.sortField
String
req.sortAsc
Boolean
req.groupBy
String
req.lastRowNumber
Long (int64)
Format - int64.
req.maxResults
Integer (int32)
Format - int32.
req.tenantID
Integer (int32)
Format - int32.
req.websiteID
Integer (int32)
Format - int32.
req.userID
Integer (int32)
Format - int32.

Responses


notificationGetUnpreviewedCountAndPointsBalance

Notification_GetUnpreviewedCountAndPointsBalance


/Notification/GetUnpreviewedCountAndPointsBalance

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/GetUnpreviewedCountAndPointsBalance" \
 -d '{
  "ParentID" : 5,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "IsExactMatch" : true,
  "CategoryIDs" : [ 9, 9 ],
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "TenantID" : 1,
  "IgnoreID" : 1,
  "IsShowFavourites" : true,
  "DatTypes" : [ 0, 0 ],
  "IsGetUnreadOnly" : true,
  "IsHierarchicalSort" : true,
  "UserID" : 7,
  "Search" : "Search",
  "SortAsc" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "LinkedSupplierID" : 4,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 2,
  "WebsiteID" : 6,
  "IsHidden" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 3, 3 ],
  "LastRowNumber" : 1,
  "MaxResults" : 1,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "IsGetForAllApps" : true,
  "UpdateLastPreviewedDateTime" : true,
  "Statuses" : [ 6, 6 ],
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 2, 2 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "TransactionTypeDatTypeID" : 5
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<NotificationSearchFilter>
  <UpdateLastPreviewedDateTime>true</UpdateLastPreviewedDateTime>
  <DatTypes>123</DatTypes>
  <IsGetUnreadOnly>true</IsGetUnreadOnly>
  <IsGetForAllApps>true</IsGetForAllApps>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</NotificationSearchFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        NotificationSearchFilter notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

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

final api_instance = DefaultApi();

final NotificationSearchFilter notificationSearchFilter = new NotificationSearchFilter(); // NotificationSearchFilter | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        NotificationSearchFilter notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

        try {
            Object result = apiInstance.notificationGetUnpreviewedCountAndPointsBalance(notificationSearchFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGetUnpreviewedCountAndPointsBalance");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
NotificationSearchFilter *notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_GetUnpreviewedCountAndPointsBalance
[apiInstance notificationGetUnpreviewedCountAndPointsBalanceWith:notificationSearchFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'notificationSearchFilter': {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {NotificationSearchFilter} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # NotificationSearchFilter |  (optional)

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

pub fn main() {
    let notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter

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

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

Scopes

Parameters

Body parameters
Name Description
notificationSearchFilter

Responses


notificationGetUnviewedCount

Notification_GetUnviewedCount


/Notification/GetUnviewedCount

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Notification/GetUnviewedCount?req.updateLastPreviewedDateTime=true&req.datTypes=&req.isGetUnreadOnly=true&req.isGetForAllApps=true&req.statuses=&req.statusStrings=&req.status=&req.searchString=reqPeriodsearchString_example&req.searchNameOnly=true&req.search=reqPeriodsearch_example&req.startDate=2013-10-20T19:20:30+01:00&req.endDate=2013-10-20T19:20:30+01:00&req.datePeriod=reqPerioddatePeriod_example&req.isExactMatch=true&req.isGetBasicInfo=true&req.includeDeleted=true&req.includeLogs=true&req.ignoreID=56&req.parentID=56&req.getCountOnly=true&req.transactionTypeDatTypeID=56&req.categoryID=56&req.adaptorID=56&req.categoryIDs=&req.brandIDs=&req.iDs=&req.gUIDs=&req.linkedSupplierID=56&req.isApprovedForPOS=true&req.isApprovedForWeb=true&req.isApprovedForService=true&req.iD=56&req.isHierarchicalSort=true&req.types=&req.isShowFavourites=true&req.isHidden=true&req.includeSystemTasks=true&req.isSystem=true&req.batchStatus=reqPeriodbatchStatus_example&req.sortField=reqPeriodsortField_example&req.sortAsc=true&req.groupBy=reqPeriodgroupBy_example&req.lastRowNumber=789&req.maxResults=56&req.tenantID=56&req.websiteID=56&req.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Boolean reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
        array[Integer] reqPerioddatTypes = ; // array[Integer] | 
        Boolean reqPeriodisGetUnreadOnly = true; // Boolean | 
        Boolean reqPeriodisGetForAllApps = true; // Boolean | 
        array[Integer] reqPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodstatus = ; // array[String] | 
        String reqPeriodsearchString = reqPeriodsearchString_example; // String | 
        Boolean reqPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodsearch = reqPeriodsearch_example; // String | 
        Date reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
        Boolean reqPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodignoreID = 56; // Integer | Format - int32.
        Integer reqPeriodparentID = 56; // Integer | Format - int32.
        Boolean reqPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer reqPeriodcategoryID = 56; // Integer | Format - int32.
        Integer reqPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] reqPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean reqPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | Format - int32.
        Boolean reqPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodtypes = ; // array[String] | 
        Boolean reqPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodisSystem = true; // Boolean | 
        String reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
        String reqPeriodsortField = reqPeriodsortField_example; // String | 
        Boolean reqPeriodsortAsc = true; // Boolean | 
        String reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
        Long reqPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer reqPeriodmaxResults = 56; // Integer | Format - int32.
        Integer reqPeriodtenantID = 56; // Integer | Format - int32.
        Integer reqPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer reqPerioduserID = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGetUnviewedCount");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean reqPeriodupdateLastPreviewedDateTime = new Boolean(); // Boolean | 
final array[Integer] reqPerioddatTypes = new array[Integer](); // array[Integer] | 
final Boolean reqPeriodisGetUnreadOnly = new Boolean(); // Boolean | 
final Boolean reqPeriodisGetForAllApps = new Boolean(); // Boolean | 
final array[Integer] reqPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] reqPeriodstatus = new array[String](); // array[String] | 
final String reqPeriodsearchString = new String(); // String | 
final Boolean reqPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String reqPeriodsearch = new String(); // String | 
final Date reqPeriodstartDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final Date reqPeriodendDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final String reqPerioddatePeriod = new String(); // String | 
final Boolean reqPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean reqPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer reqPeriodignoreID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodparentID = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer reqPeriodtransactionTypeDatTypeID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodcategoryID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodadaptorID = new Integer(); // Integer | Format - int32.
final array[Integer] reqPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] reqPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] reqPeriodgUIDs = new array[String](); // array[String] | 
final Integer reqPeriodlinkedSupplierID = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean reqPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean reqPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer reqPeriodiD = new Integer(); // Integer | Format - int32.
final Boolean reqPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] reqPeriodtypes = new array[String](); // array[String] | 
final Boolean reqPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean reqPeriodisHidden = new Boolean(); // Boolean | 
final Boolean reqPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean reqPeriodisSystem = new Boolean(); // Boolean | 
final String reqPeriodbatchStatus = new String(); // String | 
final String reqPeriodsortField = new String(); // String | 
final Boolean reqPeriodsortAsc = new Boolean(); // Boolean | 
final String reqPeriodgroupBy = new String(); // String | 
final Long reqPeriodlastRowNumber = new Long(); // Long | Format - int64.
final Integer reqPeriodmaxResults = new Integer(); // Integer | Format - int32.
final Integer reqPeriodtenantID = new Integer(); // Integer | Format - int32.
final Integer reqPeriodwebsiteID = new Integer(); // Integer | Format - int32.
final Integer reqPerioduserID = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->notificationGetUnviewedCount: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Boolean reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
        array[Integer] reqPerioddatTypes = ; // array[Integer] | 
        Boolean reqPeriodisGetUnreadOnly = true; // Boolean | 
        Boolean reqPeriodisGetForAllApps = true; // Boolean | 
        array[Integer] reqPeriodstatuses = ; // array[Integer] | 
        array[String] reqPeriodstatusStrings = ; // array[String] | 
        array[String] reqPeriodstatus = ; // array[String] | 
        String reqPeriodsearchString = reqPeriodsearchString_example; // String | 
        Boolean reqPeriodsearchNameOnly = true; // Boolean | 
        String reqPeriodsearch = reqPeriodsearch_example; // String | 
        Date reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
        Boolean reqPeriodisExactMatch = true; // Boolean | 
        Boolean reqPeriodisGetBasicInfo = true; // Boolean | 
        Boolean reqPeriodincludeDeleted = true; // Boolean | 
        Boolean reqPeriodincludeLogs = true; // Boolean | 
        Integer reqPeriodignoreID = 56; // Integer | Format - int32.
        Integer reqPeriodparentID = 56; // Integer | Format - int32.
        Boolean reqPeriodgetCountOnly = true; // Boolean | 
        Integer reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer reqPeriodcategoryID = 56; // Integer | Format - int32.
        Integer reqPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] reqPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] reqPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] reqPeriodiDs = ; // array[Integer] | 
        array[String] reqPeriodgUIDs = ; // array[String] | 
        Integer reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean reqPeriodisApprovedForPOS = true; // Boolean | 
        Boolean reqPeriodisApprovedForWeb = true; // Boolean | 
        Boolean reqPeriodisApprovedForService = true; // Boolean | 
        Integer reqPeriodiD = 56; // Integer | Format - int32.
        Boolean reqPeriodisHierarchicalSort = true; // Boolean | 
        array[String] reqPeriodtypes = ; // array[String] | 
        Boolean reqPeriodisShowFavourites = true; // Boolean | 
        Boolean reqPeriodisHidden = true; // Boolean | 
        Boolean reqPeriodincludeSystemTasks = true; // Boolean | 
        Boolean reqPeriodisSystem = true; // Boolean | 
        String reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
        String reqPeriodsortField = reqPeriodsortField_example; // String | 
        Boolean reqPeriodsortAsc = true; // Boolean | 
        String reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
        Long reqPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer reqPeriodmaxResults = 56; // Integer | Format - int32.
        Integer reqPeriodtenantID = 56; // Integer | Format - int32.
        Integer reqPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer reqPerioduserID = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationGetUnviewedCount");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Boolean *reqPeriodupdateLastPreviewedDateTime = true; //  (optional) (default to null)
array[Integer] *reqPerioddatTypes = ; //  (optional) (default to null)
Boolean *reqPeriodisGetUnreadOnly = true; //  (optional) (default to null)
Boolean *reqPeriodisGetForAllApps = true; //  (optional) (default to null)
array[Integer] *reqPeriodstatuses = ; //  (optional) (default to null)
array[String] *reqPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *reqPeriodstatus = ; //  (optional) (default to null)
String *reqPeriodsearchString = reqPeriodsearchString_example; //  (optional) (default to null)
Boolean *reqPeriodsearchNameOnly = true; //  (optional) (default to null)
String *reqPeriodsearch = reqPeriodsearch_example; //  (optional) (default to null)
Date *reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
Date *reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
String *reqPerioddatePeriod = reqPerioddatePeriod_example; //  (optional) (default to null)
Boolean *reqPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *reqPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *reqPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *reqPeriodincludeLogs = true; //  (optional) (default to null)
Integer *reqPeriodignoreID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodparentID = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *reqPeriodtransactionTypeDatTypeID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodcategoryID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodadaptorID = 56; // Format - int32. (optional) (default to null)
array[Integer] *reqPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *reqPeriodiDs = ; //  (optional) (default to null)
array[String] *reqPeriodgUIDs = ; //  (optional) (default to null)
Integer *reqPeriodlinkedSupplierID = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *reqPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *reqPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *reqPeriodiD = 56; // Format - int32. (optional) (default to null)
Boolean *reqPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *reqPeriodtypes = ; //  (optional) (default to null)
Boolean *reqPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *reqPeriodisHidden = true; //  (optional) (default to null)
Boolean *reqPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *reqPeriodisSystem = true; //  (optional) (default to null)
String *reqPeriodbatchStatus = reqPeriodbatchStatus_example; //  (optional) (default to null)
String *reqPeriodsortField = reqPeriodsortField_example; //  (optional) (default to null)
Boolean *reqPeriodsortAsc = true; //  (optional) (default to null)
String *reqPeriodgroupBy = reqPeriodgroupBy_example; //  (optional) (default to null)
Long *reqPeriodlastRowNumber = 789; // Format - int64. (optional) (default to null)
Integer *reqPeriodmaxResults = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodtenantID = 56; // Format - int32. (optional) (default to null)
Integer *reqPeriodwebsiteID = 56; // Format - int32. (optional) (default to null)
Integer *reqPerioduserID = 56; // Format - int32. (optional) (default to null)

// Notification_GetUnviewedCount
[apiInstance notificationGetUnviewedCountWith:reqPeriodupdateLastPreviewedDateTime
    reqPerioddatTypes:reqPerioddatTypes
    reqPeriodisGetUnreadOnly:reqPeriodisGetUnreadOnly
    reqPeriodisGetForAllApps:reqPeriodisGetForAllApps
    reqPeriodstatuses:reqPeriodstatuses
    reqPeriodstatusStrings:reqPeriodstatusStrings
    reqPeriodstatus:reqPeriodstatus
    reqPeriodsearchString:reqPeriodsearchString
    reqPeriodsearchNameOnly:reqPeriodsearchNameOnly
    reqPeriodsearch:reqPeriodsearch
    reqPeriodstartDate:reqPeriodstartDate
    reqPeriodendDate:reqPeriodendDate
    reqPerioddatePeriod:reqPerioddatePeriod
    reqPeriodisExactMatch:reqPeriodisExactMatch
    reqPeriodisGetBasicInfo:reqPeriodisGetBasicInfo
    reqPeriodincludeDeleted:reqPeriodincludeDeleted
    reqPeriodincludeLogs:reqPeriodincludeLogs
    reqPeriodignoreID:reqPeriodignoreID
    reqPeriodparentID:reqPeriodparentID
    reqPeriodgetCountOnly:reqPeriodgetCountOnly
    reqPeriodtransactionTypeDatTypeID:reqPeriodtransactionTypeDatTypeID
    reqPeriodcategoryID:reqPeriodcategoryID
    reqPeriodadaptorID:reqPeriodadaptorID
    reqPeriodcategoryIDs:reqPeriodcategoryIDs
    reqPeriodbrandIDs:reqPeriodbrandIDs
    reqPeriodiDs:reqPeriodiDs
    reqPeriodgUIDs:reqPeriodgUIDs
    reqPeriodlinkedSupplierID:reqPeriodlinkedSupplierID
    reqPeriodisApprovedForPOS:reqPeriodisApprovedForPOS
    reqPeriodisApprovedForWeb:reqPeriodisApprovedForWeb
    reqPeriodisApprovedForService:reqPeriodisApprovedForService
    reqPeriodiD:reqPeriodiD
    reqPeriodisHierarchicalSort:reqPeriodisHierarchicalSort
    reqPeriodtypes:reqPeriodtypes
    reqPeriodisShowFavourites:reqPeriodisShowFavourites
    reqPeriodisHidden:reqPeriodisHidden
    reqPeriodincludeSystemTasks:reqPeriodincludeSystemTasks
    reqPeriodisSystem:reqPeriodisSystem
    reqPeriodbatchStatus:reqPeriodbatchStatus
    reqPeriodsortField:reqPeriodsortField
    reqPeriodsortAsc:reqPeriodsortAsc
    reqPeriodgroupBy:reqPeriodgroupBy
    reqPeriodlastRowNumber:reqPeriodlastRowNumber
    reqPeriodmaxResults:reqPeriodmaxResults
    reqPeriodtenantID:reqPeriodtenantID
    reqPeriodwebsiteID:reqPeriodwebsiteID
    reqPerioduserID:reqPerioduserID
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'reqPeriodupdateLastPreviewedDateTime': true, // {Boolean} 
  'reqPerioddatTypes': , // {array[Integer]} 
  'reqPeriodisGetUnreadOnly': true, // {Boolean} 
  'reqPeriodisGetForAllApps': true, // {Boolean} 
  'reqPeriodstatuses': , // {array[Integer]} 
  'reqPeriodstatusStrings': , // {array[String]} 
  'reqPeriodstatus': , // {array[String]} 
  'reqPeriodsearchString': reqPeriodsearchString_example, // {String} 
  'reqPeriodsearchNameOnly': true, // {Boolean} 
  'reqPeriodsearch': reqPeriodsearch_example, // {String} 
  'reqPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'reqPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'reqPerioddatePeriod': reqPerioddatePeriod_example, // {String} 
  'reqPeriodisExactMatch': true, // {Boolean} 
  'reqPeriodisGetBasicInfo': true, // {Boolean} 
  'reqPeriodincludeDeleted': true, // {Boolean} 
  'reqPeriodincludeLogs': true, // {Boolean} 
  'reqPeriodignoreID': 56, // {Integer} Format - int32.
  'reqPeriodparentID': 56, // {Integer} Format - int32.
  'reqPeriodgetCountOnly': true, // {Boolean} 
  'reqPeriodtransactionTypeDatTypeID': 56, // {Integer} Format - int32.
  'reqPeriodcategoryID': 56, // {Integer} Format - int32.
  'reqPeriodadaptorID': 56, // {Integer} Format - int32.
  'reqPeriodcategoryIDs': , // {array[Integer]} 
  'reqPeriodbrandIDs': , // {array[Integer]} 
  'reqPeriodiDs': , // {array[Integer]} 
  'reqPeriodgUIDs': , // {array[String]} 
  'reqPeriodlinkedSupplierID': 56, // {Integer} Format - int32.
  'reqPeriodisApprovedForPOS': true, // {Boolean} 
  'reqPeriodisApprovedForWeb': true, // {Boolean} 
  'reqPeriodisApprovedForService': true, // {Boolean} 
  'reqPeriodiD': 56, // {Integer} Format - int32.
  'reqPeriodisHierarchicalSort': true, // {Boolean} 
  'reqPeriodtypes': , // {array[String]} 
  'reqPeriodisShowFavourites': true, // {Boolean} 
  'reqPeriodisHidden': true, // {Boolean} 
  'reqPeriodincludeSystemTasks': true, // {Boolean} 
  'reqPeriodisSystem': true, // {Boolean} 
  'reqPeriodbatchStatus': reqPeriodbatchStatus_example, // {String} 
  'reqPeriodsortField': reqPeriodsortField_example, // {String} 
  'reqPeriodsortAsc': true, // {Boolean} 
  'reqPeriodgroupBy': reqPeriodgroupBy_example, // {String} 
  'reqPeriodlastRowNumber': 789, // {Long} Format - int64.
  'reqPeriodmaxResults': 56, // {Integer} Format - int32.
  'reqPeriodtenantID': 56, // {Integer} Format - int32.
  'reqPeriodwebsiteID': 56, // {Integer} Format - int32.
  'reqPerioduserID': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var reqPeriodupdateLastPreviewedDateTime = true;  // Boolean |  (optional)  (default to null)
            var reqPerioddatTypes = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodisGetUnreadOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisGetForAllApps = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodsearchString = reqPeriodsearchString_example;  // String |  (optional)  (default to null)
            var reqPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodsearch = reqPeriodsearch_example;  // String |  (optional)  (default to null)
            var reqPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var reqPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var reqPerioddatePeriod = reqPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var reqPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodignoreID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodparentID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodtransactionTypeDatTypeID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodcategoryID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodadaptorID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var reqPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodlinkedSupplierID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodiD = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var reqPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodbatchStatus = reqPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var reqPeriodsortField = reqPeriodsortField_example;  // String |  (optional)  (default to null)
            var reqPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var reqPeriodgroupBy = reqPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var reqPeriodlastRowNumber = 789;  // Long | Format - int64. (optional)  (default to null)
            var reqPeriodmaxResults = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodtenantID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPeriodwebsiteID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var reqPerioduserID = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // Notification_GetUnviewedCount
                Object result = apiInstance.notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.notificationGetUnviewedCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$reqPeriodupdateLastPreviewedDateTime = true; // Boolean | 
$reqPerioddatTypes = ; // array[Integer] | 
$reqPeriodisGetUnreadOnly = true; // Boolean | 
$reqPeriodisGetForAllApps = true; // Boolean | 
$reqPeriodstatuses = ; // array[Integer] | 
$reqPeriodstatusStrings = ; // array[String] | 
$reqPeriodstatus = ; // array[String] | 
$reqPeriodsearchString = reqPeriodsearchString_example; // String | 
$reqPeriodsearchNameOnly = true; // Boolean | 
$reqPeriodsearch = reqPeriodsearch_example; // String | 
$reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$reqPerioddatePeriod = reqPerioddatePeriod_example; // String | 
$reqPeriodisExactMatch = true; // Boolean | 
$reqPeriodisGetBasicInfo = true; // Boolean | 
$reqPeriodincludeDeleted = true; // Boolean | 
$reqPeriodincludeLogs = true; // Boolean | 
$reqPeriodignoreID = 56; // Integer | Format - int32.
$reqPeriodparentID = 56; // Integer | Format - int32.
$reqPeriodgetCountOnly = true; // Boolean | 
$reqPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
$reqPeriodcategoryID = 56; // Integer | Format - int32.
$reqPeriodadaptorID = 56; // Integer | Format - int32.
$reqPeriodcategoryIDs = ; // array[Integer] | 
$reqPeriodbrandIDs = ; // array[Integer] | 
$reqPeriodiDs = ; // array[Integer] | 
$reqPeriodgUIDs = ; // array[String] | 
$reqPeriodlinkedSupplierID = 56; // Integer | Format - int32.
$reqPeriodisApprovedForPOS = true; // Boolean | 
$reqPeriodisApprovedForWeb = true; // Boolean | 
$reqPeriodisApprovedForService = true; // Boolean | 
$reqPeriodiD = 56; // Integer | Format - int32.
$reqPeriodisHierarchicalSort = true; // Boolean | 
$reqPeriodtypes = ; // array[String] | 
$reqPeriodisShowFavourites = true; // Boolean | 
$reqPeriodisHidden = true; // Boolean | 
$reqPeriodincludeSystemTasks = true; // Boolean | 
$reqPeriodisSystem = true; // Boolean | 
$reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String | 
$reqPeriodsortField = reqPeriodsortField_example; // String | 
$reqPeriodsortAsc = true; // Boolean | 
$reqPeriodgroupBy = reqPeriodgroupBy_example; // String | 
$reqPeriodlastRowNumber = 789; // Long | Format - int64.
$reqPeriodmaxResults = 56; // Integer | Format - int32.
$reqPeriodtenantID = 56; // Integer | Format - int32.
$reqPeriodwebsiteID = 56; // Integer | Format - int32.
$reqPerioduserID = 56; // Integer | Format - int32.

try {
    $result = $api_instance->notificationGetUnviewedCount($reqPeriodupdateLastPreviewedDateTime, $reqPerioddatTypes, $reqPeriodisGetUnreadOnly, $reqPeriodisGetForAllApps, $reqPeriodstatuses, $reqPeriodstatusStrings, $reqPeriodstatus, $reqPeriodsearchString, $reqPeriodsearchNameOnly, $reqPeriodsearch, $reqPeriodstartDate, $reqPeriodendDate, $reqPerioddatePeriod, $reqPeriodisExactMatch, $reqPeriodisGetBasicInfo, $reqPeriodincludeDeleted, $reqPeriodincludeLogs, $reqPeriodignoreID, $reqPeriodparentID, $reqPeriodgetCountOnly, $reqPeriodtransactionTypeDatTypeID, $reqPeriodcategoryID, $reqPeriodadaptorID, $reqPeriodcategoryIDs, $reqPeriodbrandIDs, $reqPeriodiDs, $reqPeriodgUIDs, $reqPeriodlinkedSupplierID, $reqPeriodisApprovedForPOS, $reqPeriodisApprovedForWeb, $reqPeriodisApprovedForService, $reqPeriodiD, $reqPeriodisHierarchicalSort, $reqPeriodtypes, $reqPeriodisShowFavourites, $reqPeriodisHidden, $reqPeriodincludeSystemTasks, $reqPeriodisSystem, $reqPeriodbatchStatus, $reqPeriodsortField, $reqPeriodsortAsc, $reqPeriodgroupBy, $reqPeriodlastRowNumber, $reqPeriodmaxResults, $reqPeriodtenantID, $reqPeriodwebsiteID, $reqPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->notificationGetUnviewedCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $reqPeriodupdateLastPreviewedDateTime = true; # Boolean | 
my $reqPerioddatTypes = []; # array[Integer] | 
my $reqPeriodisGetUnreadOnly = true; # Boolean | 
my $reqPeriodisGetForAllApps = true; # Boolean | 
my $reqPeriodstatuses = []; # array[Integer] | 
my $reqPeriodstatusStrings = []; # array[String] | 
my $reqPeriodstatus = []; # array[String] | 
my $reqPeriodsearchString = reqPeriodsearchString_example; # String | 
my $reqPeriodsearchNameOnly = true; # Boolean | 
my $reqPeriodsearch = reqPeriodsearch_example; # String | 
my $reqPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $reqPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $reqPerioddatePeriod = reqPerioddatePeriod_example; # String | 
my $reqPeriodisExactMatch = true; # Boolean | 
my $reqPeriodisGetBasicInfo = true; # Boolean | 
my $reqPeriodincludeDeleted = true; # Boolean | 
my $reqPeriodincludeLogs = true; # Boolean | 
my $reqPeriodignoreID = 56; # Integer | Format - int32.
my $reqPeriodparentID = 56; # Integer | Format - int32.
my $reqPeriodgetCountOnly = true; # Boolean | 
my $reqPeriodtransactionTypeDatTypeID = 56; # Integer | Format - int32.
my $reqPeriodcategoryID = 56; # Integer | Format - int32.
my $reqPeriodadaptorID = 56; # Integer | Format - int32.
my $reqPeriodcategoryIDs = []; # array[Integer] | 
my $reqPeriodbrandIDs = []; # array[Integer] | 
my $reqPeriodiDs = []; # array[Integer] | 
my $reqPeriodgUIDs = []; # array[String] | 
my $reqPeriodlinkedSupplierID = 56; # Integer | Format - int32.
my $reqPeriodisApprovedForPOS = true; # Boolean | 
my $reqPeriodisApprovedForWeb = true; # Boolean | 
my $reqPeriodisApprovedForService = true; # Boolean | 
my $reqPeriodiD = 56; # Integer | Format - int32.
my $reqPeriodisHierarchicalSort = true; # Boolean | 
my $reqPeriodtypes = []; # array[String] | 
my $reqPeriodisShowFavourites = true; # Boolean | 
my $reqPeriodisHidden = true; # Boolean | 
my $reqPeriodincludeSystemTasks = true; # Boolean | 
my $reqPeriodisSystem = true; # Boolean | 
my $reqPeriodbatchStatus = reqPeriodbatchStatus_example; # String | 
my $reqPeriodsortField = reqPeriodsortField_example; # String | 
my $reqPeriodsortAsc = true; # Boolean | 
my $reqPeriodgroupBy = reqPeriodgroupBy_example; # String | 
my $reqPeriodlastRowNumber = 789; # Long | Format - int64.
my $reqPeriodmaxResults = 56; # Integer | Format - int32.
my $reqPeriodtenantID = 56; # Integer | Format - int32.
my $reqPeriodwebsiteID = 56; # Integer | Format - int32.
my $reqPerioduserID = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime => $reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes => $reqPerioddatTypes, reqPeriodisGetUnreadOnly => $reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps => $reqPeriodisGetForAllApps, reqPeriodstatuses => $reqPeriodstatuses, reqPeriodstatusStrings => $reqPeriodstatusStrings, reqPeriodstatus => $reqPeriodstatus, reqPeriodsearchString => $reqPeriodsearchString, reqPeriodsearchNameOnly => $reqPeriodsearchNameOnly, reqPeriodsearch => $reqPeriodsearch, reqPeriodstartDate => $reqPeriodstartDate, reqPeriodendDate => $reqPeriodendDate, reqPerioddatePeriod => $reqPerioddatePeriod, reqPeriodisExactMatch => $reqPeriodisExactMatch, reqPeriodisGetBasicInfo => $reqPeriodisGetBasicInfo, reqPeriodincludeDeleted => $reqPeriodincludeDeleted, reqPeriodincludeLogs => $reqPeriodincludeLogs, reqPeriodignoreID => $reqPeriodignoreID, reqPeriodparentID => $reqPeriodparentID, reqPeriodgetCountOnly => $reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID => $reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID => $reqPeriodcategoryID, reqPeriodadaptorID => $reqPeriodadaptorID, reqPeriodcategoryIDs => $reqPeriodcategoryIDs, reqPeriodbrandIDs => $reqPeriodbrandIDs, reqPeriodiDs => $reqPeriodiDs, reqPeriodgUIDs => $reqPeriodgUIDs, reqPeriodlinkedSupplierID => $reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS => $reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb => $reqPeriodisApprovedForWeb, reqPeriodisApprovedForService => $reqPeriodisApprovedForService, reqPeriodiD => $reqPeriodiD, reqPeriodisHierarchicalSort => $reqPeriodisHierarchicalSort, reqPeriodtypes => $reqPeriodtypes, reqPeriodisShowFavourites => $reqPeriodisShowFavourites, reqPeriodisHidden => $reqPeriodisHidden, reqPeriodincludeSystemTasks => $reqPeriodincludeSystemTasks, reqPeriodisSystem => $reqPeriodisSystem, reqPeriodbatchStatus => $reqPeriodbatchStatus, reqPeriodsortField => $reqPeriodsortField, reqPeriodsortAsc => $reqPeriodsortAsc, reqPeriodgroupBy => $reqPeriodgroupBy, reqPeriodlastRowNumber => $reqPeriodlastRowNumber, reqPeriodmaxResults => $reqPeriodmaxResults, reqPeriodtenantID => $reqPeriodtenantID, reqPeriodwebsiteID => $reqPeriodwebsiteID, reqPerioduserID => $reqPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->notificationGetUnviewedCount: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
reqPeriodupdateLastPreviewedDateTime = true # Boolean |  (optional) (default to null)
reqPerioddatTypes =  # array[Integer] |  (optional) (default to null)
reqPeriodisGetUnreadOnly = true # Boolean |  (optional) (default to null)
reqPeriodisGetForAllApps = true # Boolean |  (optional) (default to null)
reqPeriodstatuses =  # array[Integer] |  (optional) (default to null)
reqPeriodstatusStrings =  # array[String] |  (optional) (default to null)
reqPeriodstatus =  # array[String] |  (optional) (default to null)
reqPeriodsearchString = reqPeriodsearchString_example # String |  (optional) (default to null)
reqPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
reqPeriodsearch = reqPeriodsearch_example # String |  (optional) (default to null)
reqPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
reqPeriodendDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
reqPerioddatePeriod = reqPerioddatePeriod_example # String |  (optional) (default to null)
reqPeriodisExactMatch = true # Boolean |  (optional) (default to null)
reqPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
reqPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
reqPeriodincludeLogs = true # Boolean |  (optional) (default to null)
reqPeriodignoreID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodparentID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
reqPeriodtransactionTypeDatTypeID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodcategoryID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodadaptorID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
reqPeriodiDs =  # array[Integer] |  (optional) (default to null)
reqPeriodgUIDs =  # array[String] |  (optional) (default to null)
reqPeriodlinkedSupplierID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
reqPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
reqPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
reqPeriodiD = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
reqPeriodtypes =  # array[String] |  (optional) (default to null)
reqPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
reqPeriodisHidden = true # Boolean |  (optional) (default to null)
reqPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
reqPeriodisSystem = true # Boolean |  (optional) (default to null)
reqPeriodbatchStatus = reqPeriodbatchStatus_example # String |  (optional) (default to null)
reqPeriodsortField = reqPeriodsortField_example # String |  (optional) (default to null)
reqPeriodsortAsc = true # Boolean |  (optional) (default to null)
reqPeriodgroupBy = reqPeriodgroupBy_example # String |  (optional) (default to null)
reqPeriodlastRowNumber = 789 # Long | Format - int64. (optional) (default to null)
reqPeriodmaxResults = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodtenantID = 56 # Integer | Format - int32. (optional) (default to null)
reqPeriodwebsiteID = 56 # Integer | Format - int32. (optional) (default to null)
reqPerioduserID = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # Notification_GetUnviewedCount
    api_response = api_instance.notification_get_unviewed_count(reqPeriodupdateLastPreviewedDateTime=reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes=reqPerioddatTypes, reqPeriodisGetUnreadOnly=reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps=reqPeriodisGetForAllApps, reqPeriodstatuses=reqPeriodstatuses, reqPeriodstatusStrings=reqPeriodstatusStrings, reqPeriodstatus=reqPeriodstatus, reqPeriodsearchString=reqPeriodsearchString, reqPeriodsearchNameOnly=reqPeriodsearchNameOnly, reqPeriodsearch=reqPeriodsearch, reqPeriodstartDate=reqPeriodstartDate, reqPeriodendDate=reqPeriodendDate, reqPerioddatePeriod=reqPerioddatePeriod, reqPeriodisExactMatch=reqPeriodisExactMatch, reqPeriodisGetBasicInfo=reqPeriodisGetBasicInfo, reqPeriodincludeDeleted=reqPeriodincludeDeleted, reqPeriodincludeLogs=reqPeriodincludeLogs, reqPeriodignoreID=reqPeriodignoreID, reqPeriodparentID=reqPeriodparentID, reqPeriodgetCountOnly=reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID=reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID=reqPeriodcategoryID, reqPeriodadaptorID=reqPeriodadaptorID, reqPeriodcategoryIDs=reqPeriodcategoryIDs, reqPeriodbrandIDs=reqPeriodbrandIDs, reqPeriodiDs=reqPeriodiDs, reqPeriodgUIDs=reqPeriodgUIDs, reqPeriodlinkedSupplierID=reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS=reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb=reqPeriodisApprovedForWeb, reqPeriodisApprovedForService=reqPeriodisApprovedForService, reqPeriodiD=reqPeriodiD, reqPeriodisHierarchicalSort=reqPeriodisHierarchicalSort, reqPeriodtypes=reqPeriodtypes, reqPeriodisShowFavourites=reqPeriodisShowFavourites, reqPeriodisHidden=reqPeriodisHidden, reqPeriodincludeSystemTasks=reqPeriodincludeSystemTasks, reqPeriodisSystem=reqPeriodisSystem, reqPeriodbatchStatus=reqPeriodbatchStatus, reqPeriodsortField=reqPeriodsortField, reqPeriodsortAsc=reqPeriodsortAsc, reqPeriodgroupBy=reqPeriodgroupBy, reqPeriodlastRowNumber=reqPeriodlastRowNumber, reqPeriodmaxResults=reqPeriodmaxResults, reqPeriodtenantID=reqPeriodtenantID, reqPeriodwebsiteID=reqPeriodwebsiteID, reqPerioduserID=reqPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->notificationGetUnviewedCount: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let reqPeriodupdateLastPreviewedDateTime = true; // Boolean
    let reqPerioddatTypes = ; // array[Integer]
    let reqPeriodisGetUnreadOnly = true; // Boolean
    let reqPeriodisGetForAllApps = true; // Boolean
    let reqPeriodstatuses = ; // array[Integer]
    let reqPeriodstatusStrings = ; // array[String]
    let reqPeriodstatus = ; // array[String]
    let reqPeriodsearchString = reqPeriodsearchString_example; // String
    let reqPeriodsearchNameOnly = true; // Boolean
    let reqPeriodsearch = reqPeriodsearch_example; // String
    let reqPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let reqPerioddatePeriod = reqPerioddatePeriod_example; // String
    let reqPeriodisExactMatch = true; // Boolean
    let reqPeriodisGetBasicInfo = true; // Boolean
    let reqPeriodincludeDeleted = true; // Boolean
    let reqPeriodincludeLogs = true; // Boolean
    let reqPeriodignoreID = 56; // Integer
    let reqPeriodparentID = 56; // Integer
    let reqPeriodgetCountOnly = true; // Boolean
    let reqPeriodtransactionTypeDatTypeID = 56; // Integer
    let reqPeriodcategoryID = 56; // Integer
    let reqPeriodadaptorID = 56; // Integer
    let reqPeriodcategoryIDs = ; // array[Integer]
    let reqPeriodbrandIDs = ; // array[Integer]
    let reqPeriodiDs = ; // array[Integer]
    let reqPeriodgUIDs = ; // array[String]
    let reqPeriodlinkedSupplierID = 56; // Integer
    let reqPeriodisApprovedForPOS = true; // Boolean
    let reqPeriodisApprovedForWeb = true; // Boolean
    let reqPeriodisApprovedForService = true; // Boolean
    let reqPeriodiD = 56; // Integer
    let reqPeriodisHierarchicalSort = true; // Boolean
    let reqPeriodtypes = ; // array[String]
    let reqPeriodisShowFavourites = true; // Boolean
    let reqPeriodisHidden = true; // Boolean
    let reqPeriodincludeSystemTasks = true; // Boolean
    let reqPeriodisSystem = true; // Boolean
    let reqPeriodbatchStatus = reqPeriodbatchStatus_example; // String
    let reqPeriodsortField = reqPeriodsortField_example; // String
    let reqPeriodsortAsc = true; // Boolean
    let reqPeriodgroupBy = reqPeriodgroupBy_example; // String
    let reqPeriodlastRowNumber = 789; // Long
    let reqPeriodmaxResults = 56; // Integer
    let reqPeriodtenantID = 56; // Integer
    let reqPeriodwebsiteID = 56; // Integer
    let reqPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.notificationGetUnviewedCount(reqPeriodupdateLastPreviewedDateTime, reqPerioddatTypes, reqPeriodisGetUnreadOnly, reqPeriodisGetForAllApps, reqPeriodstatuses, reqPeriodstatusStrings, reqPeriodstatus, reqPeriodsearchString, reqPeriodsearchNameOnly, reqPeriodsearch, reqPeriodstartDate, reqPeriodendDate, reqPerioddatePeriod, reqPeriodisExactMatch, reqPeriodisGetBasicInfo, reqPeriodincludeDeleted, reqPeriodincludeLogs, reqPeriodignoreID, reqPeriodparentID, reqPeriodgetCountOnly, reqPeriodtransactionTypeDatTypeID, reqPeriodcategoryID, reqPeriodadaptorID, reqPeriodcategoryIDs, reqPeriodbrandIDs, reqPeriodiDs, reqPeriodgUIDs, reqPeriodlinkedSupplierID, reqPeriodisApprovedForPOS, reqPeriodisApprovedForWeb, reqPeriodisApprovedForService, reqPeriodiD, reqPeriodisHierarchicalSort, reqPeriodtypes, reqPeriodisShowFavourites, reqPeriodisHidden, reqPeriodincludeSystemTasks, reqPeriodisSystem, reqPeriodbatchStatus, reqPeriodsortField, reqPeriodsortAsc, reqPeriodgroupBy, reqPeriodlastRowNumber, reqPeriodmaxResults, reqPeriodtenantID, reqPeriodwebsiteID, reqPerioduserID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
req.updateLastPreviewedDateTime
Boolean
req.datTypes
array[Integer] (int32)
req.isGetUnreadOnly
Boolean
req.isGetForAllApps
Boolean
req.statuses
array[Integer] (int32)
req.statusStrings
array[String]
req.status
array[String]
req.searchString
String
req.searchNameOnly
Boolean
req.search
String
req.startDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
req.endDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
req.datePeriod
String
req.isExactMatch
Boolean
req.isGetBasicInfo
Boolean
req.includeDeleted
Boolean
req.includeLogs
Boolean
req.ignoreID
Integer (int32)
Format - int32.
req.parentID
Integer (int32)
Format - int32.
req.getCountOnly
Boolean
req.transactionTypeDatTypeID
Integer (int32)
Format - int32.
req.categoryID
Integer (int32)
Format - int32.
req.adaptorID
Integer (int32)
Format - int32.
req.categoryIDs
array[Integer] (int32)
req.brandIDs
array[Integer] (int32)
req.iDs
array[Integer] (int32)
req.gUIDs
array[String]
req.linkedSupplierID
Integer (int32)
Format - int32.
req.isApprovedForPOS
Boolean
req.isApprovedForWeb
Boolean
req.isApprovedForService
Boolean
req.iD
Integer (int32)
Format - int32.
req.isHierarchicalSort
Boolean
req.types
array[String]
req.isShowFavourites
Boolean
req.isHidden
Boolean
req.includeSystemTasks
Boolean
req.isSystem
Boolean
req.batchStatus
String
req.sortField
String
req.sortAsc
Boolean
req.groupBy
String
req.lastRowNumber
Long (int64)
Format - int64.
req.maxResults
Integer (int32)
Format - int32.
req.tenantID
Integer (int32)
Format - int32.
req.websiteID
Integer (int32)
Format - int32.
req.userID
Integer (int32)
Format - int32.

Responses


notificationMarkAllAsRead

Notification_MarkAllAsRead


/Notification/MarkAllAsRead

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Notification/MarkAllAsRead"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            Object result = apiInstance.notificationMarkAllAsRead();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationMarkAllAsRead");
            e.printStackTrace();
        }
    }
}


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

// Notification_MarkAllAsRead
[apiInstance notificationMarkAllAsReadWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


notificationMarkAsRead

Notification_MarkAsRead


/Notification/MarkAsRead

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/MarkAsRead" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListInt32 actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

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

final api_instance = DefaultApi();

final ActionRequestListInt32 actionRequestListInt32 = new ActionRequestListInt32(); // ActionRequestListInt32 | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestListInt32 actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

        try {
            Object result = apiInstance.notificationMarkAsRead(actionRequestListInt32);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationMarkAsRead");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestListInt32 *actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_MarkAsRead
[apiInstance notificationMarkAsReadWith:actionRequestListInt32
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'actionRequestListInt32': {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestListInt32} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestListInt32 |  (optional)

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

pub fn main() {
    let actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32

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

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

Scopes

Parameters

Body parameters
Name Description
actionRequestListInt32

Responses


notificationSave

Notification_Save


/Notification/Save

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/Save" \
 -d '{
  "WebsiteID" : 9,
  "CreatedDateTimeString" : "CreatedDateTimeString",
  "Message" : "Message",
  "ActivityDocumentID" : 5,
  "IsActive" : true,
  "RecipientLastName" : "RecipientLastName",
  "DocumentID" : 1,
  "RedirectURL" : "RedirectURL",
  "RecipientFirstName" : "RecipientFirstName",
  "DatTypeID" : 6,
  "IsRead" : true,
  "ModuleID" : 5,
  "TenantID" : 7,
  "ActivityDatTypeID" : 2,
  "UserGlobalID" : "00000000-0000-0000-0000-000000000000",
  "UserID" : 3,
  "NotificationType" : "NotificationType",
  "NotificationMethod" : "NotificationMethod",
  "CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "ID" : 0,
  "ToEmailAddresses" : "ToEmailAddresses",
  "CreatedDateTime" : "2000-01-23T04:56:07.000+00:00"
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<NotificationDetails>
  <ID>123</ID>
  <DatTypeID>123</DatTypeID>
  <DocumentID>123</DocumentID>
  <Message>aeiou</Message>
  <RedirectURL>aeiou</RedirectURL>
  <ToEmailAddresses>aeiou</ToEmailAddresses>
  <RecipientFirstName>aeiou</RecipientFirstName>
  <RecipientLastName>aeiou</RecipientLastName>
  <CreatedDateTime>2000-01-23T04:56:07.000Z</CreatedDateTime>
  <CreatedDateTimeString>aeiou</CreatedDateTimeString>
  <IsRead>true</IsRead>
  <IsActive>true</IsActive>
  <ModuleID>123</ModuleID>
  <NotificationType>aeiou</NotificationType>
  <NotificationMethod>aeiou</NotificationMethod>
  <UserGlobalID>00000000-0000-0000-0000-000000000000</UserGlobalID>
  <ActivityDocumentID>123</ActivityDocumentID>
  <ActivityDatTypeID>123</ActivityDatTypeID>
  <CreatedDateTime_utc>2000-01-23T04:56:07.000Z</CreatedDateTime_utc>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</NotificationDetails>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        NotificationDetails notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationDetails | 

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

final api_instance = DefaultApi();

final NotificationDetails notificationDetails = new NotificationDetails(); // NotificationDetails | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        NotificationDetails notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationDetails | 

        try {
            Object result = apiInstance.notificationSave(notificationDetails);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationSave");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
NotificationDetails *notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_Save
[apiInstance notificationSaveWith:notificationDetails
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'notificationDetails': {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0} // {NotificationDetails} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationDetails | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0} # NotificationDetails |  (optional)

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

pub fn main() {
    let notificationDetails = {"ID":0,"DatTypeID":0,"DocumentID":0,"Message":"string","RedirectURL":"string","ToEmailAddresses":"string","RecipientFirstName":"string","RecipientLastName":"string","CreatedDateTime":"string","CreatedDateTimeString":"string","IsRead":true,"IsActive":true,"ModuleID":0,"NotificationType":"string","NotificationMethod":"string","UserGlobalID":"00000000-0000-0000-0000-000000000000","ActivityDocumentID":0,"ActivityDatTypeID":0,"CreatedDateTime_utc":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationDetails

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

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

Scopes

Parameters

Body parameters
Name Description
notificationDetails

Responses


notificationSearch

Notification_Search


/Notification/Search

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Notification/Search" \
 -d '{
  "ParentID" : 5,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "IsExactMatch" : true,
  "CategoryIDs" : [ 9, 9 ],
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "TenantID" : 1,
  "IgnoreID" : 1,
  "IsShowFavourites" : true,
  "DatTypes" : [ 0, 0 ],
  "IsGetUnreadOnly" : true,
  "IsHierarchicalSort" : true,
  "UserID" : 7,
  "Search" : "Search",
  "SortAsc" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "LinkedSupplierID" : 4,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 2,
  "WebsiteID" : 6,
  "IsHidden" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 3, 3 ],
  "LastRowNumber" : 1,
  "MaxResults" : 1,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "IsGetForAllApps" : true,
  "UpdateLastPreviewedDateTime" : true,
  "Statuses" : [ 6, 6 ],
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 2, 2 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "TransactionTypeDatTypeID" : 5
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<NotificationSearchFilter>
  <UpdateLastPreviewedDateTime>true</UpdateLastPreviewedDateTime>
  <DatTypes>123</DatTypes>
  <IsGetUnreadOnly>true</IsGetUnreadOnly>
  <IsGetForAllApps>true</IsGetForAllApps>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</NotificationSearchFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        NotificationSearchFilter notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

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

final api_instance = DefaultApi();

final NotificationSearchFilter notificationSearchFilter = new NotificationSearchFilter(); // NotificationSearchFilter | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        NotificationSearchFilter notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

        try {
            Object result = apiInstance.notificationSearch(notificationSearchFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationSearch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
NotificationSearchFilter *notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Notification_Search
[apiInstance notificationSearchWith:notificationSearchFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

// Create an instance of the API class
var api = new AsServerApiNotification.DefaultApi()
var opts = {
  'notificationSearchFilter': {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {NotificationSearchFilter} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter | 

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

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

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # NotificationSearchFilter |  (optional)

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

pub fn main() {
    let notificationSearchFilter = {"UpdateLastPreviewedDateTime":true,"DatTypes":[0],"IsGetUnreadOnly":true,"IsGetForAllApps":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // NotificationSearchFilter

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

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

Scopes

Parameters

Body parameters
Name Description
notificationSearchFilter

Responses


notificationUnReadCount

Notification_UnReadCount


/Notification/UnReadCount

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Notification/UnReadCount"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            Object result = apiInstance.notificationUnReadCount();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#notificationUnReadCount");
            e.printStackTrace();
        }
    }
}


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

// Notification_UnReadCount
[apiInstance notificationUnReadCountWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiNotification = require('as_server_api_notification');

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses