From 025bdcfd4f4f54274b123b7b8994d74da02b4a33 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Thu, 26 May 2022 16:26:15 +0200 Subject: [PATCH] added API documentation --- views/api/documentation/index.html | 4811 ++++++++++++++++++++++++++++ 1 file changed, 4811 insertions(+) create mode 100644 views/api/documentation/index.html diff --git a/views/api/documentation/index.html b/views/api/documentation/index.html new file mode 100644 index 0000000..71b2d7d --- /dev/null +++ b/views/api/documentation/index.html @@ -0,0 +1,4811 @@ + + + + + Simple Posts/Account API + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+

Simple Posts/Account API

+
+
+
+ +
+
+

Everyone

+
+
+
+

changePW

+

changes the password

+
+
+
+

+

sets the pw of the currently logged in user (identified via cookie) +also sets the AUTH_COOKIE cookie to the new one +

+

+
+
/api/changePW
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST\
+-H "Content-Type: application/json"\
+"https://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/api/changePW"
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.EveryoneApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_changePW_body body = ; // Api_changePW_body | 
+        try {
+            apiInstance.changePW(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#changePW");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import io.swagger.client.api.EveryoneApi;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_changePW_body body = ; // Api_changePW_body | 
+        try {
+            apiInstance.changePW(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#changePW");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Api_changePW_body *body = ; //  (optional)
+
+EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+
+// changes the password
+[apiInstance changePWWith:body
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+var api = new SimplePostsaccountApi.EveryoneApi()
+var opts = { 
+  'body':  // {{Api_changePW_body}} 
+};
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.changePW(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+    public class changePWExample
+    {
+        public void main()
+        {
+
+            var apiInstance = new EveryoneApi();
+            var body = new Api_changePW_body(); // Api_changePW_body |  (optional) 
+
+            try
+            {
+                // changes the password
+                apiInstance.changePW(body);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling EveryoneApi.changePW: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiEveryoneApi();
+$body = ; // Api_changePW_body | 
+
+try {
+    $api_instance->changePW($body);
+} catch (Exception $e) {
+    echo 'Exception when calling EveryoneApi->changePW: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::EveryoneApi;
+
+my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+my $body = WWW::SwaggerClient::Object::Api_changePW_body->new(); # Api_changePW_body | 
+
+eval { 
+    $api_instance->changePW(body => $body);
+};
+if ($@) {
+    warn "Exception when calling EveryoneApi->changePW: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.EveryoneApi()
+body =  # Api_changePW_body |  (optional)
+
+try: 
+    # changes the password
+    api_instance.change_pw(body=body)
+except ApiException as e:
+    print("Exception when calling EveryoneApi->changePW: %s\n" % e)
+
+
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + +
NameDescription
body + + + +
+
+ + + +

Responses

+

Status: 200 - successfully set bio +

+ + + +
+
+ +

Status: 400 - no or bad login cookie

+ + + +
+
+ +
+
+
+
+
+
+

getPosts

+

returns all posts

+
+
+
+

+

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

+

+
+
/api/getPosts
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET\
+-H "Accept: application/json"\
+"https://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/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_1] 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_1] 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_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.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_1] 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://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/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 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 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 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 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
+ + + + + + + + +
NameDescription
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 cookie 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://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/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 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 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 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 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://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/login"
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.EveryoneApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        
+        EveryoneApi apiInstance = new EveryoneApi();
+        Login_body body = ; // Login_body | 
+        try {
+            apiInstance.login(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#login");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import io.swagger.client.api.EveryoneApi;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        EveryoneApi apiInstance = new EveryoneApi();
+        Login_body body = ; // Login_body | 
+        try {
+            apiInstance.login(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#login");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Login_body *body = ; //  (optional)
+
+EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+
+// logging in
+[apiInstance loginWith:body
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+var api = new SimplePostsaccountApi.EveryoneApi()
+var opts = { 
+  'body':  // {{Login_body}} 
+};
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.login(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+    public class loginExample
+    {
+        public void main()
+        {
+
+            var apiInstance = new EveryoneApi();
+            var body = new Login_body(); // Login_body |  (optional) 
+
+            try
+            {
+                // logging in
+                apiInstance.login(body);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling EveryoneApi.login: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiEveryoneApi();
+$body = ; // Login_body | 
+
+try {
+    $api_instance->login($body);
+} catch (Exception $e) {
+    echo 'Exception when calling EveryoneApi->login: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::EveryoneApi;
+
+my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+my $body = WWW::SwaggerClient::Object::Login_body->new(); # Login_body | 
+
+eval { 
+    $api_instance->login(body => $body);
+};
+if ($@) {
+    warn "Exception when calling EveryoneApi->login: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.EveryoneApi()
+body =  # Login_body |  (optional)
+
+try: 
+    # logging in
+    api_instance.login(body=body)
+except ApiException as e:
+    print("Exception when calling EveryoneApi->login: %s\n" % e)
+
+
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + +
NameDescription
body + + + +
+
+ + + +

Responses

+

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

+ + + +
+
+ +

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

+ + + +
+
+ +
+
+
+
+
+
+

post

+

post a message

+
+
+
+

+

posts a message on the public chat +

+

+
+
/api/post
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST\
+-H "Content-Type: application/json"\
+"https://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/api/post"
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.EveryoneApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_post_body body = ; // Api_post_body | 
+        try {
+            apiInstance.post(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#post");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import io.swagger.client.api.EveryoneApi;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_post_body body = ; // Api_post_body | 
+        try {
+            apiInstance.post(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#post");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Api_post_body *body = ; //  (optional)
+
+EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+
+// post a message
+[apiInstance postWith:body
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+var api = new SimplePostsaccountApi.EveryoneApi()
+var opts = { 
+  'body':  // {{Api_post_body}} 
+};
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.post(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+    public class postExample
+    {
+        public void main()
+        {
+
+            var apiInstance = new EveryoneApi();
+            var body = new Api_post_body(); // Api_post_body |  (optional) 
+
+            try
+            {
+                // post a message
+                apiInstance.post(body);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling EveryoneApi.post: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiEveryoneApi();
+$body = ; // Api_post_body | 
+
+try {
+    $api_instance->post($body);
+} catch (Exception $e) {
+    echo 'Exception when calling EveryoneApi->post: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::EveryoneApi;
+
+my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+my $body = WWW::SwaggerClient::Object::Api_post_body->new(); # Api_post_body | 
+
+eval { 
+    $api_instance->post(body => $body);
+};
+if ($@) {
+    warn "Exception when calling EveryoneApi->post: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.EveryoneApi()
+body =  # Api_post_body |  (optional)
+
+try: 
+    # post a message
+    api_instance.post(body=body)
+except ApiException as e:
+    print("Exception when calling EveryoneApi->post: %s\n" % e)
+
+
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + +
NameDescription
body + + + +
+
+ + + +

Responses

+

Status: 200 - successfully got information +

+ + + +
+
+ +

Status: 400 - no or bad login cookie

+ + + +
+
+ +
+
+
+
+
+
+

register

+

registers a new user

+
+
+
+

+

registers a new user

+

+
+
/register
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST\
+-H "Content-Type: application/json"\
+"https://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/register"
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.EveryoneApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        
+        EveryoneApi apiInstance = new EveryoneApi();
+        Register_body body = ; // Register_body | 
+        try {
+            apiInstance.register(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#register");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import io.swagger.client.api.EveryoneApi;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        EveryoneApi apiInstance = new EveryoneApi();
+        Register_body body = ; // Register_body | 
+        try {
+            apiInstance.register(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#register");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Register_body *body = ; //  (optional)
+
+EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+
+// registers a new user
+[apiInstance registerWith:body
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+var api = new SimplePostsaccountApi.EveryoneApi()
+var opts = { 
+  'body':  // {{Register_body}} 
+};
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.register(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+    public class registerExample
+    {
+        public void main()
+        {
+
+            var apiInstance = new EveryoneApi();
+            var body = new Register_body(); // Register_body |  (optional) 
+
+            try
+            {
+                // registers a new user
+                apiInstance.register(body);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling EveryoneApi.register: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiEveryoneApi();
+$body = ; // Register_body | 
+
+try {
+    $api_instance->register($body);
+} catch (Exception $e) {
+    echo 'Exception when calling EveryoneApi->register: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::EveryoneApi;
+
+my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+my $body = WWW::SwaggerClient::Object::Register_body->new(); # Register_body | 
+
+eval { 
+    $api_instance->register(body => $body);
+};
+if ($@) {
+    warn "Exception when calling EveryoneApi->register: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.EveryoneApi()
+body =  # Register_body |  (optional)
+
+try: 
+    # registers a new user
+    api_instance.register(body=body)
+except ApiException as e:
+    print("Exception when calling EveryoneApi->register: %s\n" % e)
+
+
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + +
NameDescription
body + + + +
+
+ + + +

Responses

+

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

+ + + +
+
+ +

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

+ + + +
+
+ +
+
+
+
+
+
+

setBio

+

sets the bio of the current user

+
+
+
+

+

sets the bio of the currently logged in user (identified via cookie)

+

+
+
/api/setBio
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST\
+-H "Content-Type: application/json"\
+"https://virtserver.swaggerhub.com/ZeroTwoHub/IPost/1.0.0/api/setBio"
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.EveryoneApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_setBio_body body = ; // Api_setBio_body | 
+        try {
+            apiInstance.setBio(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#setBio");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import io.swagger.client.api.EveryoneApi;
+
+public class EveryoneApiExample {
+
+    public static void main(String[] args) {
+        EveryoneApi apiInstance = new EveryoneApi();
+        Api_setBio_body body = ; // Api_setBio_body | 
+        try {
+            apiInstance.setBio(body);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EveryoneApi#setBio");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Api_setBio_body *body = ; //  (optional)
+
+EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
+
+// sets the bio of the current user
+[apiInstance setBioWith:body
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var SimplePostsaccountApi = require('simple_postsaccount_api');
+
+var api = new SimplePostsaccountApi.EveryoneApi()
+var opts = { 
+  'body':  // {{Api_setBio_body}} 
+};
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.setBio(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+    public class setBioExample
+    {
+        public void main()
+        {
+
+            var apiInstance = new EveryoneApi();
+            var body = new Api_setBio_body(); // Api_setBio_body |  (optional) 
+
+            try
+            {
+                // sets the bio of the current user
+                apiInstance.setBio(body);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling EveryoneApi.setBio: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\ApiEveryoneApi();
+$body = ; // Api_setBio_body | 
+
+try {
+    $api_instance->setBio($body);
+} catch (Exception $e) {
+    echo 'Exception when calling EveryoneApi->setBio: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::EveryoneApi;
+
+my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
+my $body = WWW::SwaggerClient::Object::Api_setBio_body->new(); # Api_setBio_body | 
+
+eval { 
+    $api_instance->setBio(body => $body);
+};
+if ($@) {
+    warn "Exception when calling EveryoneApi->setBio: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.EveryoneApi()
+body =  # Api_setBio_body |  (optional)
+
+try: 
+    # sets the bio of the current user
+    api_instance.set_bio(body=body)
+except ApiException as e:
+    print("Exception when calling EveryoneApi->setBio: %s\n" % e)
+
+
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + +
NameDescription
body + + + +
+
+ + + +

Responses

+

Status: 200 - successfully set bio +

+ + + +
+
+ +

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

+ + + +
+
+ +
+
+
+
+
+ +
+
+
+ + + + + + + + +