Hvl Notification Polling Server

NotificationPollingAnnouncementAPI

queryPage1

A page of announcement matching the query criteria


/polling/announcement/page

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/announcement/page"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;

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

public class NotificationPollingAnnouncementAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
        HvlNotificationPollingAnnouncementQueryModel body = ; // HvlNotificationPollingAnnouncementQueryModel | 
        try {
            HvlResponseHvlPageHvlNotificationPollingAnnouncementModel result = apiInstance.queryPage1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#queryPage1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;

public class NotificationPollingAnnouncementAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
        HvlNotificationPollingAnnouncementQueryModel body = ; // HvlNotificationPollingAnnouncementQueryModel | 
        try {
            HvlResponseHvlPageHvlNotificationPollingAnnouncementModel result = apiInstance.queryPage1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#queryPage1");
            e.printStackTrace();
        }
    }
}
HvlNotificationPollingAnnouncementQueryModel *body = ; // 

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

// A page of announcement matching the query criteria
[apiInstance queryPage1With:body
              completionHandler: ^(HvlResponseHvlPageHvlNotificationPollingAnnouncementModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingAnnouncementAPIApi()
var body = ; // {{HvlNotificationPollingAnnouncementQueryModel}} 

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

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

            var apiInstance = new NotificationPollingAnnouncementAPIApi();
            var body = new HvlNotificationPollingAnnouncementQueryModel(); // HvlNotificationPollingAnnouncementQueryModel | 

            try
            {
                // A page of announcement matching the query criteria
                HvlResponseHvlPageHvlNotificationPollingAnnouncementModel result = apiInstance.queryPage1(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingAnnouncementAPIApi.queryPage1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingAnnouncementAPIApi();
$body = ; // HvlNotificationPollingAnnouncementQueryModel | 

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

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

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

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

try: 
    # A page of announcement matching the query criteria
    api_response = api_instance.query_page1(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingAnnouncementAPIApi->queryPage1: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


send1

Sends announcement notification


/polling/announcement/send

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/announcement/send"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;

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

public class NotificationPollingAnnouncementAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
        HvlNotificationPollingAnnouncementModel body = ; // HvlNotificationPollingAnnouncementModel | 
        try {
            HvlResponseHvlNotificationPollingAnnouncementModel result = apiInstance.send1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#send1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;

public class NotificationPollingAnnouncementAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
        HvlNotificationPollingAnnouncementModel body = ; // HvlNotificationPollingAnnouncementModel | 
        try {
            HvlResponseHvlNotificationPollingAnnouncementModel result = apiInstance.send1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#send1");
            e.printStackTrace();
        }
    }
}
HvlNotificationPollingAnnouncementModel *body = ; // 

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

// Sends announcement notification
[apiInstance send1With:body
              completionHandler: ^(HvlResponseHvlNotificationPollingAnnouncementModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingAnnouncementAPIApi()
var body = ; // {{HvlNotificationPollingAnnouncementModel}} 

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

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

            var apiInstance = new NotificationPollingAnnouncementAPIApi();
            var body = new HvlNotificationPollingAnnouncementModel(); // HvlNotificationPollingAnnouncementModel | 

            try
            {
                // Sends announcement notification
                HvlResponseHvlNotificationPollingAnnouncementModel result = apiInstance.send1(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingAnnouncementAPIApi.send1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingAnnouncementAPIApi();
$body = ; // HvlNotificationPollingAnnouncementModel | 

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

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

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

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

try: 
    # Sends announcement notification
    api_response = api_instance.send1(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingAnnouncementAPIApi->send1: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


NotificationPollingUserAPI

getUnreadNotificationCountByUser

Gets unread notification count


/polling/user/unread/by-user/{user}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/unread/by-user/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseNumber result = apiInstance.getUnreadNotificationCountByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#getUnreadNotificationCountByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseNumber result = apiInstance.getUnreadNotificationCountByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#getUnreadNotificationCountByUser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // 

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

// Gets unread notification count
[apiInstance getUnreadNotificationCountByUserWith:user
              completionHandler: ^(HvlResponseNumber output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var user = user_example; // {{String}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var user = user_example;  // String | 

            try
            {
                // Gets unread notification count
                HvlResponseNumber result = apiInstance.getUnreadNotificationCountByUser(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.getUnreadNotificationCountByUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$user = user_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationPollingUserAPIApi->new();
my $user = user_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.NotificationPollingUserAPIApi()
user = user_example # String | 

try: 
    # Gets unread notification count
    api_response = api_instance.get_unread_notification_count_by_user(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->getUnreadNotificationCountByUser: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
Required

Responses

Status: 200 - OK


getUnreadNotificationSubCountByUser

Gets unread notification count sub model according to user by type


/polling/user/unread/sub-count/by-user/{user}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/unread/sub-count/by-user/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseHvlNotificationSubCountModel result = apiInstance.getUnreadNotificationSubCountByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#getUnreadNotificationSubCountByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseHvlNotificationSubCountModel result = apiInstance.getUnreadNotificationSubCountByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#getUnreadNotificationSubCountByUser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // 

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

// Gets unread notification count sub model according to user by type
[apiInstance getUnreadNotificationSubCountByUserWith:user
              completionHandler: ^(HvlResponseHvlNotificationSubCountModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var user = user_example; // {{String}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var user = user_example;  // String | 

            try
            {
                // Gets unread notification count sub model according to user by type
                HvlResponseHvlNotificationSubCountModel result = apiInstance.getUnreadNotificationSubCountByUser(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.getUnreadNotificationSubCountByUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$user = user_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationPollingUserAPIApi->new();
my $user = user_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.NotificationPollingUserAPIApi()
user = user_example # String | 

try: 
    # Gets unread notification count sub model according to user by type
    api_response = api_instance.get_unread_notification_sub_count_by_user(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->getUnreadNotificationSubCountByUser: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
Required

Responses

Status: 200 - OK


markAllReadByUser

Marks read all notifications


/polling/user/mark-all-read/by-user/{user}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/mark-all-read/by-user/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.markAllReadByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#markAllReadByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String user = user_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.markAllReadByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#markAllReadByUser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // 

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

// Marks read all notifications
[apiInstance markAllReadByUserWith:user
              completionHandler: ^(HvlResponseVoid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var user = user_example; // {{String}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var user = user_example;  // String | 

            try
            {
                // Marks read all notifications
                HvlResponseVoid result = apiInstance.markAllReadByUser(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.markAllReadByUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$user = user_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationPollingUserAPIApi->new();
my $user = user_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.NotificationPollingUserAPIApi()
user = user_example # String | 

try: 
    # Marks read all notifications
    api_response = api_instance.mark_all_read_by_user(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->markAllReadByUser: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
Required

Responses

Status: 200 - OK


markReadNotificationByUuid

Marks read notification


/polling/user/mark-read/by-uuid/{uuid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/mark-read/by-uuid/{uuid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String uuid = uuid_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.markReadNotificationByUuid(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#markReadNotificationByUuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        String uuid = uuid_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.markReadNotificationByUuid(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#markReadNotificationByUuid");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // 

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

// Marks read notification
[apiInstance markReadNotificationByUuidWith:uuid
              completionHandler: ^(HvlResponseVoid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var uuid = uuid_example; // {{String}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var uuid = uuid_example;  // String | 

            try
            {
                // Marks read notification
                HvlResponseVoid result = apiInstance.markReadNotificationByUuid(uuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.markReadNotificationByUuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$uuid = uuid_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationPollingUserAPIApi->new();
my $uuid = uuid_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.NotificationPollingUserAPIApi()
uuid = uuid_example # String | 

try: 
    # Marks read notification
    api_response = api_instance.mark_read_notification_by_uuid(uuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->markReadNotificationByUuid: %s\n" % e)

Parameters

Path parameters
Name Description
uuid*
String
Required

Responses

Status: 200 - OK


queryList

Gets notification as list


/polling/user/list

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserQueryModel body = ; // HvlNotificationPollingUserQueryModel | 
        try {
            HvlResponseListHvlNotificationPollingUserModel result = apiInstance.queryList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#queryList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserQueryModel body = ; // HvlNotificationPollingUserQueryModel | 
        try {
            HvlResponseListHvlNotificationPollingUserModel result = apiInstance.queryList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#queryList");
            e.printStackTrace();
        }
    }
}
HvlNotificationPollingUserQueryModel *body = ; // 

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

// Gets notification as list
[apiInstance queryListWith:body
              completionHandler: ^(HvlResponseListHvlNotificationPollingUserModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var body = ; // {{HvlNotificationPollingUserQueryModel}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var body = new HvlNotificationPollingUserQueryModel(); // HvlNotificationPollingUserQueryModel | 

            try
            {
                // Gets notification as list
                HvlResponseListHvlNotificationPollingUserModel result = apiInstance.queryList(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.queryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$body = ; // HvlNotificationPollingUserQueryModel | 

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

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

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

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

try: 
    # Gets notification as list
    api_response = api_instance.query_list(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->queryList: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


queryPage

Gets notification as page


/polling/user/page

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/page"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserQueryModel body = ; // HvlNotificationPollingUserQueryModel | 
        try {
            HvlResponseHvlPageHvlNotificationPollingUserModel result = apiInstance.queryPage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#queryPage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserQueryModel body = ; // HvlNotificationPollingUserQueryModel | 
        try {
            HvlResponseHvlPageHvlNotificationPollingUserModel result = apiInstance.queryPage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#queryPage");
            e.printStackTrace();
        }
    }
}
HvlNotificationPollingUserQueryModel *body = ; // 

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

// Gets notification as page
[apiInstance queryPageWith:body
              completionHandler: ^(HvlResponseHvlPageHvlNotificationPollingUserModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var body = ; // {{HvlNotificationPollingUserQueryModel}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var body = new HvlNotificationPollingUserQueryModel(); // HvlNotificationPollingUserQueryModel | 

            try
            {
                // Gets notification as page
                HvlResponseHvlPageHvlNotificationPollingUserModel result = apiInstance.queryPage(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.queryPage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$body = ; // HvlNotificationPollingUserQueryModel | 

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

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

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

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

try: 
    # Gets notification as page
    api_response = api_instance.query_page(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->queryPage: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


send

Sends user specific polling notification


/polling/user/send

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/notification-polling-server/polling/user/send"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingUserAPIApi;

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

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserModel body = ; // HvlNotificationPollingUserModel | 
        try {
            HvlResponseHvlNotificationPollingUserModel result = apiInstance.send(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#send");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationPollingUserAPIApi;

public class NotificationPollingUserAPIApiExample {

    public static void main(String[] args) {
        NotificationPollingUserAPIApi apiInstance = new NotificationPollingUserAPIApi();
        HvlNotificationPollingUserModel body = ; // HvlNotificationPollingUserModel | 
        try {
            HvlResponseHvlNotificationPollingUserModel result = apiInstance.send(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationPollingUserAPIApi#send");
            e.printStackTrace();
        }
    }
}
HvlNotificationPollingUserModel *body = ; // 

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

// Sends user specific polling notification
[apiInstance sendWith:body
              completionHandler: ^(HvlResponseHvlNotificationPollingUserModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');

var api = new HvlNotificationPollingServer.NotificationPollingUserAPIApi()
var body = ; // {{HvlNotificationPollingUserModel}} 

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

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

            var apiInstance = new NotificationPollingUserAPIApi();
            var body = new HvlNotificationPollingUserModel(); // HvlNotificationPollingUserModel | 

            try
            {
                // Sends user specific polling notification
                HvlResponseHvlNotificationPollingUserModel result = apiInstance.send(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationPollingUserAPIApi.send: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiNotificationPollingUserAPIApi();
$body = ; // HvlNotificationPollingUserModel | 

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

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

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

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

try: 
    # Sends user specific polling notification
    api_response = api_instance.send(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationPollingUserAPIApi->send: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK