Simple Posts/Account API

CORS

getPost

returns post with the given id

returns information about the post username and post text are URI Encoded


/api/getPost

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getPost?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CORSApi;

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

public class CORSApiExample {

    public static void main(String[] args) {
        
        CORSApi apiInstance = new CORSApi();
        BigDecimal id = 1.2; // BigDecimal | the id of the post
        try {
            inline_response_200_3 result = apiInstance.getPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CORSApi#getPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CORSApi;

public class CORSApiExample {

    public static void main(String[] args) {
        CORSApi apiInstance = new CORSApi();
        BigDecimal id = 1.2; // BigDecimal | the id of the post
        try {
            inline_response_200_3 result = apiInstance.getPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CORSApi#getPost");
            e.printStackTrace();
        }
    }
}
BigDecimal *id = 1.2; // the id of the post

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

// returns post with the given id
[apiInstance getPostWith:id
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.CORSApi()
var id = 1.2; // {{BigDecimal}} the id of the post

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

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

            var apiInstance = new CORSApi();
            var id = 1.2;  // BigDecimal | the id of the post

            try
            {
                // returns post with the given id
                inline_response_200_3 result = apiInstance.getPost(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CORSApi.getPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCORSApi();
$id = 1.2; // BigDecimal | the id of the post

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

my $api_instance = WWW::SwaggerClient::CORSApi->new();
my $id = 1.2; # BigDecimal | the id of the post

eval { 
    my $result = $api_instance->getPost(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CORSApi->getPost: $@\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.CORSApi()
id = 1.2 # BigDecimal | the id of the post

try: 
    # returns post with the given id
    api_response = api_instance.get_post(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CORSApi->getPost: %s\n" % e)

Parameters

Query parameters
Name Description
id*
BigDecimal
the id of the post
Required

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


getotheruser

returns information about any user

returns information about any user


/api/getotheruser

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getotheruser?user="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CORSApi;

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

public class CORSApiExample {

    public static void main(String[] args) {
        
        CORSApi apiInstance = new CORSApi();
        String user = user_example; // String | pass the username of the user you want to get information on
        try {
            inline_response_200_2 result = apiInstance.getotheruser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CORSApi#getotheruser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CORSApi;

public class CORSApiExample {

    public static void main(String[] args) {
        CORSApi apiInstance = new CORSApi();
        String user = user_example; // String | pass the username of the user you want to get information on
        try {
            inline_response_200_2 result = apiInstance.getotheruser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CORSApi#getotheruser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // pass the username of the user you want to get information on

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

// returns information about any user
[apiInstance getotheruserWith:user
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.CORSApi()
var user = user_example; // {{String}} pass the username of the user you want to get information on

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

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

            var apiInstance = new CORSApi();
            var user = user_example;  // String | pass the username of the user you want to get information on

            try
            {
                // returns information about any user
                inline_response_200_2 result = apiInstance.getotheruser(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CORSApi.getotheruser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCORSApi();
$user = user_example; // String | pass the username of the user you want to get information on

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

my $api_instance = WWW::SwaggerClient::CORSApi->new();
my $user = user_example; # String | pass the username of the user you want to get information on

eval { 
    my $result = $api_instance->getotheruser(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CORSApi->getotheruser: $@\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.CORSApi()
user = user_example # String | pass the username of the user you want to get information on

try: 
    # returns information about any user
    api_response = api_instance.getotheruser(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CORSApi->getotheruser: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
pass the username of the user you want to get information on
Required

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


Everyone

changePW

changes the password

sets the pw of the current user also sets the AUTH_COOKIE cookie to the new one


/api/changePW

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"https://ipost.tk/api/changePW"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        Api_changePW_body body = ; // Api_changePW_body | 
        try {
            apiInstance.changePW(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#changePW");
            e.printStackTrace();
        }
    }
}
Api_changePW_body *body = ; //  (optional)

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

// changes the password
[apiInstance changePWWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var opts = { 
  'body':  // {{Api_changePW_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.changePW(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EveryoneApi();
            var body = new Api_changePW_body(); // Api_changePW_body |  (optional) 

            try
            {
                // changes the password
                apiInstance.changePW(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.changePW: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$body = ; // Api_changePW_body | 

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

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

eval { 
    $api_instance->changePW(body => $body);
};
if ($@) {
    warn "Exception when calling EveryoneApi->changePW: $@\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.EveryoneApi()
body =  # Api_changePW_body |  (optional)

try: 
    # changes the password
    api_instance.change_pw(body=body)
except ApiException as e:
    print("Exception when calling EveryoneApi->changePW: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - successfully set bio

Status: 400 - no or bad login cookie


getPost

returns post with the given id

returns information about the post username and post text are URI Encoded


/api/getPost

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getPost?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        
        EveryoneApi apiInstance = new EveryoneApi();
        BigDecimal id = 1.2; // BigDecimal | the id of the post
        try {
            inline_response_200_3 result = apiInstance.getPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EveryoneApi;

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        BigDecimal id = 1.2; // BigDecimal | the id of the post
        try {
            inline_response_200_3 result = apiInstance.getPost(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getPost");
            e.printStackTrace();
        }
    }
}
BigDecimal *id = 1.2; // the id of the post

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

// returns post with the given id
[apiInstance getPostWith:id
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var id = 1.2; // {{BigDecimal}} the id of the post

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

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

            var apiInstance = new EveryoneApi();
            var id = 1.2;  // BigDecimal | the id of the post

            try
            {
                // returns post with the given id
                inline_response_200_3 result = apiInstance.getPost(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.getPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$id = 1.2; // BigDecimal | the id of the post

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

my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
my $id = 1.2; # BigDecimal | the id of the post

eval { 
    my $result = $api_instance->getPost(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EveryoneApi->getPost: $@\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.EveryoneApi()
id = 1.2 # BigDecimal | the id of the post

try: 
    # returns post with the given id
    api_response = api_instance.get_post(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EveryoneApi->getPost: %s\n" % e)

Parameters

Query parameters
Name Description
id*
BigDecimal
the id of the post
Required

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


getPosts

returns all posts

returns information about all posts username and post text are URI Encoded


/api/getPosts

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getPosts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        
        EveryoneApi apiInstance = new EveryoneApi();
        try {
            array[inline_response_200_3] result = apiInstance.getPosts();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getPosts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EveryoneApi;

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        try {
            array[inline_response_200_3] result = apiInstance.getPosts();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getPosts");
            e.printStackTrace();
        }
    }
}

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

// returns all posts
[apiInstance getPostsWithCompletionHandler: 
              ^(array[inline_response_200_3] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

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

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

            var apiInstance = new EveryoneApi();

            try
            {
                // returns all posts
                array[inline_response_200_3] result = apiInstance.getPosts();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.getPosts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();

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

my $api_instance = WWW::SwaggerClient::EveryoneApi->new();

eval { 
    my $result = $api_instance->getPosts();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EveryoneApi->getPosts: $@\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.EveryoneApi()

try: 
    # returns all posts
    api_response = api_instance.get_posts()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EveryoneApi->getPosts: %s\n" % e)

Parameters

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


getotheruser

returns information about any user

returns information about any user


/api/getotheruser

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getotheruser?user="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        
        EveryoneApi apiInstance = new EveryoneApi();
        String user = user_example; // String | pass the username of the user you want to get information on
        try {
            inline_response_200_2 result = apiInstance.getotheruser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getotheruser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EveryoneApi;

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        String user = user_example; // String | pass the username of the user you want to get information on
        try {
            inline_response_200_2 result = apiInstance.getotheruser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getotheruser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // pass the username of the user you want to get information on

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

// returns information about any user
[apiInstance getotheruserWith:user
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var user = user_example; // {{String}} pass the username of the user you want to get information on

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

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

            var apiInstance = new EveryoneApi();
            var user = user_example;  // String | pass the username of the user you want to get information on

            try
            {
                // returns information about any user
                inline_response_200_2 result = apiInstance.getotheruser(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.getotheruser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$user = user_example; // String | pass the username of the user you want to get information on

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

my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
my $user = user_example; # String | pass the username of the user you want to get information on

eval { 
    my $result = $api_instance->getotheruser(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EveryoneApi->getotheruser: $@\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.EveryoneApi()
user = user_example # String | pass the username of the user you want to get information on

try: 
    # returns information about any user
    api_response = api_instance.getotheruser(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EveryoneApi->getotheruser: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
pass the username of the user you want to get information on
Required

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


getuser

returns current user information

When a valid information is set, the API will return information about the current user


/api/getuser

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ipost.tk/api/getuser"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        
        EveryoneApi apiInstance = new EveryoneApi();
        try {
            inline_response_200_1 result = apiInstance.getuser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getuser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EveryoneApi;

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        try {
            inline_response_200_1 result = apiInstance.getuser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#getuser");
            e.printStackTrace();
        }
    }
}

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

// returns current user information
[apiInstance getuserWithCompletionHandler: 
              ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

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

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

            var apiInstance = new EveryoneApi();

            try
            {
                // returns current user information
                inline_response_200_1 result = apiInstance.getuser();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.getuser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();

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

my $api_instance = WWW::SwaggerClient::EveryoneApi->new();

eval { 
    my $result = $api_instance->getuser();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EveryoneApi->getuser: $@\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.EveryoneApi()

try: 
    # returns current user information
    api_response = api_instance.getuser()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EveryoneApi->getuser: %s\n" % e)

Parameters

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


login

logging in

logges you in


/login

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"https://ipost.tk/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        Login_body body = ; // Login_body | 
        try {
            apiInstance.login(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#login");
            e.printStackTrace();
        }
    }
}
Login_body *body = ; //  (optional)

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

// logging in
[apiInstance loginWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var opts = { 
  'body':  // {{Login_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.login(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EveryoneApi();
            var body = new Login_body(); // Login_body |  (optional) 

            try
            {
                // logging in
                apiInstance.login(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$body = ; // Login_body | 

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

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

eval { 
    $api_instance->login(body => $body);
};
if ($@) {
    warn "Exception when calling EveryoneApi->login: $@\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.EveryoneApi()
body =  # Login_body |  (optional)

try: 
    # logging in
    api_instance.login(body=body)
except ApiException as e:
    print("Exception when calling EveryoneApi->login: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - registered a new user, and sent the cookie in the header

Status: 400 - username or password invalid, see response for further information


post

post a message

posts a message on the public chat has to be logged in either by cookie or given user and password


/api/post

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"https://ipost.tk/api/post"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        Api_post_body body = ; // Api_post_body | 
        try {
            apiInstance.post(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#post");
            e.printStackTrace();
        }
    }
}
Api_post_body *body = ; //  (optional)

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

// post a message
[apiInstance postWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var opts = { 
  'body':  // {{Api_post_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.post(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EveryoneApi();
            var body = new Api_post_body(); // Api_post_body |  (optional) 

            try
            {
                // post a message
                apiInstance.post(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.post: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$body = ; // Api_post_body | 

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

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

eval { 
    $api_instance->post(body => $body);
};
if ($@) {
    warn "Exception when calling EveryoneApi->post: $@\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.EveryoneApi()
body =  # Api_post_body |  (optional)

try: 
    # post a message
    api_instance.post(body=body)
except ApiException as e:
    print("Exception when calling EveryoneApi->post: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - successfully got information

Status: 400 - no or bad login cookie


register

registers a new user

registers a new user


/register

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"https://ipost.tk/register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        Register_body body = ; // Register_body | 
        try {
            apiInstance.register(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#register");
            e.printStackTrace();
        }
    }
}
Register_body *body = ; //  (optional)

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

// registers a new user
[apiInstance registerWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var opts = { 
  'body':  // {{Register_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.register(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EveryoneApi();
            var body = new Register_body(); // Register_body |  (optional) 

            try
            {
                // registers a new user
                apiInstance.register(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.register: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$body = ; // Register_body | 

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

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

eval { 
    $api_instance->register(body => $body);
};
if ($@) {
    warn "Exception when calling EveryoneApi->register: $@\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.EveryoneApi()
body =  # Register_body |  (optional)

try: 
    # registers a new user
    api_instance.register(body=body)
except ApiException as e:
    print("Exception when calling EveryoneApi->register: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - registered a new user, and sent the cookie in the header

Status: 400 - username or password invalid, see response for further information



setBio

sets the bio of the current user

sets the bio of the currently logged in user (identified via cookie, or given user+password)


/api/setBio

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"https://ipost.tk/api/setBio"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EveryoneApi;

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

public class EveryoneApiExample {

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

public class EveryoneApiExample {

    public static void main(String[] args) {
        EveryoneApi apiInstance = new EveryoneApi();
        Api_setBio_body body = ; // Api_setBio_body | 
        try {
            apiInstance.setBio(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling EveryoneApi#setBio");
            e.printStackTrace();
        }
    }
}
Api_setBio_body *body = ; //  (optional)

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

// sets the bio of the current user
[apiInstance setBioWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SimplePostsaccountApi = require('simple_postsaccount_api');

var api = new SimplePostsaccountApi.EveryoneApi()
var opts = { 
  'body':  // {{Api_setBio_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setBio(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new EveryoneApi();
            var body = new Api_setBio_body(); // Api_setBio_body |  (optional) 

            try
            {
                // sets the bio of the current user
                apiInstance.setBio(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EveryoneApi.setBio: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEveryoneApi();
$body = ; // Api_setBio_body | 

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

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

eval { 
    $api_instance->setBio(body => $body);
};
if ($@) {
    warn "Exception when calling EveryoneApi->setBio: $@\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.EveryoneApi()
body =  # Api_setBio_body |  (optional)

try: 
    # sets the bio of the current user
    api_instance.set_bio(body=body)
except ApiException as e:
    print("Exception when calling EveryoneApi->setBio: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - successfully set bio

Status: 400 - no or bad login cookie, or no Bio passed along