getFollowedUsersPosts
Load more posts from followed-users
/api/ajax/followed-users/posts
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"http://localhost:8443/api/ajax/followed-users/posts?page=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AjaxRestControllerApi;
import java.io.File;
import java.util.*;
public class AjaxRestControllerApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AjaxRestControllerApi apiInstance = new AjaxRestControllerApi();
Integer page = 56; // Integer |
try {
array[Post] result = apiInstance.getFollowedUsersPosts(page);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AjaxRestControllerApi#getFollowedUsersPosts");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AjaxRestControllerApi;
public class AjaxRestControllerApiExample {
public static void main(String[] args) {
AjaxRestControllerApi apiInstance = new AjaxRestControllerApi();
Integer page = 56; // Integer |
try {
array[Post] result = apiInstance.getFollowedUsersPosts(page);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AjaxRestControllerApi#getFollowedUsersPosts");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AjaxRestControllerApi *apiInstance = [[AjaxRestControllerApi alloc] init];
Integer *page = 56; // (default to null)
// Load more posts from followed-users
[apiInstance getFollowedUsersPostsWith:page
completionHandler: ^(array[Post] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenApiDefinition = require('open_api_definition');
// Create an instance of the API class
var api = new OpenApiDefinition.AjaxRestControllerApi()
var page = 56; // {Integer}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getFollowedUsersPosts(page, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getFollowedUsersPostsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AjaxRestControllerApi();
var page = 56; // Integer | (default to null)
try {
// Load more posts from followed-users
array[Post] result = apiInstance.getFollowedUsersPosts(page);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AjaxRestControllerApi.getFollowedUsersPosts: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AjaxRestControllerApi();
$page = 56; // Integer |
try {
$result = $api_instance->getFollowedUsersPosts($page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AjaxRestControllerApi->getFollowedUsersPosts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AjaxRestControllerApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AjaxRestControllerApi->new();
my $page = 56; # Integer |
eval {
my $result = $api_instance->getFollowedUsersPosts(page => $page);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AjaxRestControllerApi->getFollowedUsersPosts: $@\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.AjaxRestControllerApi()
page = 56 # Integer | (default to null)
try:
# Load more posts from followed-users
api_response = api_instance.get_followed_users_posts(page)
pprint(api_response)
except ApiException as e:
print("Exception when calling AjaxRestControllerApi->getFollowedUsersPosts: %s\n" % e)
extern crate AjaxRestControllerApi;
pub fn main() {
let page = 56; // Integer
let mut context = AjaxRestControllerApi::Context::default();
let result = client.getFollowedUsersPosts(page, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| page* |
Integer
(int32)
Required
|