apiGetFileIconGet
+apiGetFileIconIconGet
-
/api/getFileIcon/*
+ /api/getFileIcon/{icon}
Usage and SDK Samples
curl -X GET\
-"https://ipost.rocks//api/getFileIcon/*"
+-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.*;
@@ -3031,44 +3349,59 @@ 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.apiGetFileIconGet();
+ apiInstance.apiGetFileIconIconGet(icon);
} catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#apiGetFileIconGet");
+ 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.apiGetFileIconGet();
+ apiInstance.apiGetFileIconIconGet(icon);
} catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#apiGetFileIconGet");
+ 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 apiGetFileIconGetWithCompletionHandler:
- ^(NSError* error) {
+[apiInstance apiGetFileIconIconGetWith:icon
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -3076,10 +3409,19 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
-
+
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);
@@ -3087,14 +3429,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.apiGetFileIconGet(callback);
+api.apiGetFileIconIconGet(icon, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3103,20 +3445,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class apiGetFileIconGetExample
+ 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.apiGetFileIconGet();
+ apiInstance.apiGetFileIconIconGet(icon);
}
catch (Exception e)
{
- Debug.Print("Exception when calling DefaultApi.apiGetFileIconGet: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.apiGetFileIconIconGet: " + e.Message );
}
}
}
@@ -3124,54 +3472,98 @@ namespace Example
-
+
<?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->apiGetFileIconGet();
+ $api_instance->apiGetFileIconIconGet($icon);
} catch (Exception $e) {
- echo 'Exception when calling DefaultApi->apiGetFileIconGet: ', $e->getMessage(), PHP_EOL;
+ 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->apiGetFileIconGet();
+ $api_instance->apiGetFileIconIconGet(icon => $icon);
};
if ($@) {
- warn "Exception when calling DefaultApi->apiGetFileIconGet: $@\n";
+ 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_get()
+ api_instance.api_get_file_icon_icon_get(icon)
except ApiException as e:
- print("Exception when calling DefaultApi->apiGetFileIconGet: %s\n" % e)
+ print("Exception when calling DefaultApi->apiGetFileIconIconGet: %s\n" % e)
Parameters
+ Path parameters
+
+
+ Name
+ Description
+
+ icon*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
@@ -3186,7 +3578,7 @@ except ApiException as e:
- Status: 410 - Gone
+ Status: 410 - argument/data error
@@ -3230,6 +3622,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/getPersonalPosts?otherperson="
@@ -3244,7 +3637,14 @@ 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 {
@@ -3279,7 +3679,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- String *otherperson = otherperson_example; // (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 *otherperson = otherperson_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -3294,6 +3699,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -3327,6 +3739,11 @@ namespace Example
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)
@@ -3348,6 +3765,11 @@ namespace Example
<?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 |
@@ -3364,6 +3786,11 @@ try {
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 |
@@ -3382,6 +3809,11 @@ 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)
@@ -3432,7 +3864,7 @@ except ApiException as e:
- Status: 410 - Gone
+ Status: 410 - argument/data error
@@ -3476,6 +3908,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/getPost?id="
@@ -3490,7 +3923,14 @@ 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 {
@@ -3525,7 +3965,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- String *id = id_example; // (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 *id = id_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -3540,6 +3985,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -3573,6 +4025,11 @@ namespace Example
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)
@@ -3594,6 +4051,11 @@ namespace Example
<?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 |
@@ -3610,6 +4072,11 @@ try {
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 |
@@ -3628,6 +4095,11 @@ 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)
@@ -3693,7 +4165,7 @@ except ApiException as e:
- /api/getPosts/*
+ /api/getPosts
Usage and SDK Samples
@@ -3714,7 +4186,8 @@ except ApiException as e:
curl -X GET\
-"https://ipost.rocks//api/getPosts/*"
+-H "ipost-auth-token: [[apiKey]]"\
+"https://ipost.rocks//api/getPosts?channel="
import io.swagger.client.*;
@@ -3728,10 +4201,18 @@ 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();
+ apiInstance.apiGetPostsGet(channel);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
e.printStackTrace();
@@ -3747,8 +4228,9 @@ public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
+ String channel = channel_example; // String |
try {
- apiInstance.apiGetPostsGet();
+ apiInstance.apiGetPostsGet(channel);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
e.printStackTrace();
@@ -3761,11 +4243,17 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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 apiGetPostsGetWithCompletionHandler:
- ^(NSError* error) {
+[apiInstance apiGetPostsGetWith:channel
+ completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
@@ -3775,8 +4263,18 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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);
@@ -3784,7 +4282,7 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.apiGetPostsGet(callback);
+api.apiGetPostsGet(opts, callback);
@@ -3805,11 +4303,17 @@ namespace Example
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();
+ apiInstance.apiGetPostsGet(channel);
}
catch (Exception e)
{
@@ -3825,10 +4329,16 @@ namespace Example
<?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();
+ $api_instance->apiGetPostsGet($channel);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiGetPostsGet: ', $e->getMessage(), PHP_EOL;
}
@@ -3840,10 +4350,16 @@ try {
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();
+ $api_instance->apiGetPostsGet(channel => $channel);
};
if ($@) {
warn "Exception when calling DefaultApi->apiGetPostsGet: $@\n";
@@ -3857,220 +4373,19 @@ 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.api_get_posts_get()
-except ApiException as e:
- print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
-
-
-
- Parameters
-
-
-
-
-
-
- Responses
-
-
-
-
-
-
- apiGetPostsGet_1
-
-
-
-
-
-
-
-
- /api/getPosts
-
-
Usage and SDK Samples
-
-
-
-
-
- curl -X GET\
-"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) {
-
- DefaultApi apiInstance = new DefaultApi();
- String channel = channel_example; // String |
- try {
- apiInstance.apiGetPostsGet_0(channel);
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#apiGetPostsGet_0");
- 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_0(channel);
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#apiGetPostsGet_0");
- e.printStackTrace();
- }
- }
-}
-
-
-
- String *channel = channel_example; // (optional)
-
-DefaultApi *apiInstance = [[DefaultApi alloc] init];
-
-[apiInstance apiGetPostsGet_1With:channel
- completionHandler: ^(NSError* error) {
- if (error) {
- NSLog(@"Error: %@", error);
- }
- }];
-
-
-
-
- var IPostApi = require('i_post_api');
-
-var api = new IPostApi.DefaultApi()
-var opts = {
- 'channel': channel_example // {{String}}
-};
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-api.apiGetPostsGet_0(opts, callback);
-
-
-
-
-
- using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
- public class apiGetPostsGet_0Example
- {
- public void main()
- {
-
- var apiInstance = new DefaultApi();
- var channel = channel_example; // String | (optional)
-
- try
- {
- apiInstance.apiGetPostsGet_0(channel);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling DefaultApi.apiGetPostsGet_0: " + e.Message );
- }
- }
- }
-}
-
-
-
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiDefaultApi();
-$channel = channel_example; // String |
-
-try {
- $api_instance->apiGetPostsGet_0($channel);
-} catch (Exception $e) {
- echo 'Exception when calling DefaultApi->apiGetPostsGet_0: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
-
-
- use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::DefaultApi;
-
-my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $channel = channel_example; # String |
-
-eval {
- $api_instance->apiGetPostsGet_0(channel => $channel);
-};
-if ($@) {
- warn "Exception when calling DefaultApi->apiGetPostsGet_0: $@\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_0(channel=channel)
+ api_instance.api_get_posts_get(channel=channel)
except ApiException as e:
- print("Exception when calling DefaultApi->apiGetPostsGet_0: %s\n" % e)
+ print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
@@ -4090,7 +4405,7 @@ except ApiException as e:
-
+
@@ -4149,6 +4464,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/getPostsLowerThan?channel=&id="
@@ -4163,7 +4479,14 @@ 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 |
@@ -4200,7 +4523,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- String *channel = channel_example; // (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 *channel = channel_example; // (optional)
String *id = id_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -4217,6 +4545,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -4251,6 +4586,11 @@ namespace Example
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)
@@ -4273,6 +4613,11 @@ namespace Example
<?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 |
@@ -4290,6 +4635,11 @@ try {
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 |
@@ -4309,6 +4659,11 @@ 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)
@@ -4412,6 +4767,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/getalluserinformation"
@@ -4426,7 +4782,14 @@ 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();
@@ -4459,7 +4822,12 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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:
@@ -4473,6 +4841,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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) {
@@ -4503,6 +4878,11 @@ namespace Example
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
@@ -4523,6 +4903,11 @@ namespace Example
<?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 {
@@ -4538,6 +4923,11 @@ try {
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 {
@@ -4555,6 +4945,11 @@ 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()
@@ -4581,7 +4976,7 @@ except ApiException as e:
- Status: 401 - Unauthorized
+ Status: 401 - login error (invalid cookie)
@@ -4589,7 +4984,7 @@ except ApiException as e:
- Status: 402 - Payment Required
+ Status: 402 - login error (bad cookie)
@@ -4597,7 +4992,7 @@ except ApiException as e:
- Status: 403 - Forbidden
+ Status: 403 - login error (no cookie)
@@ -4879,6 +5274,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/getuser"
@@ -4893,7 +5289,14 @@ 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();
@@ -4926,7 +5329,12 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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:
@@ -4940,6 +5348,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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) {
@@ -4970,6 +5385,11 @@ namespace Example
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
@@ -4990,6 +5410,11 @@ namespace Example
<?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 {
@@ -5005,6 +5430,11 @@ try {
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 {
@@ -5022,6 +5452,11 @@ 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()
@@ -5084,6 +5519,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/pid"
@@ -5098,7 +5534,14 @@ 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();
@@ -5131,7 +5574,12 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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:
@@ -5145,6 +5593,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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) {
@@ -5175,6 +5630,11 @@ namespace Example
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
@@ -5195,6 +5655,11 @@ namespace Example
<?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 {
@@ -5210,6 +5675,11 @@ try {
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 {
@@ -5227,6 +5697,11 @@ 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()
@@ -5289,6 +5764,7 @@ except ApiException as e:
curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
-H "Content-Type: */*"\
"https://ipost.rocks//api/post"
@@ -5304,7 +5780,14 @@ 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 {
@@ -5339,7 +5822,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- 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"];
+Api_post_body *body = ; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -5354,6 +5842,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -5387,6 +5882,11 @@ namespace Example
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_post_body(); // Api_post_body | (optional)
@@ -5408,6 +5908,11 @@ namespace Example
<?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_post_body |
@@ -5424,6 +5929,11 @@ try {
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_post_body->new(); # Api_post_body |
@@ -5442,6 +5952,11 @@ 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_post_body | (optional)
@@ -5556,6 +6071,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/search?type=&selector="
@@ -5570,7 +6086,14 @@ 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 type = type_example; // String |
String selector = selector_example; // String |
@@ -5607,7 +6130,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- String *type = type_example; // (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)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -5624,6 +6152,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -5658,6 +6193,11 @@ namespace Example
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 type = type_example; // String | (optional)
var selector = selector_example; // String | (optional)
@@ -5680,6 +6220,11 @@ namespace Example
<?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();
$type = type_example; // String |
$selector = selector_example; // String |
@@ -5697,6 +6242,11 @@ try {
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 $type = type_example; # String |
my $selector = selector_example; # String |
@@ -5716,6 +6266,11 @@ 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()
type = type_example # String | (optional)
@@ -5819,6 +6374,7 @@ except ApiException as e:
curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
-H "Content-Type: */*"\
"https://ipost.rocks//api/setBio"
@@ -5834,7 +6390,14 @@ 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_setBio_body body = ; // Api_setBio_body |
try {
@@ -5869,7 +6432,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- 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)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -5884,6 +6452,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -5917,6 +6492,11 @@ namespace Example
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_setBio_body(); // Api_setBio_body | (optional)
@@ -5938,6 +6518,11 @@ namespace Example
<?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_setBio_body |
@@ -5954,6 +6539,11 @@ try {
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_setBio_body->new(); # Api_setBio_body |
@@ -5972,6 +6562,11 @@ 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_setBio_body | (optional)
@@ -6042,7 +6637,7 @@ except ApiException as e:
- Status: 410 - Gone
+ Status: 410 - argument/data error
@@ -6050,7 +6645,7 @@ except ApiException as e:
- Status: 411 - Length Required
+ Status: 411 - argument/data error
@@ -6094,6 +6689,7 @@ except ApiException as e:
curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/setavatar"
@@ -6108,7 +6704,14 @@ 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();
@@ -6141,7 +6744,12 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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:
@@ -6155,6 +6763,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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) {
@@ -6185,6 +6800,11 @@ namespace Example
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
@@ -6205,6 +6825,11 @@ namespace Example
<?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 {
@@ -6220,6 +6845,11 @@ try {
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 {
@@ -6237,6 +6867,11 @@ 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()
@@ -6263,7 +6898,7 @@ except ApiException as e:
- Status: 410 - Gone
+ Status: 410 - argument/data error
@@ -6271,7 +6906,7 @@ except ApiException as e:
- Status: 411 - Length Required
+ Status: 411 - argument/data error
@@ -6323,6 +6958,7 @@ except ApiException as e:
curl -X GET\
+-H "ipost-auth-token: [[apiKey]]"\
"https://ipost.rocks//api/settings"
@@ -6337,7 +6973,14 @@ 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();
@@ -6370,7 +7013,12 @@ public class DefaultApiExample {
Coming Soon!
-->
-
+ 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:
@@ -6384,6 +7032,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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) {
@@ -6414,6 +7069,11 @@ namespace Example
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
@@ -6434,6 +7094,11 @@ namespace Example
<?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 {
@@ -6449,6 +7114,11 @@ try {
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 {
@@ -6466,6 +7136,11 @@ 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()
@@ -6528,6 +7203,7 @@ except ApiException as e:
curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
-H "Content-Type: */*"\
"https://ipost.rocks//api/settings"
@@ -6543,7 +7219,14 @@ 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 {
@@ -6578,7 +7261,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- Api_settings_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_settings_body *body = ; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -6593,6 +7281,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -6626,6 +7321,11 @@ namespace Example
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)
@@ -6647,6 +7347,11 @@ namespace Example
<?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 |
@@ -6663,6 +7368,11 @@ try {
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 |
@@ -6681,6 +7391,11 @@ 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)
@@ -6751,7 +7466,7 @@ except ApiException as e:
- Status: 410 - Gone
+ Status: 410 - argument/data error
@@ -6759,7 +7474,7 @@ except ApiException as e:
- Status: 411 - Length Required
+ Status: 411 - argument/data error
@@ -6767,7 +7482,7 @@ except ApiException as e:
- Status: 412 - Precondition Failed
+ Status: 412 - argument/data error
@@ -6819,6 +7534,7 @@ except ApiException as e:
curl -X POST\
+-H "ipost-auth-token: [[apiKey]]"\
-H "Content-Type: */*"\
"https://ipost.rocks//authorize"
@@ -6834,7 +7550,14 @@ 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();
Authorize_body body = ; // Authorize_body |
try {
@@ -6869,7 +7592,12 @@ public class DefaultApiExample {
Coming Soon!
-->
- Authorize_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"];
+Authorize_body *body = ; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
@@ -6884,6 +7612,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
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 = {
@@ -6917,6 +7652,11 @@ namespace Example
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 Authorize_body(); // Authorize_body | (optional)
@@ -6938,6 +7678,11 @@ namespace Example
<?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 = ; // Authorize_body |
@@ -6954,6 +7699,11 @@ try {
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::Authorize_body->new(); # Authorize_body |
@@ -6972,6 +7722,11 @@ 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 = # Authorize_body | (optional)
@@ -7037,10 +7792,10 @@ except ApiException as e:
-
-
+
+
- avatarsGet
+ avatarsAvatarGet
@@ -7049,30 +7804,30 @@ except ApiException as e:
- /avatars/*
+ /avatars/{avatar}
Usage and SDK Samples
-
+
curl -X GET\
-"https://ipost.rocks//avatars/*"
+"https://ipost.rocks//avatars/{avatar}"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -7086,470 +7841,44 @@ public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
+ String avatar = avatar_example; // String |
try {
- apiInstance.avatarsGet();
+ apiInstance.avatarsAvatarGet(avatar);
} catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#avatarsGet");
+ 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.avatarsGet();
+ apiInstance.avatarsAvatarGet(avatar);
} catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#avatarsGet");
+ System.err.println("Exception when calling DefaultApi#avatarsAvatarGet");
e.printStackTrace();
}
}
}
-
-
-DefaultApi *apiInstance = [[DefaultApi alloc] init];
-
-[apiInstance avatarsGetWithCompletionHandler:
- ^(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.avatarsGet(callback);
-
-
-
-
-
- using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
- public class avatarsGetExample
- {
- public void main()
- {
-
- var apiInstance = new DefaultApi();
-
- try
- {
- apiInstance.avatarsGet();
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling DefaultApi.avatarsGet: " + e.Message );
- }
- }
- }
-}
-
-
-
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiDefaultApi();
-
-try {
- $api_instance->avatarsGet();
-} catch (Exception $e) {
- echo 'Exception when calling DefaultApi->avatarsGet: ', $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->avatarsGet();
-};
-if ($@) {
- warn "Exception when calling DefaultApi->avatarsGet: $@\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.avatars_get()
-except ApiException as e:
- print("Exception when calling DefaultApi->avatarsGet: %s\n" % e)
-
-
-
- Parameters
-
-
-
-
-
-
- Responses
- Status: 200 - OK
-
-
-
-
-
-
- Status: 404 - Not Found
-
-
-
-
-
-
-
-
-
-
-
-
- cssGet
-
-
-
-
-
-
-
-
- /css/*
-
-
Usage and SDK Samples
-
-
-
-
-
- curl -X GET\
-"https://ipost.rocks//css/*"
-
-
- 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.cssGet();
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#cssGet");
- e.printStackTrace();
- }
- }
-}
-
-
-
- import io.swagger.client.api.DefaultApi;
-
-public class DefaultApiExample {
-
- public static void main(String[] args) {
- DefaultApi apiInstance = new DefaultApi();
- try {
- apiInstance.cssGet();
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#cssGet");
- e.printStackTrace();
- }
- }
-}
-
-
-
-
-DefaultApi *apiInstance = [[DefaultApi alloc] init];
-
-[apiInstance cssGetWithCompletionHandler:
- ^(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.cssGet(callback);
-
-
-
-
-
- using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
- public class cssGetExample
- {
- public void main()
- {
-
- var apiInstance = new DefaultApi();
-
- try
- {
- apiInstance.cssGet();
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling DefaultApi.cssGet: " + e.Message );
- }
- }
- }
-}
-
-
-
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiDefaultApi();
-
-try {
- $api_instance->cssGet();
-} catch (Exception $e) {
- echo 'Exception when calling DefaultApi->cssGet: ', $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->cssGet();
-};
-if ($@) {
- warn "Exception when calling DefaultApi->cssGet: $@\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.css_get()
-except ApiException as e:
- print("Exception when calling DefaultApi->cssGet: %s\n" % e)
-
-
-
- Parameters
-
-
-
-
-
-
- Responses
- Status: 200 - OK
-
-
-
-
-
-
- Status: 404 - Not Found
-
-
-
-
-
-
-
-
-
-
-
-
- get
-
-
-
-
-
-
-
-
- /*
-
-
Usage and SDK Samples
-
-
-
-
-
- curl -X GET\
-"https://ipost.rocks//*?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 id = id_example; // String |
- try {
- apiInstance.get(id);
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#get");
- 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.get(id);
- } catch (ApiException e) {
- System.err.println("Exception when calling DefaultApi#get");
- e.printStackTrace();
- }
- }
-}
-
-
-
- String *id = id_example; // (optional)
+
+ String *avatar = avatar_example; //
DefaultApi *apiInstance = [[DefaultApi alloc] init];
-[apiInstance getWith:id
+[apiInstance avatarsAvatarGetWith:avatar
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
@@ -7558,10 +7887,511 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
-
+
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}}
};
@@ -7572,14 +8402,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.get(opts, callback);
+api.fileGet(file, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7588,21 +8418,22 @@ using IO.Swagger.Model;
namespace Example
{
- public class getExample
+ public class fileGetExample
{
public void main()
{
var apiInstance = new DefaultApi();
+ var file = file_example; // String |
var id = id_example; // String | (optional)
try
{
- apiInstance.get(id);
+ apiInstance.fileGet(file, id);
}
catch (Exception e)
{
- Debug.Print("Exception when calling DefaultApi.get: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.fileGet: " + e.Message );
}
}
}
@@ -7610,38 +8441,40 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
+$file = file_example; // String |
$id = id_example; // String |
try {
- $api_instance->get($id);
+ $api_instance->fileGet($file, $id);
} catch (Exception $e) {
- echo 'Exception when calling DefaultApi->get: ', $e->getMessage(), PHP_EOL;
+ 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->get(id => $id);
+ $api_instance->fileGet(file => $file, id => $id);
};
if ($@) {
- warn "Exception when calling DefaultApi->get: $@\n";
+ warn "Exception when calling DefaultApi->fileGet: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -7650,17 +8483,44 @@ 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.get(id=id)
+ api_instance.file_get(file, id=id)
except ApiException as e:
- print("Exception when calling DefaultApi->get: %s\n" % e)
+ print("Exception when calling DefaultApi->fileGet: %s\n" % e)
Parameters
+ Path parameters
+
+
+ Name
+ Description
+
+ file*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
@@ -7675,7 +8535,7 @@ except ApiException as e:
-
+
@@ -7717,10 +8577,10 @@ except ApiException as e:
-
-
+
+