curl -X GET\
"https://ipost.rocks//api/getPostsLowerThan?channel=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String channel = channel_example; // String |
String id = id_example; // String |
try {
apiInstance.apiGetPostsLowerThanGet(channel, id);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiGetPostsLowerThanGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String channel = channel_example; // String |
String id = id_example; // String |
try {
apiInstance.apiGetPostsLowerThanGet(channel, id);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiGetPostsLowerThanGet");
e.printStackTrace();
}
}
}
String *channel = channel_example; // (optional)
String *id = id_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance apiGetPostsLowerThanGetWith:channel
id:id
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IPostApi = require('i_post_api');
var api = new IPostApi.DefaultApi()
var opts = {
'channel': channel_example, // {{String}}
'id': id_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.apiGetPostsLowerThanGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiGetPostsLowerThanGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
var channel = channel_example; // String | (optional)
var id = id_example; // String | (optional)
try
{
apiInstance.apiGetPostsLowerThanGet(channel, id);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.apiGetPostsLowerThanGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$channel = channel_example; // String |
$id = id_example; // String |
try {
$api_instance->apiGetPostsLowerThanGet($channel, $id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiGetPostsLowerThanGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $channel = channel_example; # String |
my $id = id_example; # String |
eval {
$api_instance->apiGetPostsLowerThanGet(channel => $channel, id => $id);
};
if ($@) {
warn "Exception when calling DefaultApi->apiGetPostsLowerThanGet: $@\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.DefaultApi()
channel = channel_example # String | (optional)
id = id_example # String | (optional)
try:
api_instance.api_get_posts_lower_than_get(channel=channel, id=id)
except ApiException as e:
print("Exception when calling DefaultApi->apiGetPostsLowerThanGet: %s\n" % e)