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 * |