diff --git a/.gitignore b/.gitignore index f8aca9c..9d81fdb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ ignore/* avatars/* etc/* *newrelic* -user_uploads/* \ No newline at end of file +user_uploads/* +swagger-api.json \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2955cc8..c3f5406 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,20 +13,22 @@ "clean-css": "^5.3.2", "compression": "^1.7.4", "cookie-parser": "^1.4.6", - "ejs": "^3.1.8", + "ejs": "^3.1.9", "express": "^4.18.2", "express-fileupload": "^1.3.1", "express-useragent": "^1.0.15", "hcaptcha": "^0.1.1", + "hsts": "^2.2.0", "html-minifier-terser": "^7.1.0", - "lru-cache": "^7.18.3", + "lru-cache": "^8.0.0", "mysql2": "^3.2.0", "newrelic": "^9.12.1", "sharp": "^0.30.7", "spdy": "^4.0.2", + "swagger-autogen": "^2.23.1", "uglify-js": "^3.17.4", "unsafe_encrypt": "^1.0.4", - "ws": "^8.12.1" + "ws": "^8.13.0" }, "devDependencies": { "@hcaptcha/types": "^1.0.3" @@ -735,6 +737,14 @@ "node": ">=4.0.0" } }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", @@ -788,9 +798,9 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, "node_modules/ejs": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", - "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", "dependencies": { "jake": "^10.8.5" }, @@ -1045,6 +1055,11 @@ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -1084,6 +1099,25 @@ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", @@ -1135,6 +1169,17 @@ "wbuf": "^1.1.0" } }, + "node_modules/hsts": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.2.0.tgz", + "integrity": "sha512-ToaTnQ2TbJkochoVcdXYm4HOCliNozlviNsg+X2XQLQvZNI/kCHR9rZxVYpJB3UPcHz80PgxRyWQ7PdU1r+VBQ==", + "dependencies": { + "depd": "2.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/html-minifier-terser": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.1.0.tgz", @@ -1257,6 +1302,15 @@ } ] }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -1328,6 +1382,17 @@ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", @@ -1364,11 +1429,11 @@ } }, "node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.0.tgz", + "integrity": "sha512-pMu1vSJIwJPS/YuMJAJFjvKA2OC7rvgKqJHr90JmZ1kv/hO+MuzqHRSWqyn730vlOwc1Bx/c8+3izTGzmKyXNQ==", "engines": { - "node": ">=12" + "node": ">=16.14" } }, "node_modules/media-typer": { @@ -1498,6 +1563,14 @@ "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" }, + "node_modules/mysql2/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "engines": { + "node": ">=12" + } + }, "node_modules/mysql2/node_modules/sqlstring": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", @@ -1517,6 +1590,14 @@ "node": ">=12.0.0" } }, + "node_modules/named-placeholders/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "engines": { + "node": ">=12" + } + }, "node_modules/nan": { "version": "2.16.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.16.0.tgz", @@ -1712,6 +1793,14 @@ "tslib": "^2.0.3" } }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -2261,6 +2350,28 @@ "node": ">=8" } }, + "node_modules/swagger-autogen": { + "version": "2.23.1", + "resolved": "https://registry.npmjs.org/swagger-autogen/-/swagger-autogen-2.23.1.tgz", + "integrity": "sha512-tOAb5cOGNPduIHKoOxndCRy2Mrg7xV3O1RerrWExrDxeSTjXhA350pyJd7VUDY6ZO9gbZ34Bjlc5CXkleUgvAQ==", + "dependencies": { + "acorn": "^7.4.1", + "deepmerge": "^4.2.2", + "glob": "^7.1.7", + "json5": "^2.2.3" + } + }, + "node_modules/swagger-autogen/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", @@ -2472,9 +2583,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/ws": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", - "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "engines": { "node": ">=10.0.0" }, @@ -3075,6 +3186,11 @@ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" + }, "denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", @@ -3115,9 +3231,9 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, "ejs": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", - "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", "requires": { "jake": "^10.8.5" } @@ -3320,6 +3436,11 @@ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -3353,6 +3474,19 @@ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "handle-thing": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", @@ -3392,6 +3526,14 @@ "wbuf": "^1.1.0" } }, + "hsts": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.2.0.tgz", + "integrity": "sha512-ToaTnQ2TbJkochoVcdXYm4HOCliNozlviNsg+X2XQLQvZNI/kCHR9rZxVYpJB3UPcHz80PgxRyWQ7PdU1r+VBQ==", + "requires": { + "depd": "2.0.0" + } + }, "html-minifier-terser": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-7.1.0.tgz", @@ -3477,6 +3619,15 @@ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -3536,6 +3687,11 @@ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + }, "lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", @@ -3574,9 +3730,9 @@ } }, "lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==" + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.0.tgz", + "integrity": "sha512-pMu1vSJIwJPS/YuMJAJFjvKA2OC7rvgKqJHr90JmZ1kv/hO+MuzqHRSWqyn730vlOwc1Bx/c8+3izTGzmKyXNQ==" }, "media-typer": { "version": "0.3.0", @@ -3672,6 +3828,11 @@ "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" }, + "lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==" + }, "sqlstring": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", @@ -3685,6 +3846,13 @@ "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", "requires": { "lru-cache": "^7.14.1" + }, + "dependencies": { + "lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==" + } } }, "nan": { @@ -3836,6 +4004,11 @@ "tslib": "^2.0.3" } }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -4249,6 +4422,24 @@ "has-flag": "^4.0.0" } }, + "swagger-autogen": { + "version": "2.23.1", + "resolved": "https://registry.npmjs.org/swagger-autogen/-/swagger-autogen-2.23.1.tgz", + "integrity": "sha512-tOAb5cOGNPduIHKoOxndCRy2Mrg7xV3O1RerrWExrDxeSTjXhA350pyJd7VUDY6ZO9gbZ34Bjlc5CXkleUgvAQ==", + "requires": { + "acorn": "^7.4.1", + "deepmerge": "^4.2.2", + "glob": "^7.1.7", + "json5": "^2.2.3" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + } + } + }, "tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", @@ -4418,9 +4609,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "ws": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", - "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "requires": {} }, "y18n": { diff --git a/package.json b/package.json index c83479f..549ff1a 100644 --- a/package.json +++ b/package.json @@ -4,20 +4,23 @@ "clean-css": "^5.3.2", "compression": "^1.7.4", "cookie-parser": "^1.4.6", - "ejs": "^3.1.8", + "ejs": "^3.1.9", "express": "^4.18.2", "express-fileupload": "^1.3.1", "express-useragent": "^1.0.15", "hcaptcha": "^0.1.1", + "hsts": "^2.2.0", "html-minifier-terser": "^7.1.0", - "lru-cache": "^7.18.3", "newrelic": "^9.12.1", + "lru-cache": "^8.0.0", "mysql2": "^3.2.0", + "newrelic": "^9.11.0", "sharp": "^0.30.7", "spdy": "^4.0.2", + "swagger-autogen": "^2.23.1", "uglify-js": "^3.17.4", "unsafe_encrypt": "^1.0.4", - "ws": "^8.12.1" + "ws": "^8.13.0" }, "scripts": { "start": "node server.js", diff --git a/routes/api/all.js b/routes/api/all.js index 08ab2fe..f162954 100644 --- a/routes/api/all.js +++ b/routes/api/all.js @@ -10,76 +10,67 @@ export const setup = function (router, con, server) { router.use("/*", (req, res, next) => { res.set("Access-Control-Allow-Origin", "*"); //we'll allow it for now let unsigned; - if (req.body.user === undefined || req.body.pass === undefined) { - if(typeof req.get("ipost-auth-token") === "string") { - try{ - req.body.auth = JSON.parse(req.get("ipost-auth-token")) - } catch(err) { - console.log("error parsing header",err) - } + if(typeof req.get("ipost-auth-token") === "string") { + try{ + req.body.auth = JSON.parse(req.get("ipost-auth-token")) + } catch(err) { + console.log("error parsing header",err) } - if(req.body.auth !== undefined && req.originalUrl !== "/redeemauthcode") { - if(typeof req.body.auth === "string") { - try{ - req.body.auth = JSON.parse(req.body.auth) - } catch(err) { - console.log("error parsing",err) - } - } else - if( - typeof req.body.auth !== "object" || - typeof req.body.auth.secret !== "string" || - typeof req.body.auth.appid !== "number" || - typeof req.body.auth.auth_token !== "string" || - req.body.auth.secret.length !== 200 || - req.body.auth.auth_token.length !== 200 || - Buffer.from(req.body.auth.secret,"base64").length !== 150 - ) { - res.status(420).send("invalid authentication object") - return; - } else { - //secret : string(200 chars) - //appid : number - //auth_token: string(200 chars) - let sql = "select User_ID,User_Name,User_Bio,User_Avatar,User_Settings from ipost.auth_tokens inner join ipost.application on auth_token_isfrom_application_id=application_id inner join ipost.users on auth_token_u_id=User_ID where auth_token=? and application_secret=? and application_id=?" - con.query(sql,[SHA256(req.body.auth.auth_token,req.body.auth.appid, HASHES_DB),SHA256(req.body.auth.secret,req.body.auth.appid, HASHES_DB),req.body.auth.appid],(err,result) => { - if(err) throw err; - - if(result.length !== 1) { - res.status(420).send("invalid authentication object (or server error?)") - return; - } - - res.locals.userid = result[0].User_ID; - res.locals.username = result[0].User_Name; - res.locals.bio = result[0].User_Bio || ""; - res.locals.avatar = result[0].User_Avatar || ""; - res.locals.settings = result[0].User_Settings || {}; - - res.locals.isbot = true; //only apps/bots use auth tokens - - next() - }) - return; - } - } else { - if(!req.cookies.AUTH_COOKIE) { - next() - return - } - unsigned = unsign(req.cookies.AUTH_COOKIE, req, res); - if (!unsigned){ - next() - return - } - } - } - else { - unsigned = `${req.body.user} ${SHA256(req.body.pass, req.body.user, HASHES_COOKIE)}`; - res.set("message","user+pass authentication is deprecated as of february 2023, consider switching to auth tokens") - //basically we generate the unsigned cookie - res.locals.isbot = true; //only bots use user+pass + if(req.body.auth !== undefined && req.originalUrl !== "/redeemauthcode") { + if(typeof req.body.auth === "string") { + try{ + req.body.auth = JSON.parse(req.body.auth) + } catch(err) { + console.log("error parsing",err) + } + } else + if( + typeof req.body.auth !== "object" || + typeof req.body.auth.secret !== "string" || + typeof req.body.auth.appid !== "number" || + typeof req.body.auth.auth_token !== "string" || + req.body.auth.secret.length !== 200 || + req.body.auth.auth_token.length !== 200 || + Buffer.from(req.body.auth.secret,"base64").length !== 150 + ) { + res.status(420).send("invalid authentication object") + return; + } else { + //secret : string(200 chars) + //appid : number + //auth_token: string(200 chars) + let sql = "select User_ID,User_Name,User_Bio,User_Avatar,User_Settings from ipost.auth_tokens inner join ipost.application on auth_token_isfrom_application_id=application_id inner join ipost.users on auth_token_u_id=User_ID where auth_token=? and application_secret=? and application_id=?" + con.query(sql,[SHA256(req.body.auth.auth_token,req.body.auth.appid, HASHES_DB),SHA256(req.body.auth.secret,req.body.auth.appid, HASHES_DB),req.body.auth.appid],(err,result) => { + if(err) throw err; + + if(result.length !== 1) { + res.status(420).send("invalid authentication object (or server error?)") + return; + } + + res.locals.userid = result[0].User_ID; + res.locals.username = result[0].User_Name; + res.locals.bio = result[0].User_Bio || ""; + res.locals.avatar = result[0].User_Avatar || ""; + res.locals.settings = result[0].User_Settings || {}; + + res.locals.isbot = true; //only apps/bots use auth tokens + + next() + }) + return; + } + } else { + if(!req.cookies.AUTH_COOKIE) { + next() + return + } + unsigned = unsign(req.cookies.AUTH_COOKIE, req, res); + if (!unsigned){ + next() + return + } } let sql = `select User_ID,User_Name,User_Bio,User_Avatar,User_Settings from ipost.users where User_Name=? and User_PW=?;`; let values = unsigned.split(" "); @@ -118,6 +109,9 @@ export const setup = function (router, con, server) { res.status(402); res.json({ "error": "you cannot access the api without being logged in" }); } + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); }; export default { diff --git a/routes/api/dms/PersonalMessages.js b/routes/api/dms/PersonalMessages.js index 656b035..be2a92f 100644 --- a/routes/api/dms/PersonalMessages.js +++ b/routes/api/dms/PersonalMessages.js @@ -20,6 +20,9 @@ export const setup = function (router, con, server) { throw err; res.json(result); }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/dms/conversations", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); @@ -30,10 +33,16 @@ export const setup = function (router, con, server) { throw err; res.json(result); }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/dms/encrypt.js", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); res.send(web_version()); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); // router.get("/api/dms/getDM", function (req, res) { @@ -52,6 +61,9 @@ export const setup = function (router, con, server) { res.json({ "error": "there is no such dm!" }); } }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); }; export default { diff --git a/routes/api/dms/post.js b/routes/api/dms/post.js index 69b5639..76f5d31 100644 --- a/routes/api/dms/post.js +++ b/routes/api/dms/post.js @@ -19,6 +19,9 @@ export const setup = function (router, con, server) { router.get("/api/dms/pid", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); res.json({ "pid": createPID() }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.post("/api/dms/post", function (req, res) { if (!req.body.message) { @@ -89,6 +92,10 @@ export const setup = function (router, con, server) { console.log(5, `posted new dm by ${res.locals.username} to ${otherperson} : ${xor(encodeURIComponent(res.locals.username), otherperson)}`); }); //TODO: bring dms up-to-date with normal posts + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); return createPID }; diff --git a/routes/api/getFileIcon.js b/routes/api/getFileIcon.js index 6ee954b..34b0602 100644 --- a/routes/api/getFileIcon.js +++ b/routes/api/getFileIcon.js @@ -31,8 +31,8 @@ async function addTextOnImage(text,buf) { } export const setup = function (router, con, server) { - router.get("/api/getFileIcon/*",async function(req,res){ - let path = req.path.split("/api/getFileIcon/")[1] + router.get("/api/getFileIcon/:icon",async function(req,res){ + let path = req.params.icon if(path.length > 4) { res.status(410).json({"error":"file ending is too long"}) return; @@ -41,5 +41,8 @@ export const setup = function (router, con, server) { res.set("content-type","image/png") res.send(buf) }) + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }) } \ No newline at end of file diff --git a/routes/api/getPosts.js b/routes/api/getPosts.js index ca5a4b2..8ed8bc2 100644 --- a/routes/api/getPosts.js +++ b/routes/api/getPosts.js @@ -1,8 +1,4 @@ export const setup = function (router, con, server) { - router.get("/api/getPosts/*", function (_req, res) { - res.set("Access-Control-Allow-Origin", ""); - res.redirect("/api/getPosts"); - }); router.get("/api/getPosts", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); if (req.query.channel !== undefined) { @@ -21,6 +17,9 @@ export const setup = function (router, con, server) { res.json(result); }); } + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/getPostsLowerThan", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); @@ -40,6 +39,9 @@ export const setup = function (router, con, server) { res.json(result); }); } + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/getPost", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); @@ -56,5 +58,8 @@ export const setup = function (router, con, server) { res.json({ "error": "there is no such post!" }); } }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); } \ No newline at end of file diff --git a/routes/api/post.js b/routes/api/post.js index 0dda472..d9cda39 100644 --- a/routes/api/post.js +++ b/routes/api/post.js @@ -32,6 +32,9 @@ export const setup = function (router, con, server) { router.get("/api/pid", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); res.json({ "pid": createPID() }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); function validateMessage(message) { @@ -204,6 +207,9 @@ export const setup = function (router, con, server) { res.json({"error":"internal server error", "status": 500}) } } + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); return createPID }; diff --git a/routes/api/search.js b/routes/api/search.js index 6223953..f8e1125 100644 --- a/routes/api/search.js +++ b/routes/api/search.js @@ -34,5 +34,9 @@ export const setup = function (router, con, server) { else { res.json({ "error": "invalid type passed along, expected `user` or `post`", "message": "search has been deprecated as of 11/30/2022"}); } + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); } \ No newline at end of file diff --git a/routes/api/settingshandler.js b/routes/api/settingshandler.js index 984a621..6b816f7 100644 --- a/routes/api/settingshandler.js +++ b/routes/api/settingshandler.js @@ -4,6 +4,10 @@ const allowed_settings = { export const setup = function (router, con, server) { router.get("/api/settings", function (req, res) { res.json(res.locals.settings); + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.post("/api/settings", function (req, res) { if (!req.body.setting) { @@ -45,6 +49,10 @@ export const setup = function (router, con, server) { } res.json({ "status": "success" }); }); + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); }; export default { diff --git a/routes/api/userRoutes.js b/routes/api/userRoutes.js index 811e4b1..aecf761 100644 --- a/routes/api/userRoutes.js +++ b/routes/api/userRoutes.js @@ -47,10 +47,16 @@ export const setup = function (router, con, server) { res.json({ "success": "updated avatar" }); }); }) - }); + }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/getuser", function (_req, res) { res.json({ "username": res.locals.username, "bio": res.locals.bio, "avatar": res.locals.avatar, "userid": res.locals.userid }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/getalluserinformation", function (req, res) { res.set("Access-Control-Allow-Origin", ""); //we don't want that here @@ -73,6 +79,9 @@ export const setup = function (router, con, server) { res.json({ "error": "you cannot access the api without being logged in" }); } }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.get("/api/getotheruser", function (req, res) { res.set("Access-Control-Allow-Origin", "*"); @@ -109,6 +118,9 @@ export const setup = function (router, con, server) { throw err; res.json({ "success": "updated bio" }); }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.post("/api/changePW", (req, res) => { res.set("Access-Control-Allow-Origin", ""); @@ -149,6 +161,9 @@ export const setup = function (router, con, server) { res.json({ "error": "invalid password" }); } }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); router.post("/api/changeUsername", function (req, res) { res.set("Access-Control-Allow-Origin", ""); @@ -212,5 +227,8 @@ export const setup = function (router, con, server) { res.json({ "error": "invalid password" }); } }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); } \ No newline at end of file diff --git a/routes/authorize.js b/routes/authorize.js index 8cc23f3..3445ccf 100644 --- a/routes/authorize.js +++ b/routes/authorize.js @@ -59,6 +59,10 @@ export const setup = function (router, con, server) { } res.redirect(`/authorize?id=${req.body.application_id}`) + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }) router.post("/redeemauthcode", (req,res) => { @@ -124,4 +128,8 @@ export const setup = function (router, con, server) { }) + + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ } \ No newline at end of file diff --git a/routes/serve_static_files.js b/routes/serve_static_files.js index 4566a5e..bd33eed 100644 --- a/routes/serve_static_files.js +++ b/routes/serve_static_files.js @@ -5,43 +5,43 @@ export const setup = function (router, con, server) { const __dirname = server.dirname const dir = __dirname + "/" - router.get("/users/*", function (req, res) { + router.get("/users/:user", function (req, res) { if (!increaseUSERCall(req, res)) return; res.sendFile(dir + "views/otheruser.html"); }); - router.get("/css/*", (request, response) => { + router.get("/css/:file", (request, response) => { if (!increaseUSERCall(request, response)) return; - if (existsSync(__dirname + request.originalUrl)) { - response.sendFile(__dirname + request.originalUrl); + if (existsSync(`${__dirname}/css/${request.params.file}`)) { + response.sendFile(`${__dirname}/css/${request.params.file}`); } else { response.status(404).send("no file with that name found"); } return; }); - router.get("/js/*", (request, response) => { + router.get("/js/:file", (request, response) => { if (!increaseUSERCall(request, response)) return; - if (existsSync(__dirname + request.originalUrl)) { - response.sendFile(__dirname + request.originalUrl); + if (existsSync(`${__dirname}/js/${request.params.file}`)) { + response.sendFile(`${__dirname}/js/${request.params.file}`); } else { response.status(404).send("no file with that name found"); } return; }); - router.get("/images/*", (request, response) => { + router.get("/images/:file", (request, response) => { if (!increaseUSERCall(request, response)) return; - if (existsSync(__dirname + request.originalUrl)) { + if (existsSync(`${__dirname}/images/${request.params.file}`)) { response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish - response.sendFile(__dirname + request.originalUrl); + response.sendFile(`${__dirname}/images/${request.params.file}`); } - else if(existsSync(__dirname + request.originalUrl.toLowerCase())){ + else if(existsSync(`${__dirname}/images/${request.params.file.toLowerCase()}`)){ response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish - response.sendFile(__dirname + request.originalUrl.toLowerCase()); + response.sendFile(`${__dirname}/images/${request.params.file.toLowerCase()}`); } else { response.status(404).send("no file with that name found"); @@ -49,12 +49,12 @@ export const setup = function (router, con, server) { return; }); - router.get("/user_uploads/*", (request, response) => { + router.get("/user_uploads/:file", (request, response) => { if (!increaseUSERCall(request, response)) return; - if (existsSync(__dirname + request.originalUrl)) { + if (existsSync(`${__dirname}/user_uploads/${request.params.file}`)) { response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish - response.sendFile(__dirname + request.originalUrl); + response.sendFile(`${__dirname}/user_uploads/${request.params.file}`); } else { response.status(404).send("no file with that name found"); @@ -62,13 +62,12 @@ export const setup = function (router, con, server) { return; }); - router.get("/avatars/*", (request, response) => { + router.get("/avatars/:avatar", (request, response) => { if (!increaseUSERCall(request, response)) return; response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish - let originalUrl = request.originalUrl.split("?").shift(); - if (existsSync(dir + originalUrl)) { - return response.sendFile(dir + originalUrl); + if (existsSync(`${__dirname}/avatars/${request.params.avatar}`)) { + return response.sendFile(`${__dirname}/avatars/${request.params.avatar}`); } response.status(404).send("No avatar with that name found"); }); diff --git a/routes/userfiles.js b/routes/userfiles.js index 0108970..3add77f 100644 --- a/routes/userfiles.js +++ b/routes/userfiles.js @@ -70,6 +70,10 @@ export const setup = function (router, con, server) { function getAppWithId(appid) { appid = Number(appid) return new Promise((res,rej) => { + if(isNaN(appid)) { + res({}) + return + } if(appId_Cache.has(appid)) { res(appId_Cache.get(appid) || {}) return @@ -111,7 +115,9 @@ export const setup = function (router, con, server) { if (!increaseUSERCall(request, response))return; if(typeof overrideurl !== "string")overrideurl = undefined; - let originalUrl = overrideurl || request.originalUrl.split("?").shift(); + let originalUrl = overrideurl + || request.params.file + || request.originalUrl.split("?").shift(); //backup in case anything goes wrong let path = "" if (existsSync(dir + "views" + originalUrl)) { @@ -136,10 +142,11 @@ export const setup = function (router, con, server) { path = dir + "views" + originalUrl + ".html" } - if(path !== "" && originalUrl !== "/favicon.ico" && originalUrl !== "/api/documentation/") { + if(path !== "" && originalUrl !== "favicon.ico" && originalUrl !== "api_documentation" && originalUrl !== "api_documentation.html") { + console.log(originalUrl) global_page_variables.user = { "username": response.locals.username, "bio": response.locals.bio, "avatar": response.locals.avatar } global_page_variables.query = request.query - if(originalUrl === "/authorize") { + if(originalUrl === "authorize") { global_page_variables.application = await getAppWithId(request.query.id) } ejs.renderFile(path,global_page_variables,{async: true},async function(err,str){ @@ -176,20 +183,20 @@ export const setup = function (router, con, server) { }) return; } - - if(originalUrl === "/favicon.ico") { + + if(originalUrl === "api_documentation" || originalUrl === "api_documentation.html") { + response.set('Cache-Control', 'public, max-age=2592000'); + response.set('Content-Type', 'text/html') + response.send(load_var("./views/api_documentation.html")) + return + } + + if(originalUrl === "favicon.ico") { response.set('Cache-Control', 'public, max-age=2592000'); response.sendFile(dir + "/views/favicon.ico") return } - - if(originalUrl === "/api/documentation/") { - readFile(path,function(_err,res){ - response.send(res.toString()) - }) - return - } - + console.log(5,"no file found",originalUrl); try { response.status(404).send("No file with that name found"); @@ -197,13 +204,14 @@ export const setup = function (router, con, server) { console.error(err) } } - - /** + + /** * Handle default URI as /index (interpreted redirect: "localhost" -> "localhost/index" ) */ router.get("/", function (req, res) { + req.params.file = "index" handleUserFiles(req,res,"/index") }); - - router.get("/*", handleUserFiles); + + router.get("/:file", handleUserFiles); } \ No newline at end of file diff --git a/server.js b/server.js index e756708..dd0231a 100644 --- a/server.js +++ b/server.js @@ -14,6 +14,7 @@ import { readFileSync, appendFile } from "fs"; import { format } from "util"; import { setup as SETUP_ROUTES} from "./routes/setup_all_routes.js" import { verify as verifyHCaptcha_int } from "hcaptcha" +import hsts from "hsts" import { ensureExists } from "./extra_modules/ensureExists.js" @@ -262,6 +263,12 @@ app.use(fileUpload({ } })); +app.use(hsts({ + maxAge: 31536000, + includeSubDomains: true, + preload: true +})); + app.use(bodyParser.default.json({ limit: "100mb" })); app.use(bodyParser.default.urlencoded({ limit: "100mb", extended: true })); app.use(cookieParser(cookiesecret)); @@ -358,6 +365,9 @@ router.get("/api/getChannels", function (_req, res) { throw err; res.json(result); }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); /* diff --git a/server_config.json b/server_config.json index fdddc9f..4eeeee3 100644 --- a/server_config.json +++ b/server_config.json @@ -155,8 +155,8 @@ "level": 5 }, "ssl": { - "privateKey": "./etc/letsencrypt/live/ipost.rocks/privkey.pem", - "certificate" : "./etc/letsencrypt/live/ipost.rocks/fullchain.pem" + "privateKey": "/etc/letsencrypt/live/ipost.rocks-0002/privkey.pem", + "certificate" : "/etc/letsencrypt/live/ipost.rocks-0002/fullchain.pem" }, "ports": { "http": 9999, diff --git a/swagger.cjs b/swagger.cjs new file mode 100644 index 0000000..138b3ce --- /dev/null +++ b/swagger.cjs @@ -0,0 +1,78 @@ +const fs = require('fs'); +const swaggerAutogen = require('swagger-autogen')(); + +const doc = { + info: { + title: 'IPost API', + description: 'the official IPost.rocks API documentation', + }, + host: 'ipost.rocks', + schemes: ['https'], + securityDefinitions: { + appTokenAuthHeader: { + type: 'apiKey', + in: 'header', // can be 'header', 'query' or 'cookie' + name: 'ipost-auth-token', // name of the header, query parameter or cookie + description: 'authenticate using the authentication object in the header' + } + } +}; + +const outputFile = './swagger-api.json'; +const tempFile = './swagger-output.json'; +const endpointsFiles = ['./server.js']; + +function pushdirectory(currentpath) { + fs.readdirSync(currentpath, { + withFileTypes: true + }).forEach(dirent => { + if (dirent.isFile()) { + endpointsFiles.push(currentpath + dirent.name); + } else { + pushdirectory(currentpath + dirent.name + "/"); + } + }); +} + +pushdirectory("./routes/"); + +swaggerAutogen(tempFile, endpointsFiles, doc); + +/* + Replace some error codes with own error codes, as described in error_codes.txt +*/ +const to_replace = { + "401": "login error (invalid cookie)", + "402": "login error (bad cookie)", + "403": "login error (no cookie)", + + "410": "argument/data error", + "411": "argument/data error", + "412": "argument/data error", + "413": "argument/data error", + "414": "argument/data error", + "415": "argument/data error", + "416": "argument/data error", + "417": "argument/data error", + "418": "argument/data error", + "419": "argument/data error", + "420": "invalid authetication object", + +} + +let file = JSON.parse(fs.readFileSync(tempFile, 'utf8')); + +for (let path in file.paths) { + for (let method in file.paths[path]) { + for (let response in file.paths[path][method].responses) { + if (to_replace[response]) { + file.paths[path][method].responses[response].description = to_replace[response]; + } + } + } +} + +file = JSON.stringify(file); +console.log(file) +fs.writeFileSync(outputFile, file); +fs.rmSync(tempFile); \ No newline at end of file diff --git a/views/api/documentation/index.html b/views/api_documentation.html similarity index 64% rename from views/api/documentation/index.html rename to views/api_documentation.html index 2bb82bc..e00686f 100644 --- a/views/api/documentation/index.html +++ b/views/api_documentation.html @@ -2,7 +2,7 @@ - Simple Posts/Account API + IPost API @@ -690,198 +690,152 @@ // Script section to load models into a JS Var var defs = {} defs["api_changePW_body"] = { - "required" : [ "currentPW", "newPW" ], "type" : "object", "properties" : { - "currentPW" : { - "type" : "string", - "example" : "this is an example password" - }, "newPW" : { - "type" : "string", - "example" : "this is an example new password" + "type" : "object", + "example" : "any" }, - "user" : { - "type" : "string", - "example" : "TestUser123" + "currentPW" : { + "type" : "object", + "example" : "any" + } + } +}; + defs["api_changeUsername_body"] = { + "type" : "object", + "properties" : { + "newUsername" : { + "type" : "object", + "example" : "any" }, - "pass" : { - "type" : "string", - "example" : "Password_Of_TestUser123" + "currentPW" : { + "type" : "object", + "example" : "any" } } }; defs["api_post_body"] = { - "required" : [ "message" ], "type" : "object", "properties" : { "message" : { - "type" : "string", - "example" : "this posting api is cool" + "type" : "object", + "example" : "any" }, - "user" : { - "type" : "string", - "example" : "TestUser123" - }, - "pass" : { - "type" : "string", - "example" : "Password_Of_TestUser123" + "pid" : { + "type" : "object", + "example" : "any" }, "reply_id" : { - "type" : "number", - "example" : 1 + "type" : "object", + "example" : "any" + }, + "receiver" : { + "type" : "object", + "example" : "any" } } }; defs["api_setBio_body"] = { - "required" : [ "Bio" ], "type" : "object", "properties" : { "Bio" : { - "type" : "string", - "example" : "this bio api is cool" - }, - "user" : { - "type" : "string", - "example" : "TestUser123" - }, - "pass" : { - "type" : "string", - "example" : "Password_Of_TestUser123" + "type" : "object", + "example" : "any" } } }; - defs["inline_response_200"] = { + defs["api_settings_body"] = { "type" : "object", "properties" : { - "User_Name" : { - "type" : "string", - "example" : "Code002Lover" + "setting" : { + "type" : "object", + "example" : "any" }, - "User_Bio" : { - "type" : "string", - "example" : "wow such empty" - }, - "post_user_name" : { - "type" : "string", - "example" : "he%20llo" - }, - "post_text" : { - "type" : "string", - "example" : "hi" - }, - "post_time" : { - "type" : "number", - "example" : 1653492585836 - }, - "post_special_text" : { - "type" : "string", - "example" : "First post" - }, - "post_id" : { - "type" : "number", - "example" : 1 + "value" : { + "type" : "object", + "example" : "any" } } }; - defs["inline_response_200_1"] = { - "required" : [ "bio", "username" ], + defs["authorize_body"] = { "type" : "object", "properties" : { - "username" : { - "type" : "string", - "example" : "Code002Lover" + "application_id" : { + "type" : "object", + "example" : "any" }, - "bio" : { - "type" : "string", - "example" : "wow such empty" + "application_extra" : { + "type" : "object", + "example" : "any" } } }; - defs["inline_response_200_2"] = { - "required" : [ "avatar", "bio", "publicKey", "username" ], + defs["dms_post_body"] = { "type" : "object", "properties" : { - "username" : { - "type" : "string", - "example" : "Code002Lover" + "message" : { + "type" : "object", + "example" : "any" }, - "bio" : { - "type" : "string", - "example" : "wow such empty" + "pid" : { + "type" : "object", + "example" : "any" }, - "avatar" : { - "type" : "string", - "example" : "_By2Se7gPTk_KfPQYx3QYy2Rc5nTk_LaJQKgQWr9IcLB3sUn_Bn_C8eNKMXFzTj_OOQJjRd6jSe7hQYy1Sf9cMAAWE8KJkSg" + "reply_id" : { + "type" : "object", + "example" : "any" }, - "publicKey" : { - "type" : "string", - "example" : "-----BEGIN PUBLIC KEY-----\n MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAo6LMtHoh7jkd/nR6ESqS\n TY/UwXCEdhfvBAPMH1MxJ17jYGfRM90GrtBumtYoSDIttejsF6oxtI0aKK6e2DKU\n ayT3nRdx14TrjZ4NYvRW6Z/gPdQz3H4Gxx/A8CjtiYcHTfzuosu5TbJOB1RoiP09\n /NjxyUB7g1xIr+5cvY9UygTeiNNHZzDyJNUUzqL77vO48l8ArdfqPMj/6Ie4bV9W\n 92pfObcNGH5gdwF2xPSLh0hHvcMXv5wOtS1fPtfe+zAKuh43dUEwXea0sqjG6wy/\n ZK+AA4MEjuEAnU2xm8wZcft9KXHqkED6EBZxo1moFVL27Eahb8nYTYudW3DEDeqL\n h2FydoXCfr+YEaqdeAhsRLRdPcnFefeGPi1chxNwYKBI3JMYVycihXXxKU3krTiF\n 2TwWfagA+WH1+hh0F84taDiy8lWay3vLH6SJiYSIas4b7UoICh5l11TiVu6d/pAq\n fA5R04viZhzeACt736eJm1BCV0wWYSZ1w20tdsPHYhRpkz8EI29EzrIg8ZR0zw6/\n abKh9dp7wv44jAGuOn9qLt8X3oS3/FYe4ZZsJdM7MlOkCRNsAtFTF8g2rvGillZK\n P+d/+bDDMYq8qkrUeqpVaD0hxhzf5hIp+1oYiAY7c5iGchwHS8bn5hPWUB2Yfp64\n HtJoNwwxs0NrfJoc7K9kVWkCAwEAAQ==\n -----END PUBLIC KEY-----\n" - } - } -}; - defs["inline_response_200_3"] = { - "type" : "object", - "properties" : { - "post_user_name" : { - "type" : "string", - "example" : "he%20llo" - }, - "post_text" : { - "type" : "string", - "example" : "hi" - }, - "post_time" : { - "type" : "number", - "example" : 1653492585836 - }, - "post_special_text" : { - "type" : "string", - "example" : "First post" - }, - "post_receiver_name" : { - "type" : "string", - "example" : "everyone" - }, - "post_from_bot" : { - "type" : "boolean", - "example" : false - }, - "post_id" : { - "type" : "number", - "example" : 1 - }, - "post_reply_id" : { - "type" : "number", - "example" : 1 + "receiver" : { + "type" : "object", + "example" : "any" } } }; defs["login_body"] = { - "required" : [ "pass", "user" ], "type" : "object", "properties" : { "user" : { - "type" : "string", - "example" : "Code002Lover" + "type" : "object", + "example" : "any" }, "pass" : { - "type" : "string", - "example" : "1234567890" + "type" : "object", + "example" : "any" + }, + "r" : { + "type" : "object", + "example" : "any" + } + } +}; + defs["redeemauthcode_body"] = { + "type" : "object", + "properties" : { + "authcode" : { + "type" : "object", + "example" : "any" + }, + "auth" : { + "type" : "object", + "example" : "any" } } }; defs["register_body"] = { - "required" : [ "pass", "user" ], "type" : "object", "properties" : { "user" : { - "type" : "string", - "example" : "Code002Lover" + "type" : "object", + "example" : "any" }, "pass" : { - "type" : "string", - "example" : "1234567890" + "type" : "object", + "example" : "any" + }, + "r" : { + "type" : "object", + "example" : "any" } } }; @@ -901,43 +855,114 @@ --> - -
  • - getPost +
  • +
  • + apiChangePWPost
  • -
  • - getotheruser +
  • + apiChangeUsernamePost
  • - -
  • - changePW +
  • + apiDmsConversationsGet
  • -
  • - getPost +
  • + apiDmsEncryptJsGet
  • -
  • - getPosts +
  • + apiDmsGetDMGet
  • -
  • - getotheruser +
  • + apiDmsPidGet
  • -
  • - getuser +
  • + apiDmsPostPost
  • -
  • - login +
  • + apiGetChannelsGet
  • -
  • - post +
  • + apiGetFileIconIconGet
  • -
  • - register +
  • + apiGetPersonalPostsGet
  • -
  • - search +
  • + apiGetPostGet
  • -
  • - setBio +
  • + apiGetPostsGet +
  • +
  • + apiGetPostsLowerThanGet +
  • +
  • + apiGetalluserinformationGet +
  • +
  • + apiGetotheruserGet +
  • +
  • + apiGetuserGet +
  • +
  • + apiPidGet +
  • +
  • + apiPostPost +
  • +
  • + apiSearchGet +
  • +
  • + apiSetBioPost +
  • +
  • + apiSetavatarPost +
  • +
  • + apiSettingsGet +
  • +
  • + apiSettingsPost +
  • +
  • + authorizePost +
  • +
  • + avatarsAvatarGet +
  • +
  • + cssFileGet +
  • +
  • + fileGet +
  • +
  • + imagesFileGet +
  • +
  • + jsFileGet +
  • +
  • + loginPost +
  • +
  • + logoutGet +
  • +
  • + redeemauthcodePost +
  • +
  • + registerPost +
  • +
  • + rootGet +
  • +
  • + userUploadsFileGet +
  • +
  • + usersUserGet
  • @@ -945,7 +970,7 @@
    -

    Simple Posts/Account API

    +

    IPost API

    @@ -954,641 +979,22 @@

    API and SDK Documentation

    Version: 1.0.0

    -
    This is a simple API
    +
    the official IPost.rocks API documentation
    -
    -

    CORS

    -
    -
    +
    +

    Default

    +
    +
    -

    getPost

    -

    returns post with the given id

    +

    apiChangePWPost

    +

    -

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

    -

    -
    -
    /api/getPost
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getPost?id="
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.CORSApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class CORSApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        CORSApi apiInstance = new CORSApi();
    -        BigDecimal id = 1.2; // BigDecimal | the id of the post
    -        try {
    -            inline_response_200_3 result = apiInstance.getPost(id);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling CORSApi#getPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.CORSApi;
    -
    -public class CORSApiExample {
    -
    -    public static void main(String[] args) {
    -        CORSApi apiInstance = new CORSApi();
    -        BigDecimal id = 1.2; // BigDecimal | the id of the post
    -        try {
    -            inline_response_200_3 result = apiInstance.getPost(id);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling CORSApi#getPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    BigDecimal *id = 1.2; // the id of the post
    -
    -CORSApi *apiInstance = [[CORSApi alloc] init];
    -
    -// returns post with the given id
    -[apiInstance getPostWith:id
    -              completionHandler: ^(inline_response_200_3 output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.CORSApi()
    -var id = 1.2; // {{BigDecimal}} the id of the post
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getPost(id, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getPostExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new CORSApi();
    -            var id = 1.2;  // BigDecimal | the id of the post
    -
    -            try
    -            {
    -                // returns post with the given id
    -                inline_response_200_3 result = apiInstance.getPost(id);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling CORSApi.getPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiCORSApi();
    -$id = 1.2; // BigDecimal | the id of the post
    -
    -try {
    -    $result = $api_instance->getPost($id);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling CORSApi->getPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::CORSApi;
    -
    -my $api_instance = WWW::SwaggerClient::CORSApi->new();
    -my $id = 1.2; # BigDecimal | the id of the post
    -
    -eval { 
    -    my $result = $api_instance->getPost(id => $id);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling CORSApi->getPost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.CORSApi()
    -id = 1.2 # BigDecimal | the id of the post
    -
    -try: 
    -    # returns post with the given id
    -    api_response = api_instance.get_post(id)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling CORSApi->getPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - -
    Query parameters
    - - - - - - - - -
    NameDescription
    id* - - -
    -
    -
    - - BigDecimal - - -
    - the id of the post -
    -
    -
    - Required -
    -
    -
    -
    - -

    Responses

    -

    Status: 200 - successfully got information -

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - no or bad login cookie

    - - - -
    -
    - -
    -
    -
    -
    -
    -
    -

    getotheruser

    -

    returns information about any user

    -
    -
    -
    -

    -

    returns information about any user -

    -

    -
    -
    /api/getotheruser
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getotheruser?user="
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.CORSApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class CORSApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        CORSApi apiInstance = new CORSApi();
    -        String user = user_example; // String | pass the username of the user you want to get information on
    -        try {
    -            inline_response_200_2 result = apiInstance.getotheruser(user);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling CORSApi#getotheruser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.CORSApi;
    -
    -public class CORSApiExample {
    -
    -    public static void main(String[] args) {
    -        CORSApi apiInstance = new CORSApi();
    -        String user = user_example; // String | pass the username of the user you want to get information on
    -        try {
    -            inline_response_200_2 result = apiInstance.getotheruser(user);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling CORSApi#getotheruser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    String *user = user_example; // pass the username of the user you want to get information on
    -
    -CORSApi *apiInstance = [[CORSApi alloc] init];
    -
    -// returns information about any user
    -[apiInstance getotheruserWith:user
    -              completionHandler: ^(inline_response_200_2 output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.CORSApi()
    -var user = user_example; // {{String}} pass the username of the user you want to get information on
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getotheruser(user, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getotheruserExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new CORSApi();
    -            var user = user_example;  // String | pass the username of the user you want to get information on
    -
    -            try
    -            {
    -                // returns information about any user
    -                inline_response_200_2 result = apiInstance.getotheruser(user);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling CORSApi.getotheruser: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiCORSApi();
    -$user = user_example; // String | pass the username of the user you want to get information on
    -
    -try {
    -    $result = $api_instance->getotheruser($user);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling CORSApi->getotheruser: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::CORSApi;
    -
    -my $api_instance = WWW::SwaggerClient::CORSApi->new();
    -my $user = user_example; # String | pass the username of the user you want to get information on
    -
    -eval { 
    -    my $result = $api_instance->getotheruser(user => $user);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling CORSApi->getotheruser: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.CORSApi()
    -user = user_example # String | pass the username of the user you want to get information on
    -
    -try: 
    -    # returns information about any user
    -    api_response = api_instance.getotheruser(user)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling CORSApi->getotheruser: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - -
    Query parameters
    - - - - - - - - -
    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

    - - - -
    -
    - -
    -
    -
    -
    -
    -

    Everyone

    -
    -
    -
    -

    changePW

    -

    changes the password

    -
    -
    -
    -

    -

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

    +


    /api/changePW
    @@ -1596,78 +1002,90 @@ also sets the AUTH_COOKIE cookie to the new one

    Usage and SDK Samples

    -
    +
    curl -X POST\
    --H "Content-Type: application/json"\
    -"https://ipost.tk/api/changePW"
    +-H "ipost-auth-token: [[apiKey]]"\ +-H "Content-Type: */*"\ +"https://ipost.rocks//api/changePW"
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
             Api_changePW_body body = ; // Api_changePW_body | 
             try {
    -            apiInstance.changePW(body);
    +            apiInstance.apiChangePWPost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#changePW");
    +            System.err.println("Exception when calling DefaultApi#apiChangePWPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import io.swagger.client.api.EveryoneApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    +        DefaultApi apiInstance = new DefaultApi();
             Api_changePW_body body = ; // Api_changePW_body | 
             try {
    -            apiInstance.changePW(body);
    +            apiInstance.apiChangePWPost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#changePW");
    +            System.err.println("Exception when calling DefaultApi#apiChangePWPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Api_changePW_body *body = ; //  (optional)
    +                            
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_changePW_body *body = ; //  (optional)
     
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -// changes the password
    -[apiInstance changePWWith:body
    +[apiInstance apiChangePWPostWith:body
                   completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
    @@ -1676,10 +1094,17 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
    -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +                            
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
     
    -var api = new SimplePostsaccountApi.EveryoneApi()
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
     var opts = { 
       'body':  // {{Api_changePW_body}} 
     };
    @@ -1690,14 +1115,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.changePW(opts, callback);
    +api.apiChangePWPost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -1706,22 +1131,26 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class changePWExample
    +    public class apiChangePWPostExample
         {
             public void main()
             {
     
    -            var apiInstance = new EveryoneApi();
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
                 var body = new Api_changePW_body(); // Api_changePW_body |  (optional) 
     
                 try
                 {
    -                // changes the password
    -                apiInstance.changePW(body);
    +                apiInstance.apiChangePWPost(body);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling EveryoneApi.changePW: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.apiChangePWPost: " + e.Message );
                 }
             }
         }
    @@ -1729,53 +1158,67 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_changePW_body | 
     
     try {
    -    $api_instance->changePW($body);
    +    $api_instance->apiChangePWPost($body);
     } catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->changePW: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->apiChangePWPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    +use WWW::SwaggerClient::DefaultApi;
     
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_changePW_body->new(); # Api_changePW_body | 
     
     eval { 
    -    $api_instance->changePW(body => $body);
    +    $api_instance->apiChangePWPost(body => $body);
     };
     if ($@) {
    -    warn "Exception when calling EveryoneApi->changePW: $@\n";
    +    warn "Exception when calling DefaultApi->apiChangePWPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    +api_instance = swagger_client.DefaultApi()
     body =  # Api_changePW_body |  (optional)
     
     try: 
    -    # changes the password
    -    api_instance.change_pw(body=body)
    +    api_instance.api_change_pw_post(body=body)
     except ApiException as e:
    -    print("Exception when calling EveryoneApi->changePW: %s\n" % e)
    + print("Exception when calling DefaultApi->apiChangePWPost: %s\n" % e)
    @@ -1797,14 +1240,15 @@ except ApiException as e: $(document).ready(function() { var schemaWrapper = { "content" : { - "application/json" : { + "*/*" : { "schema" : { "$ref" : "#/components/schemas/api_changePW_body" } } - } + }, + "required" : false }; - var schema = schemaWrapper.content["application/json"].schema; + var schema = schemaWrapper.content["*/*"].schema; if (schema.$ref != null) { schema = defsParser.$refs.get(schema.$ref); } else { @@ -1816,12 +1260,12 @@ except ApiException as e: } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_changePW_body'); + var result = $('#d2e199_apiChangePWPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -1829,8 +1273,7 @@ except ApiException as e:

    Responses

    -

    Status: 200 - successfully set bio -

    +

    Status: 200 - OK

    @@ -1838,7 +1281,7 @@ except ApiException as e:
    -

    Status: 400 - no or bad login cookie

    +

    Status: 410 - argument/data error

    @@ -1849,1250 +1292,107 @@ except ApiException as e:

    -
    -
    +
    +
    -

    getPost

    -

    returns post with the given id

    +

    apiChangeUsernamePost

    +

    -

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

    +


    -
    /api/getPost
    +
    /api/changeUsername

    Usage and SDK Samples

    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getPost?id="
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        BigDecimal id = 1.2; // BigDecimal | the id of the post
    -        try {
    -            inline_response_200_3 result = apiInstance.getPost(id);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.EveryoneApi;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        BigDecimal id = 1.2; // BigDecimal | the id of the post
    -        try {
    -            inline_response_200_3 result = apiInstance.getPost(id);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    BigDecimal *id = 1.2; // the id of the post
    -
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    -
    -// returns post with the given id
    -[apiInstance getPostWith:id
    -              completionHandler: ^(inline_response_200_3 output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.EveryoneApi()
    -var id = 1.2; // {{BigDecimal}} the id of the post
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getPost(id, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getPostExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new EveryoneApi();
    -            var id = 1.2;  // BigDecimal | the id of the post
    -
    -            try
    -            {
    -                // returns post with the given id
    -                inline_response_200_3 result = apiInstance.getPost(id);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling EveryoneApi.getPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -$id = 1.2; // BigDecimal | the id of the post
    -
    -try {
    -    $result = $api_instance->getPost($id);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->getPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    -
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -my $id = 1.2; # BigDecimal | the id of the post
    -
    -eval { 
    -    my $result = $api_instance->getPost(id => $id);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling EveryoneApi->getPost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -id = 1.2 # BigDecimal | the id of the post
    -
    -try: 
    -    # returns post with the given id
    -    api_response = api_instance.get_post(id)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling EveryoneApi->getPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - -
    Query parameters
    - - - - - - - - -
    NameDescription
    id* - - -
    -
    -
    - - BigDecimal - - -
    - the id of the post -
    -
    -
    - Required -
    -
    -
    -
    - -

    Responses

    -

    Status: 200 - successfully got information -

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - no or bad login cookie

    - - - -
    -
    - -
    -
    -
    -
    -
    -
    -

    getPosts

    -

    returns all posts

    -
    -
    -
    -

    -

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

    -

    -
    -
    /api/getPosts
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getPosts"
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        try {
    -            array[inline_response_200_3] result = apiInstance.getPosts();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getPosts");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.EveryoneApi;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        try {
    -            array[inline_response_200_3] result = apiInstance.getPosts();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getPosts");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    -
    -// returns all posts
    -[apiInstance getPostsWithCompletionHandler: 
    -              ^(array[inline_response_200_3] output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.EveryoneApi()
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getPosts(callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getPostsExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new EveryoneApi();
    -
    -            try
    -            {
    -                // returns all posts
    -                array[inline_response_200_3] result = apiInstance.getPosts();
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling EveryoneApi.getPosts: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -
    -try {
    -    $result = $api_instance->getPosts();
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->getPosts: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    -
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -
    -eval { 
    -    my $result = $api_instance->getPosts();
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling EveryoneApi->getPosts: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -
    -try: 
    -    # returns all posts
    -    api_response = api_instance.get_posts()
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling EveryoneApi->getPosts: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - - -

    Responses

    -

    Status: 200 - successfully got information -

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - no or bad login cookie

    - - - -
    -
    - -
    -
    -
    -
    -
    -
    -

    getotheruser

    -

    returns information about any user

    -
    -
    -
    -

    -

    returns information about any user -

    -

    -
    -
    /api/getotheruser
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getotheruser?user="
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        String user = user_example; // String | pass the username of the user you want to get information on
    -        try {
    -            inline_response_200_2 result = apiInstance.getotheruser(user);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getotheruser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.EveryoneApi;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        String user = user_example; // String | pass the username of the user you want to get information on
    -        try {
    -            inline_response_200_2 result = apiInstance.getotheruser(user);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getotheruser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    String *user = user_example; // pass the username of the user you want to get information on
    -
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    -
    -// returns information about any user
    -[apiInstance getotheruserWith:user
    -              completionHandler: ^(inline_response_200_2 output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.EveryoneApi()
    -var user = user_example; // {{String}} pass the username of the user you want to get information on
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getotheruser(user, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getotheruserExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new EveryoneApi();
    -            var user = user_example;  // String | pass the username of the user you want to get information on
    -
    -            try
    -            {
    -                // returns information about any user
    -                inline_response_200_2 result = apiInstance.getotheruser(user);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling EveryoneApi.getotheruser: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -$user = user_example; // String | pass the username of the user you want to get information on
    -
    -try {
    -    $result = $api_instance->getotheruser($user);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->getotheruser: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    -
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -my $user = user_example; # String | pass the username of the user you want to get information on
    -
    -eval { 
    -    my $result = $api_instance->getotheruser(user => $user);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling EveryoneApi->getotheruser: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -user = user_example # String | pass the username of the user you want to get information on
    -
    -try: 
    -    # returns information about any user
    -    api_response = api_instance.getotheruser(user)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling EveryoneApi->getotheruser: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - -
    Query parameters
    - - - - - - - - -
    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 information is set, the API will return information about the current user -

    -

    -
    -
    /api/getuser
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    --H "Accept: application/json"\
    -"https://ipost.tk/api/getuser"
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        try {
    -            inline_response_200_1 result = apiInstance.getuser();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getuser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.EveryoneApi;
    -
    -public class EveryoneApiExample {
    -
    -    public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        try {
    -            inline_response_200_1 result = apiInstance.getuser();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#getuser");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    -
    -// returns current user information
    -[apiInstance getuserWithCompletionHandler: 
    -              ^(inline_response_200_1 output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    -
    -var api = new SimplePostsaccountApi.EveryoneApi()
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.getuser(callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class getuserExample
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new EveryoneApi();
    -
    -            try
    -            {
    -                // returns current user information
    -                inline_response_200_1 result = apiInstance.getuser();
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling EveryoneApi.getuser: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -
    -try {
    -    $result = $api_instance->getuser();
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->getuser: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    -
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -
    -eval { 
    -    my $result = $api_instance->getuser();
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling EveryoneApi->getuser: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -
    -try: 
    -    # returns current user information
    -    api_response = api_instance.getuser()
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling EveryoneApi->getuser: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - - -

    Responses

    -

    Status: 200 - successfully got information

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - no or bad login cookie

    - - - -
    -
    - -
    -
    -
    -
    -
    -
    -

    login

    -

    logging in

    -
    -
    -
    -

    -

    logges you in

    -

    -
    -
    /login
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    +
    curl -X POST\
    --H "Content-Type: application/json"\
    -"https://ipost.tk/login"
    +-H "ipost-auth-token: [[apiKey]]"\ +-H "Content-Type: */*"\ +"https://ipost.rocks//api/changeUsername"
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Login_body body = ; // Login_body | 
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_changeUsername_body body = ; // Api_changeUsername_body | 
             try {
    -            apiInstance.login(body);
    +            apiInstance.apiChangeUsernamePost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#login");
    +            System.err.println("Exception when calling DefaultApi#apiChangeUsernamePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import io.swagger.client.api.EveryoneApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Login_body body = ; // Login_body | 
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_changeUsername_body body = ; // Api_changeUsername_body | 
             try {
    -            apiInstance.login(body);
    +            apiInstance.apiChangeUsernamePost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#login");
    +            System.err.println("Exception when calling DefaultApi#apiChangeUsernamePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Login_body *body = ; //  (optional)
    +                            
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_changeUsername_body *body = ; //  (optional)
     
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -// logging in
    -[apiInstance loginWith:body
    +[apiInstance apiChangeUsernamePostWith:body
                   completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
    @@ -3101,12 +1401,19 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
    -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +                            
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
     
    -var api = new SimplePostsaccountApi.EveryoneApi()
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
     var opts = { 
    -  'body':  // {{Login_body}} 
    +  'body':  // {{Api_changeUsername_body}} 
     };
     var callback = function(error, data, response) {
       if (error) {
    @@ -3115,14 +1422,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.login(opts, callback);
    +api.apiChangeUsernamePost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -3131,22 +1438,26 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class loginExample
    +    public class apiChangeUsernamePostExample
         {
             public void main()
             {
     
    -            var apiInstance = new EveryoneApi();
    -            var body = new Login_body(); // Login_body |  (optional) 
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var body = new Api_changeUsername_body(); // Api_changeUsername_body |  (optional) 
     
                 try
                 {
    -                // logging in
    -                apiInstance.login(body);
    +                apiInstance.apiChangeUsernamePost(body);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling EveryoneApi.login: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.apiChangeUsernamePost: " + e.Message );
                 }
             }
         }
    @@ -3154,53 +1465,67 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -$body = ; // Login_body | 
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$body = ; // Api_changeUsername_body | 
     
     try {
    -    $api_instance->login($body);
    +    $api_instance->apiChangeUsernamePost($body);
     } catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->login: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->apiChangeUsernamePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    +use WWW::SwaggerClient::DefaultApi;
     
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -my $body = WWW::SwaggerClient::Object::Login_body->new(); # Login_body | 
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::Api_changeUsername_body->new(); # Api_changeUsername_body | 
     
     eval { 
    -    $api_instance->login(body => $body);
    +    $api_instance->apiChangeUsernamePost(body => $body);
     };
     if ($@) {
    -    warn "Exception when calling EveryoneApi->login: $@\n";
    +    warn "Exception when calling DefaultApi->apiChangeUsernamePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -body =  # Login_body |  (optional)
    +api_instance = swagger_client.DefaultApi()
    +body =  # Api_changeUsername_body |  (optional)
     
     try: 
    -    # logging in
    -    api_instance.login(body=body)
    +    api_instance.api_change_username_post(body=body)
     except ApiException as e:
    -    print("Exception when calling EveryoneApi->login: %s\n" % e)
    + print("Exception when calling DefaultApi->apiChangeUsernamePost: %s\n" % e)
    @@ -3222,14 +1547,15 @@ except ApiException as e: $(document).ready(function() { var schemaWrapper = { "content" : { - "application/json" : { + "*/*" : { "schema" : { - "$ref" : "#/components/schemas/login_body" + "$ref" : "#/components/schemas/api_changeUsername_body" } } - } + }, + "required" : false }; - var schema = schemaWrapper.content["application/json"].schema; + var schema = schemaWrapper.content["*/*"].schema; if (schema.$ref != null) { schema = defsParser.$refs.get(schema.$ref); } else { @@ -3241,12 +1567,12 @@ except ApiException as e: } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_login_body'); + var result = $('#d2e199_apiChangeUsernamePost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -3254,7 +1580,7 @@ except ApiException as e:

    Responses

    -

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

    +

    Status: 200 - OK

    @@ -3262,7 +1588,31 @@ except ApiException as e:
    -

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

    +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 412 - argument/data error

    + + + +
    +
    + +

    Status: 413 - argument/data error

    @@ -3273,97 +1623,596 @@ except ApiException as e:

    -
    -
    +
    +
    -

    post

    -

    post a message

    +

    apiDmsConversationsGet

    +

    -

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

    +


    -
    /api/post
    +
    /api/dms/conversations

    Usage and SDK Samples

    -
    -
    curl -X POST\
    --H "Content-Type: application/json"\
    -"https://ipost.tk/api/post"
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/dms/conversations"
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Api_post_body body = ; // Api_post_body | 
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
             try {
    -            apiInstance.post(body);
    +            apiInstance.apiDmsConversationsGet();
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#post");
    +            System.err.println("Exception when calling DefaultApi#apiDmsConversationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import io.swagger.client.api.EveryoneApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Api_post_body body = ; // Api_post_body | 
    +        DefaultApi apiInstance = new DefaultApi();
             try {
    -            apiInstance.post(body);
    +            apiInstance.apiDmsConversationsGet();
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#post");
    +            System.err.println("Exception when calling DefaultApi#apiDmsConversationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Api_post_body *body = ; //  (optional)
    +                            
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
     
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -// post a message
    -[apiInstance postWith:body
    +[apiInstance apiDmsConversationsGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiDmsConversationsGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiDmsConversationsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiDmsConversationsGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiDmsConversationsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiDmsConversationsGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiDmsConversationsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiDmsConversationsGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiDmsConversationsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_dms_conversations_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiDmsConversationsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiDmsEncryptJsGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/dms/encrypt.js
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/dms/encrypt.js"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiDmsEncryptJsGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsEncryptJsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiDmsEncryptJsGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsEncryptJsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiDmsEncryptJsGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiDmsEncryptJsGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiDmsEncryptJsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiDmsEncryptJsGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiDmsEncryptJsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiDmsEncryptJsGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiDmsEncryptJsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiDmsEncryptJsGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiDmsEncryptJsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_dms_encrypt_js_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiDmsEncryptJsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiDmsGetDMGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/dms/getDM
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/dms/getDM?id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiDmsGetDMGet(id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsGetDMGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiDmsGetDMGet(id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsGetDMGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *id = id_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiDmsGetDMGetWith:id
                   completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
    @@ -3372,10 +2221,3636 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
    -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +                            
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
     
    -var api = new SimplePostsaccountApi.EveryoneApi()
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'id': id_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiDmsGetDMGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiDmsGetDMGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var id = id_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiDmsGetDMGet(id);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiDmsGetDMGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$id = id_example; // String | 
    +
    +try {
    +    $api_instance->apiDmsGetDMGet($id);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiDmsGetDMGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $id = id_example; # String | 
    +
    +eval { 
    +    $api_instance->apiDmsGetDMGet(id => $id);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiDmsGetDMGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +id = id_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_dms_get_dm_get(id=id)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiDmsGetDMGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    id + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

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

    apiDmsPidGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/dms/pid
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/dms/pid"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiDmsPidGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsPidGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiDmsPidGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsPidGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiDmsPidGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiDmsPidGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiDmsPidGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiDmsPidGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiDmsPidGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiDmsPidGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiDmsPidGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiDmsPidGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiDmsPidGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_dms_pid_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiDmsPidGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiDmsPostPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/dms/post
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
    +-H "Content-Type: */*"\
    +"https://ipost.rocks//api/dms/post"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        Dms_post_body body = ; // Dms_post_body | 
    +        try {
    +            apiInstance.apiDmsPostPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsPostPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        Dms_post_body body = ; // Dms_post_body | 
    +        try {
    +            apiInstance.apiDmsPostPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiDmsPostPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Dms_post_body *body = ; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiDmsPostPostWith:body
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'body':  // {{Dms_post_body}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiDmsPostPost(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiDmsPostPostExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var body = new Dms_post_body(); // Dms_post_body |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiDmsPostPost(body);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiDmsPostPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$body = ; // Dms_post_body | 
    +
    +try {
    +    $api_instance->apiDmsPostPost($body);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiDmsPostPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::Dms_post_body->new(); # Dms_post_body | 
    +
    +eval { 
    +    $api_instance->apiDmsPostPost(body => $body);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiDmsPostPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # Dms_post_body |  (optional)
    +
    +try: 
    +    api_instance.api_dms_post_post(body=body)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiDmsPostPost: %s\n" % e)
    +
    +
    + +

    Parameters

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

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 412 - argument/data error

    + + + +
    +
    + +

    Status: 413 - argument/data error

    + + + +
    +
    + +

    Status: 414 - argument/data error

    + + + +
    +
    + +

    Status: 415 - argument/data error

    + + + +
    +
    + +

    Status: 416 - argument/data error

    + + + +
    +
    + +

    Status: 417 - argument/data error

    + + + +
    +
    + +

    Status: 418 - argument/data error

    + + + +
    +
    + +

    Status: 500 - Internal Server Error

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

    apiGetChannelsGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getChannels
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getChannels"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String host = host_example; // String | 
    +        try {
    +            apiInstance.apiGetChannelsGet(host);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetChannelsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String host = host_example; // String | 
    +        try {
    +            apiInstance.apiGetChannelsGet(host);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetChannelsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *host = host_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetChannelsGetWith:host
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'host': host_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetChannelsGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetChannelsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var host = host_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetChannelsGet(host);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetChannelsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$host = host_example; // String | 
    +
    +try {
    +    $api_instance->apiGetChannelsGet($host);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetChannelsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $host = host_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetChannelsGet(host => $host);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetChannelsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +host = host_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_get_channels_get(host=host)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetChannelsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + +
    Header parameters
    + + + + + + + + +
    NameDescription
    host + + +
    +
    +
    + + String + + +
    +
    +
    +
    + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 429 - Too Many Requests

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

    apiGetFileIconIconGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getFileIcon/{icon}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getFileIcon/{icon}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String icon = icon_example; // String | 
    +        try {
    +            apiInstance.apiGetFileIconIconGet(icon);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetFileIconIconGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String icon = icon_example; // String | 
    +        try {
    +            apiInstance.apiGetFileIconIconGet(icon);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetFileIconIconGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *icon = icon_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetFileIconIconGetWith:icon
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var icon = icon_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetFileIconIconGet(icon, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetFileIconIconGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var icon = icon_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.apiGetFileIconIconGet(icon);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetFileIconIconGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$icon = icon_example; // String | 
    +
    +try {
    +    $api_instance->apiGetFileIconIconGet($icon);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetFileIconIconGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $icon = icon_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetFileIconIconGet(icon => $icon);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetFileIconIconGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +icon = icon_example # String | 
    +
    +try: 
    +    api_instance.api_get_file_icon_icon_get(icon)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetFileIconIconGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    icon* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

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

    apiGetPersonalPostsGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getPersonalPosts
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getPersonalPosts?otherperson="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String otherperson = otherperson_example; // String | 
    +        try {
    +            apiInstance.apiGetPersonalPostsGet(otherperson);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPersonalPostsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String otherperson = otherperson_example; // String | 
    +        try {
    +            apiInstance.apiGetPersonalPostsGet(otherperson);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPersonalPostsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *otherperson = otherperson_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetPersonalPostsGetWith:otherperson
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'otherperson': otherperson_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetPersonalPostsGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetPersonalPostsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var otherperson = otherperson_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetPersonalPostsGet(otherperson);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetPersonalPostsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$otherperson = otherperson_example; // String | 
    +
    +try {
    +    $api_instance->apiGetPersonalPostsGet($otherperson);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetPersonalPostsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $otherperson = otherperson_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetPersonalPostsGet(otherperson => $otherperson);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetPersonalPostsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +otherperson = otherperson_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_get_personal_posts_get(otherperson=otherperson)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetPersonalPostsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    otherperson + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

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

    apiGetPostGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getPost
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getPost?id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiGetPostGet(id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiGetPostGet(id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *id = id_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetPostGetWith:id
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'id': id_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetPostGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetPostGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var id = id_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetPostGet(id);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetPostGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$id = id_example; // String | 
    +
    +try {
    +    $api_instance->apiGetPostGet($id);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetPostGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $id = id_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetPostGet(id => $id);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetPostGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +id = id_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_get_post_get(id=id)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetPostGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    id + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

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

    apiGetPostsGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getPosts
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getPosts?channel="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
    +        try {
    +            apiInstance.apiGetPostsGet(channel);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
    +        try {
    +            apiInstance.apiGetPostsGet(channel);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *channel = channel_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetPostsGetWith:channel
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'channel': channel_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetPostsGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetPostsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var channel = channel_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetPostsGet(channel);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetPostsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$channel = channel_example; // String | 
    +
    +try {
    +    $api_instance->apiGetPostsGet($channel);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetPostsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $channel = channel_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetPostsGet(channel => $channel);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetPostsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +channel = channel_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_get_posts_get(channel=channel)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    channel + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

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

    apiGetPostsLowerThanGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getPostsLowerThan
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getPostsLowerThan?channel=&id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiGetPostsLowerThanGet(channel, id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostsLowerThanGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.apiGetPostsLowerThanGet(channel, id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetPostsLowerThanGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *channel = channel_example; //  (optional)
    +String *id = id_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetPostsLowerThanGetWith:channel
    +    id:id
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'channel': channel_example, // {{String}} 
    +  'id': id_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetPostsLowerThanGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetPostsLowerThanGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var channel = channel_example;  // String |  (optional) 
    +            var id = id_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetPostsLowerThanGet(channel, id);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetPostsLowerThanGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$channel = channel_example; // String | 
    +$id = id_example; // String | 
    +
    +try {
    +    $api_instance->apiGetPostsLowerThanGet($channel, $id);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetPostsLowerThanGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $channel = channel_example; # String | 
    +my $id = id_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetPostsLowerThanGet(channel => $channel, id => $id);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetPostsLowerThanGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +channel = channel_example # String |  (optional)
    +id = id_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_get_posts_lower_than_get(channel=channel, id=id)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetPostsLowerThanGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + + + + +
    NameDescription
    channel + + +
    +
    +
    + + String + + +
    +
    +
    +
    id + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

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

    apiGetalluserinformationGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getalluserinformation
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getalluserinformation"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiGetalluserinformationGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetalluserinformationGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiGetalluserinformationGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetalluserinformationGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetalluserinformationGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetalluserinformationGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetalluserinformationGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiGetalluserinformationGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetalluserinformationGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiGetalluserinformationGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetalluserinformationGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiGetalluserinformationGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetalluserinformationGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_getalluserinformation_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetalluserinformationGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 401 - login error (invalid cookie)

    + + + +
    +
    + +

    Status: 402 - login error (bad cookie)

    + + + +
    +
    + +

    Status: 403 - login error (no cookie)

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

    apiGetotheruserGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getotheruser
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//api/getotheruser?user="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String user = user_example; // String | 
    +        try {
    +            apiInstance.apiGetotheruserGet(user);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetotheruserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String user = user_example; // String | 
    +        try {
    +            apiInstance.apiGetotheruserGet(user);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetotheruserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *user = user_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetotheruserGetWith:user
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'user': user_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetotheruserGet(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetotheruserGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var user = user_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiGetotheruserGet(user);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetotheruserGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$user = user_example; // String | 
    +
    +try {
    +    $api_instance->apiGetotheruserGet($user);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetotheruserGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $user = user_example; # String | 
    +
    +eval { 
    +    $api_instance->apiGetotheruserGet(user => $user);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetotheruserGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +user = user_example # String |  (optional)
    +
    +try: 
    +    api_instance.api_getotheruser_get(user=user)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetotheruserGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    user + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

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

    apiGetuserGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/getuser
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/getuser"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiGetuserGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetuserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiGetuserGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiGetuserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiGetuserGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiGetuserGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiGetuserGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiGetuserGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiGetuserGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiGetuserGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiGetuserGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiGetuserGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiGetuserGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_getuser_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiGetuserGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiPidGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/pid
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/pid"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiPidGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiPidGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiPidGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiPidGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiPidGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiPidGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiPidGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiPidGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiPidGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiPidGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiPidGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiPidGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiPidGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_pid_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiPidGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiPostPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/post
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
    +-H "Content-Type: */*"\
    +"https://ipost.rocks//api/post"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_post_body body = ; // Api_post_body | 
    +        try {
    +            apiInstance.apiPostPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiPostPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_post_body body = ; // Api_post_body | 
    +        try {
    +            apiInstance.apiPostPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiPostPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_post_body *body = ; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiPostPostWith:body
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
     var opts = { 
       'body':  // {{Api_post_body}} 
     };
    @@ -3386,14 +5861,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.post(opts, callback);
    +api.apiPostPost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -3402,22 +5877,26 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class postExample
    +    public class apiPostPostExample
         {
             public void main()
             {
     
    -            var apiInstance = new EveryoneApi();
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
                 var body = new Api_post_body(); // Api_post_body |  (optional) 
     
                 try
                 {
    -                // post a message
    -                apiInstance.post(body);
    +                apiInstance.apiPostPost(body);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling EveryoneApi.post: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.apiPostPost: " + e.Message );
                 }
             }
         }
    @@ -3425,53 +5904,67 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_post_body | 
     
     try {
    -    $api_instance->post($body);
    +    $api_instance->apiPostPost($body);
     } catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->post: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->apiPostPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    +use WWW::SwaggerClient::DefaultApi;
     
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_post_body->new(); # Api_post_body | 
     
     eval { 
    -    $api_instance->post(body => $body);
    +    $api_instance->apiPostPost(body => $body);
     };
     if ($@) {
    -    warn "Exception when calling EveryoneApi->post: $@\n";
    +    warn "Exception when calling DefaultApi->apiPostPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    +api_instance = swagger_client.DefaultApi()
     body =  # Api_post_body |  (optional)
     
     try: 
    -    # post a message
    -    api_instance.post(body=body)
    +    api_instance.api_post_post(body=body)
     except ApiException as e:
    -    print("Exception when calling EveryoneApi->post: %s\n" % e)
    + print("Exception when calling DefaultApi->apiPostPost: %s\n" % e)
    @@ -3493,14 +5986,15 @@ except ApiException as e: $(document).ready(function() { var schemaWrapper = { "content" : { - "application/json" : { + "*/*" : { "schema" : { "$ref" : "#/components/schemas/api_post_body" } } - } + }, + "required" : false }; - var schema = schemaWrapper.content["application/json"].schema; + var schema = schemaWrapper.content["*/*"].schema; if (schema.$ref != null) { schema = defsParser.$refs.get(schema.$ref); } else { @@ -3512,12 +6006,12 @@ except ApiException as e: } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_post_body'); + var result = $('#d2e199_apiPostPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -3525,8 +6019,7 @@ except ApiException as e:

    Responses

    -

    Status: 200 - successfully got information -

    +

    Status: 200 - OK

    @@ -3534,7 +6027,7 @@ except ApiException as e:
    -

    Status: 400 - no or bad login cookie

    +

    Status: 500 - Internal Server Error

    @@ -3545,95 +6038,110 @@ except ApiException as e:

    -
    -
    +
    +
    -

    register

    -

    registers a new user

    +

    apiSearchGet

    +

    -

    registers a new user

    +


    -
    /register
    +
    /api/search

    Usage and SDK Samples

    -
    -
    curl -X POST\
    --H "Content-Type: application/json"\
    -"https://ipost.tk/register"
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/search?type=&selector="
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Register_body body = ; // Register_body | 
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        String type = type_example; // String | 
    +        String selector = selector_example; // String | 
             try {
    -            apiInstance.register(body);
    +            apiInstance.apiSearchGet(type, selector);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#register");
    +            System.err.println("Exception when calling DefaultApi#apiSearchGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import io.swagger.client.api.EveryoneApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    -        Register_body body = ; // Register_body | 
    +        DefaultApi apiInstance = new DefaultApi();
    +        String type = type_example; // String | 
    +        String selector = selector_example; // String | 
             try {
    -            apiInstance.register(body);
    +            apiInstance.apiSearchGet(type, selector);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#register");
    +            System.err.println("Exception when calling DefaultApi#apiSearchGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Register_body *body = ; //  (optional)
    +                            
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *type = type_example; //  (optional)
    +String *selector = selector_example; //  (optional)
     
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -// registers a new user
    -[apiInstance registerWith:body
    +[apiInstance apiSearchGetWith:type
    +    selector:selector
                   completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
    @@ -3642,12 +6150,20 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
    -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +                            
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
     
    -var api = new SimplePostsaccountApi.EveryoneApi()
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
     var opts = { 
    -  'body':  // {{Register_body}} 
    +  'type': type_example, // {{String}} 
    +  'selector': selector_example // {{String}} 
     };
     var callback = function(error, data, response) {
       if (error) {
    @@ -3656,14 +6172,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.register(opts, callback);
    +api.apiSearchGet(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -3672,22 +6188,27 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class registerExample
    +    public class apiSearchGetExample
         {
             public void main()
             {
     
    -            var apiInstance = new EveryoneApi();
    -            var body = new Register_body(); // Register_body |  (optional) 
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var type = type_example;  // String |  (optional) 
    +            var selector = selector_example;  // String |  (optional) 
     
                 try
                 {
    -                // registers a new user
    -                apiInstance.register(body);
    +                apiInstance.apiSearchGet(type, selector);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling EveryoneApi.register: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.apiSearchGet: " + e.Message );
                 }
             }
         }
    @@ -3695,340 +6216,70 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    -$body = ; // Register_body | 
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$type = type_example; // String | 
    +$selector = selector_example; // String | 
     
     try {
    -    $api_instance->register($body);
    +    $api_instance->apiSearchGet($type, $selector);
     } catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->register: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->apiSearchGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    +use WWW::SwaggerClient::DefaultApi;
     
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    -my $body = WWW::SwaggerClient::Object::Register_body->new(); # Register_body | 
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $type = type_example; # String | 
    +my $selector = selector_example; # String | 
     
     eval { 
    -    $api_instance->register(body => $body);
    +    $api_instance->apiSearchGet(type => $type, selector => $selector);
     };
     if ($@) {
    -    warn "Exception when calling EveryoneApi->register: $@\n";
    +    warn "Exception when calling DefaultApi->apiSearchGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    -# create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    -body =  # Register_body |  (optional)
    -
    -try: 
    -    # registers a new user
    -    api_instance.register(body=body)
    -except ApiException as e:
    -    print("Exception when calling EveryoneApi->register: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - -
    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

    +

    apiSetBioPost

    +

    -

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

    +


    /api/setBio
    @@ -4171,78 +6358,90 @@ except ApiException as e:

    Usage and SDK Samples

    -
    +
    curl -X POST\
    --H "Content-Type: application/json"\
    -"https://ipost.tk/api/setBio"
    +-H "ipost-auth-token: [[apiKey]]"\ +-H "Content-Type: */*"\ +"https://ipost.rocks//api/setBio"
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import io.swagger.client.api.EveryoneApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    -        EveryoneApi apiInstance = new EveryoneApi();
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
             Api_setBio_body body = ; // Api_setBio_body | 
             try {
    -            apiInstance.setBio(body);
    +            apiInstance.apiSetBioPost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#setBio");
    +            System.err.println("Exception when calling DefaultApi#apiSetBioPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import io.swagger.client.api.EveryoneApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
    -public class EveryoneApiExample {
    +public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        EveryoneApi apiInstance = new EveryoneApi();
    +        DefaultApi apiInstance = new DefaultApi();
             Api_setBio_body body = ; // Api_setBio_body | 
             try {
    -            apiInstance.setBio(body);
    +            apiInstance.apiSetBioPost(body);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling EveryoneApi#setBio");
    +            System.err.println("Exception when calling DefaultApi#apiSetBioPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Api_setBio_body *body = ; //  (optional)
    +                            
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_setBio_body *body = ; //  (optional)
     
    -EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -// sets the bio of the current user
    -[apiInstance setBioWith:body
    +[apiInstance apiSetBioPostWith:body
                   completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
    @@ -4251,10 +6450,17 @@ EveryoneApi *apiInstance = [[EveryoneApi alloc] init];
     
    -
    -
    var SimplePostsaccountApi = require('simple_postsaccount_api');
    +                            
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
     
    -var api = new SimplePostsaccountApi.EveryoneApi()
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
     var opts = { 
       'body':  // {{Api_setBio_body}} 
     };
    @@ -4265,14 +6471,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.setBio(opts, callback);
    +api.apiSetBioPost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -4281,22 +6487,26 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class setBioExample
    +    public class apiSetBioPostExample
         {
             public void main()
             {
     
    -            var apiInstance = new EveryoneApi();
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
                 var body = new Api_setBio_body(); // Api_setBio_body |  (optional) 
     
                 try
                 {
    -                // sets the bio of the current user
    -                apiInstance.setBio(body);
    +                apiInstance.apiSetBioPost(body);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling EveryoneApi.setBio: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.apiSetBioPost: " + e.Message );
                 }
             }
         }
    @@ -4304,53 +6514,67 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\ApiEveryoneApi();
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_setBio_body | 
     
     try {
    -    $api_instance->setBio($body);
    +    $api_instance->apiSetBioPost($body);
     } catch (Exception $e) {
    -    echo 'Exception when calling EveryoneApi->setBio: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->apiSetBioPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::EveryoneApi;
    +use WWW::SwaggerClient::DefaultApi;
     
    -my $api_instance = WWW::SwaggerClient::EveryoneApi->new();
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_setBio_body->new(); # Api_setBio_body | 
     
     eval { 
    -    $api_instance->setBio(body => $body);
    +    $api_instance->apiSetBioPost(body => $body);
     };
     if ($@) {
    -    warn "Exception when calling EveryoneApi->setBio: $@\n";
    +    warn "Exception when calling DefaultApi->apiSetBioPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
    -api_instance = swagger_client.EveryoneApi()
    +api_instance = swagger_client.DefaultApi()
     body =  # Api_setBio_body |  (optional)
     
     try: 
    -    # sets the bio of the current user
    -    api_instance.set_bio(body=body)
    +    api_instance.api_set_bio_post(body=body)
     except ApiException as e:
    -    print("Exception when calling EveryoneApi->setBio: %s\n" % e)
    + print("Exception when calling DefaultApi->apiSetBioPost: %s\n" % e)
    @@ -4372,14 +6596,15 @@ except ApiException as e: $(document).ready(function() { var schemaWrapper = { "content" : { - "application/json" : { + "*/*" : { "schema" : { "$ref" : "#/components/schemas/api_setBio_body" } } - } + }, + "required" : false }; - var schema = schemaWrapper.content["application/json"].schema; + var schema = schemaWrapper.content["*/*"].schema; if (schema.$ref != null) { schema = defsParser.$refs.get(schema.$ref); } else { @@ -4391,12 +6616,12 @@ except ApiException as e: } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_setBio_body'); + var result = $('#d2e199_apiSetBioPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -4404,8 +6629,7 @@ except ApiException as e:

    Responses

    -

    Status: 200 - successfully set bio -

    +

    Status: 200 - OK

    @@ -4413,7 +6637,4243 @@ except ApiException as e:
    -

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

    +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

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

    apiSetavatarPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/setavatar
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/setavatar"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiSetavatarPost();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSetavatarPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiSetavatarPost();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSetavatarPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiSetavatarPostWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiSetavatarPost(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiSetavatarPostExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiSetavatarPost();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiSetavatarPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiSetavatarPost();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiSetavatarPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiSetavatarPost();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiSetavatarPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_setavatar_post()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiSetavatarPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 500 - Internal Server Error

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

    apiSettingsGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/settings
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
    +"https://ipost.rocks//api/settings"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiSettingsGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSettingsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.apiSettingsGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSettingsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiSettingsGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiSettingsGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiSettingsGetExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.apiSettingsGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiSettingsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->apiSettingsGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiSettingsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->apiSettingsGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiSettingsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.api_settings_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiSettingsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - OK

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

    apiSettingsPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /api/settings
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
    +-H "Content-Type: */*"\
    +"https://ipost.rocks//api/settings"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_settings_body body = ; // Api_settings_body | 
    +        try {
    +            apiInstance.apiSettingsPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSettingsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        Api_settings_body body = ; // Api_settings_body | 
    +        try {
    +            apiInstance.apiSettingsPost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#apiSettingsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_settings_body *body = ; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance apiSettingsPostWith:body
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'body':  // {{Api_settings_body}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.apiSettingsPost(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class apiSettingsPostExample
    +    {
    +        public void main()
    +        {
    +
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
    +            var apiInstance = new DefaultApi();
    +            var body = new Api_settings_body(); // Api_settings_body |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.apiSettingsPost(body);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.apiSettingsPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$body = ; // Api_settings_body | 
    +
    +try {
    +    $api_instance->apiSettingsPost($body);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->apiSettingsPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::Api_settings_body->new(); # Api_settings_body | 
    +
    +eval { 
    +    $api_instance->apiSettingsPost(body => $body);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->apiSettingsPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # Api_settings_body |  (optional)
    +
    +try: 
    +    api_instance.api_settings_post(body=body)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->apiSettingsPost: %s\n" % e)
    +
    +
    + +

    Parameters

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

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 412 - argument/data error

    + + + +
    +
    + +

    Status: 500 - Internal Server Error

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

    authorizePost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /authorize
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
    +-H "Content-Type: */*"\
    +"https://ipost.rocks//authorize"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
    +        DefaultApi apiInstance = new DefaultApi();
    +        Authorize_body body = ; // Authorize_body | 
    +        try {
    +            apiInstance.authorizePost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#authorizePost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        Authorize_body body = ; // Authorize_body | 
    +        try {
    +            apiInstance.authorizePost(body);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#authorizePost");
    +            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"];
    +Authorize_body *body = ; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance authorizePostWith:body
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
    +
    +var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'body':  // {{Authorize_body}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.authorizePost(opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class authorizePostExample
    +    {
    +        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) 
    +
    +            try
    +            {
    +                apiInstance.authorizePost(body);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.authorizePost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$body = ; // Authorize_body | 
    +
    +try {
    +    $api_instance->authorizePost($body);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->authorizePost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::Authorize_body->new(); # Authorize_body | 
    +
    +eval { 
    +    $api_instance->authorizePost(body => $body);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->authorizePost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # Authorize_body |  (optional)
    +
    +try: 
    +    api_instance.authorize_post(body=body)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->authorizePost: %s\n" % e)
    +
    +
    + +

    Parameters

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

    Responses

    +
    +
    +
    +
    +
    +
    +

    avatarsAvatarGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /avatars/{avatar}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//avatars/{avatar}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String avatar = avatar_example; // String | 
    +        try {
    +            apiInstance.avatarsAvatarGet(avatar);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#avatarsAvatarGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String avatar = avatar_example; // String | 
    +        try {
    +            apiInstance.avatarsAvatarGet(avatar);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#avatarsAvatarGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *avatar = avatar_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance avatarsAvatarGetWith:avatar
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var avatar = avatar_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.avatarsAvatarGet(avatar, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class avatarsAvatarGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var avatar = avatar_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.avatarsAvatarGet(avatar);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.avatarsAvatarGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$avatar = avatar_example; // String | 
    +
    +try {
    +    $api_instance->avatarsAvatarGet($avatar);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->avatarsAvatarGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $avatar = avatar_example; # String | 
    +
    +eval { 
    +    $api_instance->avatarsAvatarGet(avatar => $avatar);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->avatarsAvatarGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +avatar = avatar_example # String | 
    +
    +try: 
    +    api_instance.avatars_avatar_get(avatar)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->avatarsAvatarGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    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
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 404 - Not Found

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

    fileGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /{file}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//{file}?id="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.fileGet(file, id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#fileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        String id = id_example; // String | 
    +        try {
    +            apiInstance.fileGet(file, id);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#fileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *file = file_example; // 
    +String *id = id_example; //  (optional)
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance fileGetWith:file
    +    id:id
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var file = file_example; // {{String}} 
    +var opts = { 
    +  'id': id_example // {{String}} 
    +};
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.fileGet(file, opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class fileGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
    +            var id = id_example;  // String |  (optional) 
    +
    +            try
    +            {
    +                apiInstance.fileGet(file, id);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.fileGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
    +$id = id_example; // String | 
    +
    +try {
    +    $api_instance->fileGet($file, $id);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->fileGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $file = file_example; # String | 
    +my $id = id_example; # String | 
    +
    +eval { 
    +    $api_instance->fileGet(file => $file, id => $id);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->fileGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
    +id = id_example # String |  (optional)
    +
    +try: 
    +    api_instance.file_get(file, id=id)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->fileGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + +
    Query parameters
    + + + + + + + + +
    NameDescription
    id + + +
    +
    +
    + + String + + +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 404 - Not Found

    + + + +
    +
    + +

    Status: 500 - Internal Server Error

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

    imagesFileGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /images/{file}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//images/{file}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.imagesFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#imagesFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.imagesFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#imagesFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *file = file_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance imagesFileGetWith:file
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var file = file_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.imagesFileGet(file, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class imagesFileGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.imagesFileGet(file);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.imagesFileGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
    +
    +try {
    +    $api_instance->imagesFileGet($file);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->imagesFileGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $file = file_example; # String | 
    +
    +eval { 
    +    $api_instance->imagesFileGet(file => $file);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->imagesFileGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
    +
    +try: 
    +    api_instance.images_file_get(file)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->imagesFileGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 404 - Not Found

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

    jsFileGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /js/{file}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//js/{file}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.jsFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#jsFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.jsFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#jsFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *file = file_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance jsFileGetWith:file
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var file = file_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.jsFileGet(file, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class jsFileGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.jsFileGet(file);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.jsFileGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
    +
    +try {
    +    $api_instance->jsFileGet($file);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->jsFileGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $file = file_example; # String | 
    +
    +eval { 
    +    $api_instance->jsFileGet(file => $file);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->jsFileGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
    +
    +try: 
    +    api_instance.js_file_get(file)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->jsFileGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 404 - Not Found

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

    loginPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /login
    +

    +

    Usage and SDK Samples

    +

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

    Parameters

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

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 412 - argument/data error

    + + + +
    +
    + +

    Status: 413 - argument/data error

    + + + +
    +
    + +

    Status: 414 - argument/data error

    + + + +
    +
    + +

    Status: 415 - argument/data error

    + + + +
    +
    + +

    Status: 416 - argument/data error

    + + + +
    +
    + +

    Status: 417 - argument/data error

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

    logoutGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /logout
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//logout"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.logoutGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#logoutGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.logoutGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#logoutGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance logoutGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.logoutGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class logoutGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.logoutGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.logoutGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->logoutGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->logoutGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->logoutGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->logoutGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.logout_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->logoutGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +
    +
    +
    +
    +
    +
    +

    redeemauthcodePost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /redeemauthcode
    +

    +

    Usage and SDK Samples

    +

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

    Parameters

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

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 400 - Bad Request

    + + + +
    +
    + +

    Status: 420 - invalid authetication object

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

    registerPost

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /register
    +

    +

    Usage and SDK Samples

    +

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

    Parameters

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

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 410 - argument/data error

    + + + +
    +
    + +

    Status: 411 - argument/data error

    + + + +
    +
    + +

    Status: 412 - argument/data error

    + + + +
    +
    + +

    Status: 413 - argument/data error

    + + + +
    +
    + +

    Status: 414 - argument/data error

    + + + +
    +
    + +

    Status: 415 - argument/data error

    + + + +
    +
    + +

    Status: 416 - argument/data error

    + + + +
    +
    + +

    Status: 417 - argument/data error

    + + + +
    +
    + +

    Status: 418 - argument/data error

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

    rootGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.rootGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#rootGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            apiInstance.rootGet();
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#rootGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance rootGetWithCompletionHandler: 
    +              ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.rootGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class rootGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +
    +            try
    +            {
    +                apiInstance.rootGet();
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.rootGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +
    +try {
    +    $api_instance->rootGet();
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->rootGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +
    +eval { 
    +    $api_instance->rootGet();
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->rootGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +
    +try: 
    +    api_instance.root_get()
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->rootGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +
    +
    +
    +
    +
    +
    +

    userUploadsFileGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /user_uploads/{file}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//user_uploads/{file}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.userUploadsFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#userUploadsFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
    +        try {
    +            apiInstance.userUploadsFileGet(file);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#userUploadsFileGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *file = file_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance userUploadsFileGetWith:file
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var file = file_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.userUploadsFileGet(file, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class userUploadsFileGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.userUploadsFileGet(file);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.userUploadsFileGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
    +
    +try {
    +    $api_instance->userUploadsFileGet($file);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->userUploadsFileGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $file = file_example; # String | 
    +
    +eval { 
    +    $api_instance->userUploadsFileGet(file => $file);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->userUploadsFileGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
    +
    +try: 
    +    api_instance.user_uploads_file_get(file)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->userUploadsFileGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    + + + +
    +
    + +

    Status: 404 - Not Found

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

    usersUserGet

    +

    +
    +
    +
    +

    +

    +

    +
    +
    /users/{user}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET\
    +"https://ipost.rocks//users/{user}"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        String user = user_example; // String | 
    +        try {
    +            apiInstance.usersUserGet(user);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#usersUserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import io.swagger.client.api.DefaultApi;
    +
    +public class DefaultApiExample {
    +
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        String user = user_example; // String | 
    +        try {
    +            apiInstance.usersUserGet(user);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#usersUserGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    String *user = user_example; // 
    +
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
    +
    +[apiInstance usersUserGetWith:user
    +              completionHandler: ^(NSError* error) {
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var IPostApi = require('i_post_api');
    +
    +var api = new IPostApi.DefaultApi()
    +var user = user_example; // {{String}} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully.');
    +  }
    +};
    +api.usersUserGet(user, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
    +
    +namespace Example
    +{
    +    public class usersUserGetExample
    +    {
    +        public void main()
    +        {
    +
    +            var apiInstance = new DefaultApi();
    +            var user = user_example;  // String | 
    +
    +            try
    +            {
    +                apiInstance.usersUserGet(user);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.usersUserGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\ApiDefaultApi();
    +$user = user_example; // String | 
    +
    +try {
    +    $api_instance->usersUserGet($user);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->usersUserGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
    +
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $user = user_example; # String | 
    +
    +eval { 
    +    $api_instance->usersUserGet(user => $user);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->usersUserGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +user = user_example # String | 
    +
    +try: 
    +    api_instance.users_user_get(user)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->usersUserGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    NameDescription
    user* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + + +

    Responses

    +

    Status: 200 - OK

    @@ -4430,7 +10890,7 @@ except ApiException as e: