Default
+getPost
-returns post with the given id
+apiChangePWPost
+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
- - - - - -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
- - - - - -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
@@ -1596,78 +1002,90 @@ also sets the AUTH_COOKIE cookie to the new one
Usage and SDK Samples
curl -X POST\
--H "Content-Type: application/json"\
-"https://ipost.tk/api/changePW"
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/changePW"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.EveryoneApi;
+import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
-
- EveryoneApi apiInstance = new EveryoneApi();
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
Api_changePW_body body = ; // Api_changePW_body |
try {
- apiInstance.changePW(body);
+ apiInstance.apiChangePWPost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#changePW");
+ System.err.println("Exception when calling DefaultApi#apiChangePWPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.EveryoneApi;
+
+ import io.swagger.client.api.DefaultApi;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
+ DefaultApi apiInstance = new DefaultApi();
Api_changePW_body body = ; // Api_changePW_body |
try {
- apiInstance.changePW(body);
+ apiInstance.apiChangePWPost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#changePW");
+ System.err.println("Exception when calling DefaultApi#apiChangePWPost");
e.printStackTrace();
}
}
}
-
- Api_changePW_body *body = ; // (optional)
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Api_changePW_body *body = ; // (optional)
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
-// changes the password
-[apiInstance changePWWith:body
+[apiInstance apiChangePWPostWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -1676,10 +1094,17 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
-var api = new SimplePostsaccountApi.EveryoneApi()
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
var opts = {
'body': // {{Api_changePW_body}}
};
@@ -1690,14 +1115,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.changePW(opts, callback);
+api.apiChangePWPost(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -1706,22 +1131,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class changePWExample
+ public class apiChangePWPostExample
{
public void main()
{
- var apiInstance = new EveryoneApi();
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
var body = new Api_changePW_body(); // Api_changePW_body | (optional)
try
{
- // changes the password
- apiInstance.changePW(body);
+ apiInstance.apiChangePWPost(body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling EveryoneApi.changePW: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiChangePWPost: " + e.Message );
}
}
}
@@ -1729,53 +1158,67 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiEveryoneApi();
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // Api_changePW_body |
try {
- $api_instance->changePW($body);
+ $api_instance->apiChangePWPost($body);
} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->changePW: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->apiChangePWPost: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
+use WWW::SwaggerClient::DefaultApi;
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Api_changePW_body->new(); # Api_changePW_body |
eval {
- $api_instance->changePW(body => $body);
+ $api_instance->apiChangePWPost(body => $body);
};
if ($@) {
- warn "Exception when calling EveryoneApi->changePW: $@\n";
+ warn "Exception when calling DefaultApi->apiChangePWPost: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
# create an instance of the API class
-api_instance = swagger_client.EveryoneApi()
+api_instance = swagger_client.DefaultApi()
body = # Api_changePW_body | (optional)
try:
- # changes the password
- api_instance.change_pw(body=body)
+ api_instance.api_change_pw_post(body=body)
except ApiException as e:
- print("Exception when calling EveryoneApi->changePW: %s\n" % e)
+ print("Exception when calling DefaultApi->apiChangePWPost: %s\n" % e)
@@ -1797,14 +1240,15 @@ except ApiException as e:
$(document).ready(function() {
var schemaWrapper = {
"content" : {
- "application/json" : {
+ "*/*" : {
"schema" : {
"$ref" : "#/components/schemas/api_changePW_body"
}
}
- }
+ },
+ "required" : false
};
- var schema = schemaWrapper.content["application/json"].schema;
+ var schema = schemaWrapper.content["*/*"].schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
@@ -1816,12 +1260,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_changePW_body');
+ var result = $('#d2e199_apiChangePWPost_body');
result.empty();
result.append(view.render());
});
-
+
@@ -1829,8 +1273,7 @@ except ApiException as e:
Responses
- Status: 200 - successfully set bio
-
+ Status: 200 - OK
@@ -1838,7 +1281,7 @@ except ApiException as e:
- Status: 400 - no or bad login cookie
+ Status: 410 - argument/data error
@@ -1849,1250 +1292,107 @@ except ApiException as e:
-
-
+
+
- getPost
- returns post with the given id
+ apiChangeUsernamePost
+
- returns information about the post
-
-username and post text are URI Encoded
-
+
- /api/getPost
+ /api/changeUsername
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"
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/changeUsername"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.EveryoneApi;
+import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
-
- EveryoneApi apiInstance = new EveryoneApi();
- Login_body body = ; // Login_body |
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ Api_changeUsername_body body = ; // Api_changeUsername_body |
try {
- apiInstance.login(body);
+ apiInstance.apiChangeUsernamePost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#login");
+ System.err.println("Exception when calling DefaultApi#apiChangeUsernamePost");
e.printStackTrace();
}
}
}
-
- import io.swagger.client.api.EveryoneApi;
+
+ import io.swagger.client.api.DefaultApi;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
- Login_body body = ; // Login_body |
+ DefaultApi apiInstance = new DefaultApi();
+ Api_changeUsername_body body = ; // Api_changeUsername_body |
try {
- apiInstance.login(body);
+ apiInstance.apiChangeUsernamePost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#login");
+ System.err.println("Exception when calling DefaultApi#apiChangeUsernamePost");
e.printStackTrace();
}
}
}
-
- Login_body *body = ; // (optional)
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Api_changeUsername_body *body = ; // (optional)
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
-// logging in
-[apiInstance loginWith:body
+[apiInstance apiChangeUsernamePostWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -3101,12 +1401,19 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
-var api = new SimplePostsaccountApi.EveryoneApi()
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
var opts = {
- 'body': // {{Login_body}}
+ 'body': // {{Api_changeUsername_body}}
};
var callback = function(error, data, response) {
if (error) {
@@ -3115,14 +1422,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.login(opts, callback);
+api.apiChangeUsernamePost(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3131,22 +1438,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class loginExample
+ public class apiChangeUsernamePostExample
{
public void main()
{
- var apiInstance = new EveryoneApi();
- var body = new Login_body(); // Login_body | (optional)
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var body = new Api_changeUsername_body(); // Api_changeUsername_body | (optional)
try
{
- // logging in
- apiInstance.login(body);
+ apiInstance.apiChangeUsernamePost(body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling EveryoneApi.login: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiChangeUsernamePost: " + e.Message );
}
}
}
@@ -3154,53 +1465,67 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiEveryoneApi();
-$body = ; // Login_body |
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Api_changeUsername_body |
try {
- $api_instance->login($body);
+ $api_instance->apiChangeUsernamePost($body);
} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->login: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->apiChangeUsernamePost: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
+use WWW::SwaggerClient::DefaultApi;
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
-my $body = WWW::SwaggerClient::Object::Login_body->new(); # Login_body |
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Api_changeUsername_body->new(); # Api_changeUsername_body |
eval {
- $api_instance->login(body => $body);
+ $api_instance->apiChangeUsernamePost(body => $body);
};
if ($@) {
- warn "Exception when calling EveryoneApi->login: $@\n";
+ warn "Exception when calling DefaultApi->apiChangeUsernamePost: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
# create an instance of the API class
-api_instance = swagger_client.EveryoneApi()
-body = # Login_body | (optional)
+api_instance = swagger_client.DefaultApi()
+body = # Api_changeUsername_body | (optional)
try:
- # logging in
- api_instance.login(body=body)
+ api_instance.api_change_username_post(body=body)
except ApiException as e:
- print("Exception when calling EveryoneApi->login: %s\n" % e)
+ print("Exception when calling DefaultApi->apiChangeUsernamePost: %s\n" % e)
@@ -3222,14 +1547,15 @@ except ApiException as e:
$(document).ready(function() {
var schemaWrapper = {
"content" : {
- "application/json" : {
+ "*/*" : {
"schema" : {
- "$ref" : "#/components/schemas/login_body"
+ "$ref" : "#/components/schemas/api_changeUsername_body"
}
}
- }
+ },
+ "required" : false
};
- var schema = schemaWrapper.content["application/json"].schema;
+ var schema = schemaWrapper.content["*/*"].schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
@@ -3241,12 +1567,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_login_body');
+ var result = $('#d2e199_apiChangeUsernamePost_body');
result.empty();
result.append(view.render());
});
-
+
@@ -3254,7 +1580,7 @@ except ApiException as e:
Responses
- Status: 200 - registered a new user, and sent the cookie in the header
+ Status: 200 - OK
@@ -3262,7 +1588,31 @@ except ApiException as e:
- Status: 400 - username or password invalid, see response for further information
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 412 - argument/data error
+
+
+
+
+
+
+ Status: 413 - argument/data error
@@ -3273,97 +1623,596 @@ except ApiException as e:
-
-
+
+
- post
- post a message
+ apiDmsConversationsGet
+
- posts a message on the public chat
-has to be logged in either by cookie or given user and password
-
+
- /api/post
+ /api/dms/conversations
Usage and SDK Samples
-
- curl -X POST\
--H "Content-Type: application/json"\
-"https://ipost.tk/api/post"
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/dms/conversations"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.EveryoneApi;
+import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
-
- EveryoneApi apiInstance = new EveryoneApi();
- Api_post_body body = ; // Api_post_body |
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
try {
- apiInstance.post(body);
+ apiInstance.apiDmsConversationsGet();
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#post");
+ System.err.println("Exception when calling DefaultApi#apiDmsConversationsGet");
e.printStackTrace();
}
}
}
-
- import io.swagger.client.api.EveryoneApi;
+
+ import io.swagger.client.api.DefaultApi;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
- Api_post_body body = ; // Api_post_body |
+ DefaultApi apiInstance = new DefaultApi();
try {
- apiInstance.post(body);
+ apiInstance.apiDmsConversationsGet();
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#post");
+ System.err.println("Exception when calling DefaultApi#apiDmsConversationsGet");
e.printStackTrace();
}
}
}
-
- Api_post_body *body = ; // (optional)
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
-// post a message
-[apiInstance postWith:body
+[apiInstance apiDmsConversationsGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiDmsConversationsGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiDmsConversationsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiDmsConversationsGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiDmsConversationsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiDmsConversationsGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiDmsConversationsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiDmsConversationsGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiDmsConversationsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_dms_conversations_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiDmsConversationsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiDmsEncryptJsGet
+
+
+
+
+
+
+
+
+ /api/dms/encrypt.js
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/dms/encrypt.js"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiDmsEncryptJsGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsEncryptJsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiDmsEncryptJsGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsEncryptJsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiDmsEncryptJsGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiDmsEncryptJsGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiDmsEncryptJsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiDmsEncryptJsGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiDmsEncryptJsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiDmsEncryptJsGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiDmsEncryptJsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiDmsEncryptJsGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiDmsEncryptJsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_dms_encrypt_js_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiDmsEncryptJsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiDmsGetDMGet
+
+
+
+
+
+
+
+
+ /api/dms/getDM
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/dms/getDM?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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
+ try {
+ apiInstance.apiDmsGetDMGet(id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsGetDMGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
+ try {
+ apiInstance.apiDmsGetDMGet(id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsGetDMGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *id = id_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiDmsGetDMGetWith:id
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -3372,10 +2221,3636 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
-var api = new SimplePostsaccountApi.EveryoneApi()
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'id': id_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiDmsGetDMGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiDmsGetDMGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var id = id_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiDmsGetDMGet(id);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiDmsGetDMGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$id = id_example; // String |
+
+try {
+ $api_instance->apiDmsGetDMGet($id);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiDmsGetDMGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $id = id_example; # String |
+
+eval {
+ $api_instance->apiDmsGetDMGet(id => $id);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiDmsGetDMGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+id = id_example # String | (optional)
+
+try:
+ api_instance.api_dms_get_dm_get(id=id)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiDmsGetDMGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ id
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiDmsPidGet
+
+
+
+
+
+
+
+
+ /api/dms/pid
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/dms/pid"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiDmsPidGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsPidGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiDmsPidGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsPidGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiDmsPidGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiDmsPidGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiDmsPidGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiDmsPidGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiDmsPidGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiDmsPidGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiDmsPidGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiDmsPidGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiDmsPidGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_dms_pid_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiDmsPidGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiDmsPostPost
+
+
+
+
+
+
+
+
+ /api/dms/post
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/dms/post"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ Dms_post_body body = ; // Dms_post_body |
+ try {
+ apiInstance.apiDmsPostPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsPostPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Dms_post_body body = ; // Dms_post_body |
+ try {
+ apiInstance.apiDmsPostPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiDmsPostPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Dms_post_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiDmsPostPostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'body': // {{Dms_post_body}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiDmsPostPost(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiDmsPostPostExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var body = new Dms_post_body(); // Dms_post_body | (optional)
+
+ try
+ {
+ apiInstance.apiDmsPostPost(body);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiDmsPostPost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Dms_post_body |
+
+try {
+ $api_instance->apiDmsPostPost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiDmsPostPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Dms_post_body->new(); # Dms_post_body |
+
+eval {
+ $api_instance->apiDmsPostPost(body => $body);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiDmsPostPost: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+body = # Dms_post_body | (optional)
+
+try:
+ api_instance.api_dms_post_post(body=body)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiDmsPostPost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 412 - argument/data error
+
+
+
+
+
+
+ Status: 413 - argument/data error
+
+
+
+
+
+
+ Status: 414 - argument/data error
+
+
+
+
+
+
+ Status: 415 - argument/data error
+
+
+
+
+
+
+ Status: 416 - argument/data error
+
+
+
+
+
+
+ Status: 417 - argument/data error
+
+
+
+
+
+
+ Status: 418 - argument/data error
+
+
+
+
+
+
+ Status: 500 - Internal Server Error
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetChannelsGet
+
+
+
+
+
+
+
+
+ /api/getChannels
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getChannels"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String host = host_example; // String |
+ try {
+ apiInstance.apiGetChannelsGet(host);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetChannelsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String host = host_example; // String |
+ try {
+ apiInstance.apiGetChannelsGet(host);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetChannelsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *host = host_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetChannelsGetWith:host
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'host': host_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetChannelsGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetChannelsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var host = host_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiGetChannelsGet(host);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetChannelsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$host = host_example; // String |
+
+try {
+ $api_instance->apiGetChannelsGet($host);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetChannelsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $host = host_example; # String |
+
+eval {
+ $api_instance->apiGetChannelsGet(host => $host);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetChannelsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+host = host_example # String | (optional)
+
+try:
+ api_instance.api_get_channels_get(host=host)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetChannelsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+ Header parameters
+
+
+ Name
+ Description
+
+ host
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 429 - Too Many Requests
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetFileIconIconGet
+
+
+
+
+
+
+
+
+ /api/getFileIcon/{icon}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getFileIcon/{icon}"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String icon = icon_example; // String |
+ try {
+ apiInstance.apiGetFileIconIconGet(icon);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetFileIconIconGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String icon = icon_example; // String |
+ try {
+ apiInstance.apiGetFileIconIconGet(icon);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetFileIconIconGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *icon = icon_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetFileIconIconGetWith:icon
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var icon = icon_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetFileIconIconGet(icon, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetFileIconIconGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var icon = icon_example; // String |
+
+ try
+ {
+ apiInstance.apiGetFileIconIconGet(icon);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetFileIconIconGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$icon = icon_example; // String |
+
+try {
+ $api_instance->apiGetFileIconIconGet($icon);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetFileIconIconGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $icon = icon_example; # String |
+
+eval {
+ $api_instance->apiGetFileIconIconGet(icon => $icon);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetFileIconIconGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+icon = icon_example # String |
+
+try:
+ api_instance.api_get_file_icon_icon_get(icon)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetFileIconIconGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ icon*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetPersonalPostsGet
+
+
+
+
+
+
+
+
+ /api/getPersonalPosts
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getPersonalPosts?otherperson="
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String otherperson = otherperson_example; // String |
+ try {
+ apiInstance.apiGetPersonalPostsGet(otherperson);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPersonalPostsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String otherperson = otherperson_example; // String |
+ try {
+ apiInstance.apiGetPersonalPostsGet(otherperson);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPersonalPostsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *otherperson = otherperson_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetPersonalPostsGetWith:otherperson
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'otherperson': otherperson_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetPersonalPostsGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetPersonalPostsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var otherperson = otherperson_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiGetPersonalPostsGet(otherperson);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetPersonalPostsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$otherperson = otherperson_example; // String |
+
+try {
+ $api_instance->apiGetPersonalPostsGet($otherperson);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetPersonalPostsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $otherperson = otherperson_example; # String |
+
+eval {
+ $api_instance->apiGetPersonalPostsGet(otherperson => $otherperson);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetPersonalPostsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+otherperson = otherperson_example # String | (optional)
+
+try:
+ api_instance.api_get_personal_posts_get(otherperson=otherperson)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetPersonalPostsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ otherperson
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetPostGet
+
+
+
+
+
+
+
+
+ /api/getPost
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getPost?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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
+ try {
+ apiInstance.apiGetPostGet(id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPostGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
+ try {
+ apiInstance.apiGetPostGet(id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPostGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *id = id_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetPostGetWith:id
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'id': id_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetPostGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetPostGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var id = id_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiGetPostGet(id);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetPostGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$id = id_example; // String |
+
+try {
+ $api_instance->apiGetPostGet($id);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetPostGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $id = id_example; # String |
+
+eval {
+ $api_instance->apiGetPostGet(id => $id);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetPostGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+id = id_example # String | (optional)
+
+try:
+ api_instance.api_get_post_get(id=id)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetPostGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ id
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetPostsGet
+
+
+
+
+
+
+
+
+ /api/getPosts
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getPosts?channel="
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String channel = channel_example; // String |
+ try {
+ apiInstance.apiGetPostsGet(channel);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
+ 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 |
+ try {
+ apiInstance.apiGetPostsGet(channel);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *channel = channel_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetPostsGetWith:channel
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'channel': channel_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetPostsGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetPostsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var channel = channel_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiGetPostsGet(channel);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetPostsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$channel = channel_example; // String |
+
+try {
+ $api_instance->apiGetPostsGet($channel);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetPostsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $channel = channel_example; # String |
+
+eval {
+ $api_instance->apiGetPostsGet(channel => $channel);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetPostsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+channel = channel_example # String | (optional)
+
+try:
+ api_instance.api_get_posts_get(channel=channel)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ channel
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetPostsLowerThanGet
+
+
+
+
+
+
+
+
+ /api/getPostsLowerThan
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ 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();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+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 defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+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()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ 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');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$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;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+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
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# 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)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ channel
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+ id
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetalluserinformationGet
+
+
+
+
+
+
+
+
+ /api/getalluserinformation
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getalluserinformation"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiGetalluserinformationGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetalluserinformationGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiGetalluserinformationGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetalluserinformationGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetalluserinformationGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetalluserinformationGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetalluserinformationGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiGetalluserinformationGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetalluserinformationGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiGetalluserinformationGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetalluserinformationGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiGetalluserinformationGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetalluserinformationGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_getalluserinformation_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetalluserinformationGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 401 - login error (invalid cookie)
+
+
+
+
+
+
+ Status: 402 - login error (bad cookie)
+
+
+
+
+
+
+ Status: 403 - login error (no cookie)
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetotheruserGet
+
+
+
+
+
+
+
+
+ /api/getotheruser
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//api/getotheruser?user="
+
+
+ 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 user = user_example; // String |
+ try {
+ apiInstance.apiGetotheruserGet(user);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetotheruserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String user = user_example; // String |
+ try {
+ apiInstance.apiGetotheruserGet(user);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetotheruserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *user = user_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetotheruserGetWith:user
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'user': user_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetotheruserGet(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetotheruserGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var user = user_example; // String | (optional)
+
+ try
+ {
+ apiInstance.apiGetotheruserGet(user);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetotheruserGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$user = user_example; // String |
+
+try {
+ $api_instance->apiGetotheruserGet($user);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetotheruserGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $user = user_example; # String |
+
+eval {
+ $api_instance->apiGetotheruserGet(user => $user);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetotheruserGet: $@\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()
+user = user_example # String | (optional)
+
+try:
+ api_instance.api_getotheruser_get(user=user)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetotheruserGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ user
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiGetuserGet
+
+
+
+
+
+
+
+
+ /api/getuser
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getuser"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiGetuserGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetuserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiGetuserGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiGetuserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiGetuserGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiGetuserGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiGetuserGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiGetuserGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiGetuserGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiGetuserGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiGetuserGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiGetuserGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiGetuserGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_getuser_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiGetuserGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiPidGet
+
+
+
+
+
+
+
+
+ /api/pid
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/pid"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiPidGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiPidGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiPidGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiPidGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiPidGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiPidGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiPidGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiPidGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiPidGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiPidGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiPidGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiPidGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiPidGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_pid_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiPidGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiPostPost
+
+
+
+
+
+
+
+
+ /api/post
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/post"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ Api_post_body body = ; // Api_post_body |
+ try {
+ apiInstance.apiPostPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiPostPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Api_post_body body = ; // Api_post_body |
+ try {
+ apiInstance.apiPostPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiPostPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Api_post_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiPostPostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
var opts = {
'body': // {{Api_post_body}}
};
@@ -3386,14 +5861,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.post(opts, callback);
+api.apiPostPost(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3402,22 +5877,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class postExample
+ public class apiPostPostExample
{
public void main()
{
- var apiInstance = new EveryoneApi();
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
var body = new Api_post_body(); // Api_post_body | (optional)
try
{
- // post a message
- apiInstance.post(body);
+ apiInstance.apiPostPost(body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling EveryoneApi.post: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiPostPost: " + e.Message );
}
}
}
@@ -3425,53 +5904,67 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiEveryoneApi();
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // Api_post_body |
try {
- $api_instance->post($body);
+ $api_instance->apiPostPost($body);
} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->post: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->apiPostPost: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
+use WWW::SwaggerClient::DefaultApi;
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Api_post_body->new(); # Api_post_body |
eval {
- $api_instance->post(body => $body);
+ $api_instance->apiPostPost(body => $body);
};
if ($@) {
- warn "Exception when calling EveryoneApi->post: $@\n";
+ warn "Exception when calling DefaultApi->apiPostPost: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
# create an instance of the API class
-api_instance = swagger_client.EveryoneApi()
+api_instance = swagger_client.DefaultApi()
body = # Api_post_body | (optional)
try:
- # post a message
- api_instance.post(body=body)
+ api_instance.api_post_post(body=body)
except ApiException as e:
- print("Exception when calling EveryoneApi->post: %s\n" % e)
+ print("Exception when calling DefaultApi->apiPostPost: %s\n" % e)
@@ -3493,14 +5986,15 @@ except ApiException as e:
$(document).ready(function() {
var schemaWrapper = {
"content" : {
- "application/json" : {
+ "*/*" : {
"schema" : {
"$ref" : "#/components/schemas/api_post_body"
}
}
- }
+ },
+ "required" : false
};
- var schema = schemaWrapper.content["application/json"].schema;
+ var schema = schemaWrapper.content["*/*"].schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
@@ -3512,12 +6006,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_post_body');
+ var result = $('#d2e199_apiPostPost_body');
result.empty();
result.append(view.render());
});
-
+
@@ -3525,8 +6019,7 @@ except ApiException as e:
Responses
- Status: 200 - successfully got information
-
+ Status: 200 - OK
@@ -3534,7 +6027,7 @@ except ApiException as e:
- Status: 400 - no or bad login cookie
+ Status: 500 - Internal Server Error
@@ -3545,95 +6038,110 @@ except ApiException as e:
-
-
+
+
- register
- registers a new user
+ apiSearchGet
+
- registers a new user
+
- /register
+ /api/search
Usage and SDK Samples
-
- curl -X POST\
--H "Content-Type: application/json"\
-"https://ipost.tk/register"
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/search?type=&selector="
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.EveryoneApi;
+import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
-
- EveryoneApi apiInstance = new EveryoneApi();
- Register_body body = ; // Register_body |
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ String type = type_example; // String |
+ String selector = selector_example; // String |
try {
- apiInstance.register(body);
+ apiInstance.apiSearchGet(type, selector);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#register");
+ System.err.println("Exception when calling DefaultApi#apiSearchGet");
e.printStackTrace();
}
}
}
-
- import io.swagger.client.api.EveryoneApi;
+
+ import io.swagger.client.api.DefaultApi;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
- Register_body body = ; // Register_body |
+ DefaultApi apiInstance = new DefaultApi();
+ String type = type_example; // String |
+ String selector = selector_example; // String |
try {
- apiInstance.register(body);
+ apiInstance.apiSearchGet(type, selector);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#register");
+ System.err.println("Exception when calling DefaultApi#apiSearchGet");
e.printStackTrace();
}
}
}
-
- Register_body *body = ; // (optional)
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+String *type = type_example; // (optional)
+String *selector = selector_example; // (optional)
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
-// registers a new user
-[apiInstance registerWith:body
+[apiInstance apiSearchGetWith:type
+ selector:selector
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -3642,12 +6150,20 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
-var api = new SimplePostsaccountApi.EveryoneApi()
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
var opts = {
- 'body': // {{Register_body}}
+ 'type': type_example, // {{String}}
+ 'selector': selector_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
@@ -3656,14 +6172,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.register(opts, callback);
+api.apiSearchGet(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3672,22 +6188,27 @@ using IO.Swagger.Model;
namespace Example
{
- public class registerExample
+ public class apiSearchGetExample
{
public void main()
{
- var apiInstance = new EveryoneApi();
- var body = new Register_body(); // Register_body | (optional)
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var type = type_example; // String | (optional)
+ var selector = selector_example; // String | (optional)
try
{
- // registers a new user
- apiInstance.register(body);
+ apiInstance.apiSearchGet(type, selector);
}
catch (Exception e)
{
- Debug.Print("Exception when calling EveryoneApi.register: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiSearchGet: " + e.Message );
}
}
}
@@ -3695,340 +6216,70 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiEveryoneApi();
-$body = ; // Register_body |
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$type = type_example; // String |
+$selector = selector_example; // String |
try {
- $api_instance->register($body);
+ $api_instance->apiSearchGet($type, $selector);
} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->register: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->apiSearchGet: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
+use WWW::SwaggerClient::DefaultApi;
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
-my $body = WWW::SwaggerClient::Object::Register_body->new(); # Register_body |
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $type = type_example; # String |
+my $selector = selector_example; # String |
eval {
- $api_instance->register(body => $body);
+ $api_instance->apiSearchGet(type => $type, selector => $selector);
};
if ($@) {
- warn "Exception when calling EveryoneApi->register: $@\n";
+ warn "Exception when calling DefaultApi->apiSearchGet: $@\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
-
-
-
-
-
-
-
-
-
-
-
-
- search
- returns information about the searched term
-
-
-
-
- When a valid cookie is set, the API will return the search result
-
-
-
- /api/search
-
-
Usage and SDK Samples
-
-
-
-
-
- curl -X GET\
--H "Accept: application/json"\
-"https://ipost.tk/api/search?type=&selector="
-
-
- 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 type = type_example; // String | what to search for ("user" or "post")
- String selector = selector_example; // String | what term to search for
- try {
- array[inline_response_200] result = apiInstance.search(type, selector);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#search");
- e.printStackTrace();
- }
- }
-}
-
-
-
- import io.swagger.client.api.EveryoneApi;
-
-public class EveryoneApiExample {
-
- public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
- String type = type_example; // String | what to search for ("user" or "post")
- String selector = selector_example; // String | what term to search for
- try {
- array[inline_response_200] result = apiInstance.search(type, selector);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#search");
- e.printStackTrace();
- }
- }
-}
-
-
-
- String *type = type_example; // what to search for ("user" or "post")
-String *selector = selector_example; // what term to search for
-
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
-// returns information about the searched term
-[apiInstance searchWith:type
- selector:selector
- completionHandler: ^(array[inline_response_200] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
- if (error) {
- NSLog(@"Error: %@", error);
- }
- }];
-
-
-
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
-
-var api = new SimplePostsaccountApi.EveryoneApi()
-var type = type_example; // {{String}} what to search for ("user" or "post")
-var selector = selector_example; // {{String}} what term to search for
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.search(type, selector, callback);
-
-
-
-
-
- using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
- public class searchExample
- {
- public void main()
- {
-
- var apiInstance = new EveryoneApi();
- var type = type_example; // String | what to search for ("user" or "post")
- var selector = selector_example; // String | what term to search for
-
- try
- {
- // returns information about the searched term
- array[inline_response_200] result = apiInstance.search(type, selector);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling EveryoneApi.search: " + e.Message );
- }
- }
- }
-}
-
-
-
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiEveryoneApi();
-$type = type_example; // String | what to search for ("user" or "post")
-$selector = selector_example; // String | what term to search for
-
-try {
- $result = $api_instance->search($type, $selector);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->search: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
-
-
- use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
-
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
-my $type = type_example; # String | what to search for ("user" or "post")
-my $selector = selector_example; # String | what term to search for
-
-eval {
- my $result = $api_instance->search(type => $type, selector => $selector);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling EveryoneApi->search: $@\n";
-}
-
-
-
- from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
# create an instance of the API class
-api_instance = swagger_client.EveryoneApi()
-type = type_example # String | what to search for ("user" or "post")
-selector = selector_example # String | what term to search for
+api_instance = swagger_client.DefaultApi()
+type = type_example # String | (optional)
+selector = selector_example # String | (optional)
try:
- # returns information about the searched term
- api_response = api_instance.search(type, selector)
- pprint(api_response)
+ api_instance.api_search_get(type=type, selector=selector)
except ApiException as e:
- print("Exception when calling EveryoneApi->search: %s\n" % e)
+ print("Exception when calling DefaultApi->apiSearchGet: %s\n" % e)
@@ -4044,46 +6295,34 @@ except ApiException as e:
Name
Description
- type*
+ type
-
+
String
-
- what to search for ("user" or "post")
-
-
- Required
-
- selector*
+ selector
-
+
String
-
- what term to search for
-
-
- Required
-
@@ -4091,59 +6330,7 @@ except ApiException as e:
Responses
- Status: 200 - successfully got information
-
-
-
-
-
-
-
-
-
-
-
-
- Status: 400 - no or bad login cookie
+ Status: 200 - OK
@@ -4154,16 +6341,16 @@ except ApiException as e:
-
-
+
+
- setBio
- sets the bio of the current user
+ apiSetBioPost
+
- sets the bio of the currently logged in user (identified via cookie, or given user+password)
+
/api/setBio
@@ -4171,78 +6358,90 @@ except ApiException as e:
Usage and SDK Samples
-
+
curl -X POST\
--H "Content-Type: application/json"\
-"https://ipost.tk/api/setBio"
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/setBio"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.EveryoneApi;
+import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
-
- EveryoneApi apiInstance = new EveryoneApi();
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
Api_setBio_body body = ; // Api_setBio_body |
try {
- apiInstance.setBio(body);
+ apiInstance.apiSetBioPost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#setBio");
+ System.err.println("Exception when calling DefaultApi#apiSetBioPost");
e.printStackTrace();
}
}
}
-
- import io.swagger.client.api.EveryoneApi;
+
+ import io.swagger.client.api.DefaultApi;
-public class EveryoneApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- EveryoneApi apiInstance = new EveryoneApi();
+ DefaultApi apiInstance = new DefaultApi();
Api_setBio_body body = ; // Api_setBio_body |
try {
- apiInstance.setBio(body);
+ apiInstance.apiSetBioPost(body);
} catch (ApiException e) {
- System.err.println("Exception when calling EveryoneApi#setBio");
+ System.err.println("Exception when calling DefaultApi#apiSetBioPost");
e.printStackTrace();
}
}
}
-
- Api_setBio_body *body = ; // (optional)
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Api_setBio_body *body = ; // (optional)
-EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
-// sets the bio of the current user
-[apiInstance setBioWith:body
+[apiInstance apiSetBioPostWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -4251,10 +6450,17 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
-
- var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
-var api = new SimplePostsaccountApi.EveryoneApi()
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
var opts = {
'body': // {{Api_setBio_body}}
};
@@ -4265,14 +6471,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.setBio(opts, callback);
+api.apiSetBioPost(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -4281,22 +6487,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class setBioExample
+ public class apiSetBioPostExample
{
public void main()
{
- var apiInstance = new EveryoneApi();
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
var body = new Api_setBio_body(); // Api_setBio_body | (optional)
try
{
- // sets the bio of the current user
- apiInstance.setBio(body);
+ apiInstance.apiSetBioPost(body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling EveryoneApi.setBio: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiSetBioPost: " + e.Message );
}
}
}
@@ -4304,53 +6514,67 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiEveryoneApi();
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // Api_setBio_body |
try {
- $api_instance->setBio($body);
+ $api_instance->apiSetBioPost($body);
} catch (Exception $e) {
- echo 'Exception when calling EveryoneApi->setBio: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->apiSetBioPost: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::EveryoneApi;
+use WWW::SwaggerClient::DefaultApi;
-my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Api_setBio_body->new(); # Api_setBio_body |
eval {
- $api_instance->setBio(body => $body);
+ $api_instance->apiSetBioPost(body => $body);
};
if ($@) {
- warn "Exception when calling EveryoneApi->setBio: $@\n";
+ warn "Exception when calling DefaultApi->apiSetBioPost: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
# create an instance of the API class
-api_instance = swagger_client.EveryoneApi()
+api_instance = swagger_client.DefaultApi()
body = # Api_setBio_body | (optional)
try:
- # sets the bio of the current user
- api_instance.set_bio(body=body)
+ api_instance.api_set_bio_post(body=body)
except ApiException as e:
- print("Exception when calling EveryoneApi->setBio: %s\n" % e)
+ print("Exception when calling DefaultApi->apiSetBioPost: %s\n" % e)
@@ -4372,14 +6596,15 @@ except ApiException as e:
$(document).ready(function() {
var schemaWrapper = {
"content" : {
- "application/json" : {
+ "*/*" : {
"schema" : {
"$ref" : "#/components/schemas/api_setBio_body"
}
}
- }
+ },
+ "required" : false
};
- var schema = schemaWrapper.content["application/json"].schema;
+ var schema = schemaWrapper.content["*/*"].schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
@@ -4391,12 +6616,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_setBio_body');
+ var result = $('#d2e199_apiSetBioPost_body');
result.empty();
result.append(view.render());
});
-
+
@@ -4404,8 +6629,7 @@ except ApiException as e:
Responses
- Status: 200 - successfully set bio
-
+ Status: 200 - OK
@@ -4413,7 +6637,4243 @@ except ApiException as e:
- Status: 400 - no or bad login cookie, or no Bio passed along
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+
+
+
+
+
+
+ apiSetavatarPost
+
+
+
+
+
+
+
+
+ /api/setavatar
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/setavatar"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiSetavatarPost();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSetavatarPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiSetavatarPost();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSetavatarPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiSetavatarPostWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiSetavatarPost(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiSetavatarPostExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiSetavatarPost();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiSetavatarPost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiSetavatarPost();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiSetavatarPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiSetavatarPost();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiSetavatarPost: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_setavatar_post()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiSetavatarPost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 500 - Internal Server Error
+
+
+
+
+
+
+
+
+
+
+
+
+ apiSettingsGet
+
+
+
+
+
+
+
+
+ /api/settings
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/settings"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiSettingsGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSettingsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.apiSettingsGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSettingsGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiSettingsGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiSettingsGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiSettingsGetExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.apiSettingsGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiSettingsGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->apiSettingsGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiSettingsGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->apiSettingsGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiSettingsGet: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+
+try:
+ api_instance.api_settings_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiSettingsGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+
+
+
+
+
+
+ apiSettingsPost
+
+
+
+
+
+
+
+
+ /api/settings
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
+-H "Content-Type: */*"\
+"https://ipost.rocks//api/settings"
+
+
+ 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) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: appTokenAuthHeader
+ ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
+ appTokenAuthHeader.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //appTokenAuthHeader.setApiKeyPrefix("Token");
+
+ DefaultApi apiInstance = new DefaultApi();
+ Api_settings_body body = ; // Api_settings_body |
+ try {
+ apiInstance.apiSettingsPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSettingsPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Api_settings_body body = ; // Api_settings_body |
+ try {
+ apiInstance.apiSettingsPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#apiSettingsPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
+Api_settings_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance apiSettingsPostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+var defaultClient = IPostApi.ApiClient.instance;
+
+// Configure API key authorization: appTokenAuthHeader
+var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
+appTokenAuthHeader.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'body': // {{Api_settings_body}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.apiSettingsPost(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class apiSettingsPostExample
+ {
+ public void main()
+ {
+
+ // Configure API key authorization: appTokenAuthHeader
+ Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
+
+ var apiInstance = new DefaultApi();
+ var body = new Api_settings_body(); // Api_settings_body | (optional)
+
+ try
+ {
+ apiInstance.apiSettingsPost(body);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.apiSettingsPost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: appTokenAuthHeader
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Api_settings_body |
+
+try {
+ $api_instance->apiSettingsPost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->apiSettingsPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+# Configure API key authorization: appTokenAuthHeader
+$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Api_settings_body->new(); # Api_settings_body |
+
+eval {
+ $api_instance->apiSettingsPost(body => $body);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->apiSettingsPost: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: appTokenAuthHeader
+swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+body = # Api_settings_body | (optional)
+
+try:
+ api_instance.api_settings_post(body=body)
+except ApiException as e:
+ print("Exception when calling DefaultApi->apiSettingsPost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 412 - argument/data error
+
+
+
+
+
+
+ Status: 500 - Internal Server Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ avatarsAvatarGet
+
+
+
+
+
+
+
+
+ /avatars/{avatar}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//avatars/{avatar}"
+
+
+ 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 avatar = avatar_example; // String |
+ try {
+ apiInstance.avatarsAvatarGet(avatar);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#avatarsAvatarGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String avatar = avatar_example; // String |
+ try {
+ apiInstance.avatarsAvatarGet(avatar);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#avatarsAvatarGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *avatar = avatar_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance avatarsAvatarGetWith:avatar
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var avatar = avatar_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.avatarsAvatarGet(avatar, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class avatarsAvatarGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var avatar = avatar_example; // String |
+
+ try
+ {
+ apiInstance.avatarsAvatarGet(avatar);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.avatarsAvatarGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$avatar = avatar_example; // String |
+
+try {
+ $api_instance->avatarsAvatarGet($avatar);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->avatarsAvatarGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $avatar = avatar_example; # String |
+
+eval {
+ $api_instance->avatarsAvatarGet(avatar => $avatar);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->avatarsAvatarGet: $@\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()
+avatar = avatar_example # String |
+
+try:
+ api_instance.avatars_avatar_get(avatar)
+except ApiException as e:
+ print("Exception when calling DefaultApi->avatarsAvatarGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ avatar*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+ cssFileGet
+
+
+
+
+
+
+
+
+ /css/{file}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//css/{file}"
+
+
+ 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 file = file_example; // String |
+ try {
+ apiInstance.cssFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#cssFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String file = file_example; // String |
+ try {
+ apiInstance.cssFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#cssFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *file = file_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance cssFileGetWith:file
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var file = file_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.cssFileGet(file, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class cssFileGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var file = file_example; // String |
+
+ try
+ {
+ apiInstance.cssFileGet(file);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.cssFileGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
+
+try {
+ $api_instance->cssFileGet($file);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->cssFileGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $file = file_example; # String |
+
+eval {
+ $api_instance->cssFileGet(file => $file);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->cssFileGet: $@\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()
+file = file_example # String |
+
+try:
+ api_instance.css_file_get(file)
+except ApiException as e:
+ print("Exception when calling DefaultApi->cssFileGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+ fileGet
+
+
+
+
+
+
+
+
+ /{file}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//{file}?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 file = file_example; // String |
+ String id = id_example; // String |
+ try {
+ apiInstance.fileGet(file, id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#fileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String file = file_example; // String |
+ String id = id_example; // String |
+ try {
+ apiInstance.fileGet(file, id);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#fileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *file = file_example; //
+String *id = id_example; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance fileGetWith:file
+ id:id
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var file = file_example; // {{String}}
+var opts = {
+ 'id': id_example // {{String}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.fileGet(file, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class fileGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var file = file_example; // String |
+ var id = id_example; // String | (optional)
+
+ try
+ {
+ apiInstance.fileGet(file, id);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.fileGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
+$id = id_example; // String |
+
+try {
+ $api_instance->fileGet($file, $id);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->fileGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $file = file_example; # String |
+my $id = id_example; # String |
+
+eval {
+ $api_instance->fileGet(file => $file, id => $id);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->fileGet: $@\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()
+file = file_example # String |
+id = id_example # String | (optional)
+
+try:
+ api_instance.file_get(file, id=id)
+except ApiException as e:
+ print("Exception when calling DefaultApi->fileGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ id
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+ Status: 500 - Internal Server Error
+
+
+
+
+
+
+
+
+
+
+
+
+ imagesFileGet
+
+
+
+
+
+
+
+
+ /images/{file}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//images/{file}"
+
+
+ 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 file = file_example; // String |
+ try {
+ apiInstance.imagesFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#imagesFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String file = file_example; // String |
+ try {
+ apiInstance.imagesFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#imagesFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *file = file_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance imagesFileGetWith:file
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var file = file_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.imagesFileGet(file, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class imagesFileGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var file = file_example; // String |
+
+ try
+ {
+ apiInstance.imagesFileGet(file);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.imagesFileGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
+
+try {
+ $api_instance->imagesFileGet($file);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->imagesFileGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $file = file_example; # String |
+
+eval {
+ $api_instance->imagesFileGet(file => $file);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->imagesFileGet: $@\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()
+file = file_example # String |
+
+try:
+ api_instance.images_file_get(file)
+except ApiException as e:
+ print("Exception when calling DefaultApi->imagesFileGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+ jsFileGet
+
+
+
+
+
+
+
+
+ /js/{file}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//js/{file}"
+
+
+ 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 file = file_example; // String |
+ try {
+ apiInstance.jsFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#jsFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String file = file_example; // String |
+ try {
+ apiInstance.jsFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#jsFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *file = file_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance jsFileGetWith:file
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var file = file_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.jsFileGet(file, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class jsFileGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var file = file_example; // String |
+
+ try
+ {
+ apiInstance.jsFileGet(file);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.jsFileGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
+
+try {
+ $api_instance->jsFileGet($file);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->jsFileGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $file = file_example; # String |
+
+eval {
+ $api_instance->jsFileGet(file => $file);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->jsFileGet: $@\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()
+file = file_example # String |
+
+try:
+ api_instance.js_file_get(file)
+except ApiException as e:
+ print("Exception when calling DefaultApi->jsFileGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+ loginPost
+
+
+
+
+
+
+
+
+ /login
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "Content-Type: */*"\
+"https://ipost.rocks//login"
+
+
+ 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();
+ Login_body body = ; // Login_body |
+ try {
+ apiInstance.loginPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#loginPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Login_body body = ; // Login_body |
+ try {
+ apiInstance.loginPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#loginPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Login_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance loginPostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'body': // {{Login_body}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.loginPost(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class loginPostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var body = new Login_body(); // Login_body | (optional)
+
+ try
+ {
+ apiInstance.loginPost(body);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.loginPost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Login_body |
+
+try {
+ $api_instance->loginPost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->loginPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Login_body->new(); # Login_body |
+
+eval {
+ $api_instance->loginPost(body => $body);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->loginPost: $@\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()
+body = # Login_body | (optional)
+
+try:
+ api_instance.login_post(body=body)
+except ApiException as e:
+ print("Exception when calling DefaultApi->loginPost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 412 - argument/data error
+
+
+
+
+
+
+ Status: 413 - argument/data error
+
+
+
+
+
+
+ Status: 414 - argument/data error
+
+
+
+
+
+
+ Status: 415 - argument/data error
+
+
+
+
+
+
+ Status: 416 - argument/data error
+
+
+
+
+
+
+ Status: 417 - argument/data error
+
+
+
+
+
+
+
+
+
+
+
+
+ logoutGet
+
+
+
+
+
+
+
+
+ /logout
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//logout"
+
+
+ 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();
+ try {
+ apiInstance.logoutGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#logoutGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.logoutGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#logoutGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance logoutGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.logoutGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class logoutGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.logoutGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.logoutGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->logoutGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->logoutGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->logoutGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->logoutGet: $@\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()
+
+try:
+ api_instance.logout_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->logoutGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ redeemauthcodePost
+
+
+
+
+
+
+
+
+ /redeemauthcode
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "Content-Type: */*"\
+"https://ipost.rocks//redeemauthcode"
+
+
+ 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();
+ Redeemauthcode_body body = ; // Redeemauthcode_body |
+ try {
+ apiInstance.redeemauthcodePost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#redeemauthcodePost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Redeemauthcode_body body = ; // Redeemauthcode_body |
+ try {
+ apiInstance.redeemauthcodePost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#redeemauthcodePost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Redeemauthcode_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance redeemauthcodePostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'body': // {{Redeemauthcode_body}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.redeemauthcodePost(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class redeemauthcodePostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var body = new Redeemauthcode_body(); // Redeemauthcode_body | (optional)
+
+ try
+ {
+ apiInstance.redeemauthcodePost(body);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.redeemauthcodePost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Redeemauthcode_body |
+
+try {
+ $api_instance->redeemauthcodePost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->redeemauthcodePost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Redeemauthcode_body->new(); # Redeemauthcode_body |
+
+eval {
+ $api_instance->redeemauthcodePost(body => $body);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->redeemauthcodePost: $@\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()
+body = # Redeemauthcode_body | (optional)
+
+try:
+ api_instance.redeemauthcode_post(body=body)
+except ApiException as e:
+ print("Exception when calling DefaultApi->redeemauthcodePost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 400 - Bad Request
+
+
+
+
+
+
+ Status: 420 - invalid authetication object
+
+
+
+
+
+
+
+
+
+
+
+
+ registerPost
+
+
+
+
+
+
+
+
+ /register
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST\
+-H "Content-Type: */*"\
+"https://ipost.rocks//register"
+
+
+ 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();
+ Register_body body = ; // Register_body |
+ try {
+ apiInstance.registerPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#registerPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ Register_body body = ; // Register_body |
+ try {
+ apiInstance.registerPost(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#registerPost");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Register_body *body = ; // (optional)
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance registerPostWith:body
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var opts = {
+ 'body': // {{Register_body}}
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.registerPost(opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class registerPostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var body = new Register_body(); // Register_body | (optional)
+
+ try
+ {
+ apiInstance.registerPost(body);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.registerPost: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$body = ; // Register_body |
+
+try {
+ $api_instance->registerPost($body);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->registerPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::Register_body->new(); # Register_body |
+
+eval {
+ $api_instance->registerPost(body => $body);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->registerPost: $@\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()
+body = # Register_body | (optional)
+
+try:
+ api_instance.register_post(body=body)
+except ApiException as e:
+ print("Exception when calling DefaultApi->registerPost: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 410 - argument/data error
+
+
+
+
+
+
+ Status: 411 - argument/data error
+
+
+
+
+
+
+ Status: 412 - argument/data error
+
+
+
+
+
+
+ Status: 413 - argument/data error
+
+
+
+
+
+
+ Status: 414 - argument/data error
+
+
+
+
+
+
+ Status: 415 - argument/data error
+
+
+
+
+
+
+ Status: 416 - argument/data error
+
+
+
+
+
+
+ Status: 417 - argument/data error
+
+
+
+
+
+
+ Status: 418 - argument/data error
+
+
+
+
+
+
+
+
+
+
+
+
+ rootGet
+
+
+
+
+
+
+
+
+ /
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//"
+
+
+ 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();
+ try {
+ apiInstance.rootGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#rootGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ try {
+ apiInstance.rootGet();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#rootGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance rootGetWithCompletionHandler:
+ ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.rootGet(callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class rootGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+
+ try
+ {
+ apiInstance.rootGet();
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.rootGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+
+try {
+ $api_instance->rootGet();
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->rootGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+
+eval {
+ $api_instance->rootGet();
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->rootGet: $@\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()
+
+try:
+ api_instance.root_get()
+except ApiException as e:
+ print("Exception when calling DefaultApi->rootGet: %s\n" % e)
+
+
+
+ Parameters
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ userUploadsFileGet
+
+
+
+
+
+
+
+
+ /user_uploads/{file}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//user_uploads/{file}"
+
+
+ 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 file = file_example; // String |
+ try {
+ apiInstance.userUploadsFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#userUploadsFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String file = file_example; // String |
+ try {
+ apiInstance.userUploadsFileGet(file);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#userUploadsFileGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *file = file_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance userUploadsFileGetWith:file
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var file = file_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.userUploadsFileGet(file, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class userUploadsFileGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var file = file_example; // String |
+
+ try
+ {
+ apiInstance.userUploadsFileGet(file);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.userUploadsFileGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
+
+try {
+ $api_instance->userUploadsFileGet($file);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->userUploadsFileGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $file = file_example; # String |
+
+eval {
+ $api_instance->userUploadsFileGet(file => $file);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->userUploadsFileGet: $@\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()
+file = file_example # String |
+
+try:
+ api_instance.user_uploads_file_get(file)
+except ApiException as e:
+ print("Exception when calling DefaultApi->userUploadsFileGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
+
+
+
+
+
+
+ Status: 404 - Not Found
+
+
+
+
+
+
+
+
+
+
+
+
+ usersUserGet
+
+
+
+
+
+
+
+
+ /users/{user}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET\
+"https://ipost.rocks//users/{user}"
+
+
+ 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 user = user_example; // String |
+ try {
+ apiInstance.usersUserGet(user);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#usersUserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import io.swagger.client.api.DefaultApi;
+
+public class DefaultApiExample {
+
+ public static void main(String[] args) {
+ DefaultApi apiInstance = new DefaultApi();
+ String user = user_example; // String |
+ try {
+ apiInstance.usersUserGet(user);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#usersUserGet");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ String *user = user_example; //
+
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+
+[apiInstance usersUserGetWith:user
+ completionHandler: ^(NSError* error) {
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+ var IPostApi = require('i_post_api');
+
+var api = new IPostApi.DefaultApi()
+var user = user_example; // {{String}}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+api.usersUserGet(user, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class usersUserGetExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DefaultApi();
+ var user = user_example; // String |
+
+ try
+ {
+ apiInstance.usersUserGet(user);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DefaultApi.usersUserGet: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiDefaultApi();
+$user = user_example; // String |
+
+try {
+ $api_instance->usersUserGet($user);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->usersUserGet: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
+
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $user = user_example; # String |
+
+eval {
+ $api_instance->usersUserGet(user => $user);
+};
+if ($@) {
+ warn "Exception when calling DefaultApi->usersUserGet: $@\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()
+user = user_example # String |
+
+try:
+ api_instance.users_user_get(user)
+except ApiException as e:
+ print("Exception when calling DefaultApi->usersUserGet: %s\n" % e)
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ user*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+ Status: 200 - OK
@@ -4430,7 +10890,7 @@ except ApiException as e: