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/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..31c1df2 100644 --- a/server.js +++ b/server.js @@ -358,6 +358,9 @@ router.get("/api/getChannels", function (_req, res) { throw err; res.json(result); }); + /* #swagger.security = [{ + "appTokenAuthHeader": [] + }] */ }); /* diff --git a/swagger.cjs b/swagger.cjs index c5ce824..138b3ce 100644 --- a/swagger.cjs +++ b/swagger.cjs @@ -8,9 +8,18 @@ const doc = { }, 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-output.json'; +const outputFile = './swagger-api.json'; +const tempFile = './swagger-output.json'; const endpointsFiles = ['./server.js']; function pushdirectory(currentpath) { @@ -27,10 +36,43 @@ function pushdirectory(currentpath) { pushdirectory("./routes/"); -console.log(endpointsFiles) +swaggerAutogen(tempFile, endpointsFiles, doc); -/* NOTE: if you use the express Router, you must pass in the - 'endpointsFiles' only the root file where the route starts, - such as index.js, app.js, routes.js, ... */ +/* + 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", + +} -swaggerAutogen(outputFile, endpointsFiles, doc); \ No newline at end of file +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 90% rename from views/api/documentation/index.html rename to views/api_documentation.html index a846033..e00686f 100644 --- a/views/api/documentation/index.html +++ b/views/api_documentation.html @@ -880,8 +880,8 @@
  • apiGetChannelsGet
  • -
  • - apiGetFileIconGet +
  • + apiGetFileIconIconGet
  • apiGetPersonalPostsGet @@ -892,9 +892,6 @@
  • apiGetPostsGet
  • -
  • - apiGetPostsGet_1 -
  • apiGetPostsLowerThanGet
  • @@ -931,20 +928,20 @@
  • authorizePost
  • -
  • - avatarsGet +
  • + avatarsAvatarGet
  • -
  • - cssGet +
  • + cssFileGet
  • -
  • - get +
  • + fileGet
  • -
  • - imagesGet +
  • + imagesFileGet
  • -
  • - jsGet +
  • + jsFileGet
  • loginPost @@ -961,11 +958,11 @@
  • rootGet
  • -
  • - userUploadsGet +
  • + userUploadsFileGet
  • -
  • - usersGet +
  • + usersUserGet
  • @@ -1021,6 +1018,7 @@
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/changePW"
    @@ -1036,7 +1034,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Api_changePW_body body = ; // Api_changePW_body | try { @@ -1071,7 +1076,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    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)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -1086,6 +1096,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -1119,6 +1136,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Api_changePW_body(); // Api_changePW_body |  (optional) 
     
    @@ -1140,6 +1162,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_changePW_body | 
     
    @@ -1156,6 +1183,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_changePW_body->new(); # Api_changePW_body | 
     
    @@ -1174,6 +1206,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Api_changePW_body |  (optional)
    @@ -1244,7 +1281,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -1288,6 +1325,7 @@ except ApiException as e:
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/changeUsername"
    @@ -1303,7 +1341,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Api_changeUsername_body body = ; // Api_changeUsername_body | try { @@ -1338,7 +1383,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Api_changeUsername_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)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -1353,6 +1403,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -1386,6 +1443,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Api_changeUsername_body(); // Api_changeUsername_body |  (optional) 
     
    @@ -1407,6 +1469,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_changeUsername_body | 
     
    @@ -1423,6 +1490,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_changeUsername_body->new(); # Api_changeUsername_body | 
     
    @@ -1441,6 +1513,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Api_changeUsername_body |  (optional)
    @@ -1511,7 +1588,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -1519,7 +1596,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -1527,7 +1604,7 @@ except ApiException as e:
    -

    Status: 412 - Precondition Failed

    +

    Status: 412 - argument/data error

    @@ -1535,7 +1612,7 @@ except ApiException as e:
    -

    Status: 413 - Payload Too Large

    +

    Status: 413 - argument/data error

    @@ -1579,6 +1656,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/dms/conversations"
    @@ -1593,7 +1671,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiDmsConversationsGet(); @@ -1626,7 +1711,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiDmsConversationsGetWithCompletionHandler: 
    @@ -1640,6 +1730,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -1670,6 +1767,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -1690,6 +1792,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -1705,6 +1812,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -1722,6 +1834,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -1784,6 +1901,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/dms/encrypt.js"
    @@ -1798,7 +1916,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiDmsEncryptJsGet(); @@ -1831,7 +1956,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiDmsEncryptJsGetWithCompletionHandler: 
    @@ -1845,6 +1975,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -1875,6 +2012,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -1895,6 +2037,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -1910,6 +2057,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -1927,6 +2079,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -1989,6 +2146,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/dms/getDM?id="
    @@ -2003,7 +2161,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String id = id_example; // String | try { @@ -2038,7 +2203,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *id = id_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *id = id_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -2053,6 +2223,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -2086,6 +2263,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var id = id_example;  // String |  (optional) 
     
    @@ -2107,6 +2289,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $id = id_example; // String | 
     
    @@ -2123,6 +2310,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $id = id_example; # String | 
     
    @@ -2141,6 +2333,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     id = id_example # String |  (optional)
    @@ -2227,6 +2424,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/dms/pid"
    @@ -2241,7 +2439,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiDmsPidGet(); @@ -2274,7 +2479,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiDmsPidGetWithCompletionHandler: 
    @@ -2288,6 +2498,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -2318,6 +2535,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -2338,6 +2560,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -2353,6 +2580,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -2370,6 +2602,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -2432,6 +2669,7 @@ except ApiException as e:
                             
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/dms/post"
    @@ -2447,7 +2685,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Dms_post_body body = ; // Dms_post_body | try { @@ -2482,7 +2727,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Dms_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"];
    +Dms_post_body *body = ; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -2497,6 +2747,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -2530,6 +2787,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Dms_post_body(); // Dms_post_body |  (optional) 
     
    @@ -2551,6 +2813,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Dms_post_body | 
     
    @@ -2567,6 +2834,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Dms_post_body->new(); # Dms_post_body | 
     
    @@ -2585,6 +2857,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Dms_post_body |  (optional)
    @@ -2655,7 +2932,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -2663,7 +2940,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -2671,7 +2948,7 @@ except ApiException as e:
    -

    Status: 412 - Precondition Failed

    +

    Status: 412 - argument/data error

    @@ -2679,7 +2956,7 @@ except ApiException as e:
    -

    Status: 413 - Payload Too Large

    +

    Status: 413 - argument/data error

    @@ -2687,7 +2964,7 @@ except ApiException as e:
    -

    Status: 414 - URI Too Long

    +

    Status: 414 - argument/data error

    @@ -2695,7 +2972,7 @@ except ApiException as e:
    -

    Status: 415 - Unsupported Media Type

    +

    Status: 415 - argument/data error

    @@ -2703,7 +2980,7 @@ except ApiException as e:
    -

    Status: 416 - Range Not Satisfiable

    +

    Status: 416 - argument/data error

    @@ -2711,7 +2988,7 @@ except ApiException as e:
    -

    Status: 417 - Expectation Failed

    +

    Status: 417 - argument/data error

    @@ -2719,7 +2996,7 @@ except ApiException as e:
    -

    Status: 418 - I'm a teapot

    +

    Status: 418 - argument/data error

    @@ -2771,6 +3048,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getChannels"
    @@ -2785,7 +3063,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String host = host_example; // String | try { @@ -2820,7 +3105,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *host = host_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *host = host_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -2835,6 +3125,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -2868,6 +3165,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var host = host_example;  // String |  (optional) 
     
    @@ -2889,6 +3191,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $host = host_example; // String | 
     
    @@ -2905,6 +3212,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $host = host_example; # String | 
     
    @@ -2923,6 +3235,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     host = host_example # String |  (optional)
    @@ -2984,10 +3301,10 @@ except ApiException as e:
                             
                           

    -
    -
    +
    +
    -

    apiGetFileIconGet

    +

    apiGetFileIconIconGet

    @@ -2996,30 +3313,31 @@ except ApiException as e:


    -
    /api/getFileIcon/*
    +
    /api/getFileIcon/{icon}

    Usage and SDK Samples

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

    Parameters

    +
    Path parameters
    + + + + + + + + +
    NameDescription
    icon* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    @@ -3186,7 +3578,7 @@ except ApiException as e:
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -3230,6 +3622,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getPersonalPosts?otherperson="
    @@ -3244,7 +3637,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String otherperson = otherperson_example; // String | try { @@ -3279,7 +3679,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *otherperson = otherperson_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *otherperson = otherperson_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -3294,6 +3699,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -3327,6 +3739,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var otherperson = otherperson_example;  // String |  (optional) 
     
    @@ -3348,6 +3765,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $otherperson = otherperson_example; // String | 
     
    @@ -3364,6 +3786,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $otherperson = otherperson_example; # String | 
     
    @@ -3382,6 +3809,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     otherperson = otherperson_example # String |  (optional)
    @@ -3432,7 +3864,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -3476,6 +3908,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getPost?id="
    @@ -3490,7 +3923,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String id = id_example; // String | try { @@ -3525,7 +3965,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *id = id_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *id = id_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -3540,6 +3985,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -3573,6 +4025,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var id = id_example;  // String |  (optional) 
     
    @@ -3594,6 +4051,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $id = id_example; // String | 
     
    @@ -3610,6 +4072,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $id = id_example; # String | 
     
    @@ -3628,6 +4095,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     id = id_example # String |  (optional)
    @@ -3693,7 +4165,7 @@ except ApiException as e:
                             


    -
    /api/getPosts/*
    +
    /api/getPosts

    Usage and SDK Samples

    @@ -3714,7 +4186,8 @@ except ApiException as e:
    curl -X GET\
    -"https://ipost.rocks//api/getPosts/*"
    +-H "ipost-auth-token: [[apiKey]]"\ +"https://ipost.rocks//api/getPosts?channel="
    import io.swagger.client.*;
    @@ -3728,10 +4201,18 @@ import java.util.*;
     public class DefaultApiExample {
     
         public static void main(String[] args) {
    -        
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: appTokenAuthHeader
    +        ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader");
    +        appTokenAuthHeader.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //appTokenAuthHeader.setApiKeyPrefix("Token");
    +
             DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
             try {
    -            apiInstance.apiGetPostsGet();
    +            apiInstance.apiGetPostsGet(channel);
             } catch (ApiException e) {
                 System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
                 e.printStackTrace();
    @@ -3747,8 +4228,9 @@ public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
    +        String channel = channel_example; // String | 
             try {
    -            apiInstance.apiGetPostsGet();
    +            apiInstance.apiGetPostsGet(channel);
             } catch (ApiException e) {
                 System.err.println("Exception when calling DefaultApi#apiGetPostsGet");
                 e.printStackTrace();
    @@ -3761,11 +4243,17 @@ public class DefaultApiExample {
       
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *channel = channel_example; //  (optional)
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance apiGetPostsGetWithCompletionHandler: 
    -              ^(NSError* error) {
    +[apiInstance apiGetPostsGetWith:channel
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -3775,8 +4263,18 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
    +var opts = { 
    +  'channel': channel_example // {{String}} 
    +};
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -3784,7 +4282,7 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.apiGetPostsGet(callback);
    +api.apiGetPostsGet(opts, callback);
     
    @@ -3805,11 +4303,17 @@ namespace Example public void main() { + // Configure API key authorization: appTokenAuthHeader + Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer"); + var apiInstance = new DefaultApi(); + var channel = channel_example; // String | (optional) try { - apiInstance.apiGetPostsGet(); + apiInstance.apiGetPostsGet(channel); } catch (Exception e) { @@ -3825,10 +4329,16 @@ namespace Example
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$channel = channel_example; // String | 
     
     try {
    -    $api_instance->apiGetPostsGet();
    +    $api_instance->apiGetPostsGet($channel);
     } catch (Exception $e) {
         echo 'Exception when calling DefaultApi->apiGetPostsGet: ', $e->getMessage(), PHP_EOL;
     }
    @@ -3840,10 +4350,16 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $channel = channel_example; # String | 
     
     eval { 
    -    $api_instance->apiGetPostsGet();
    +    $api_instance->apiGetPostsGet(channel => $channel);
     };
     if ($@) {
         warn "Exception when calling DefaultApi->apiGetPostsGet: $@\n";
    @@ -3857,220 +4373,19 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    -# create an instance of the API class
    -api_instance = swagger_client.DefaultApi()
    -
    -try: 
    -    api_instance.api_get_posts_get()
    -except ApiException as e:
    -    print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - - - - -

    Responses

    - -
    -
    -
    -
    -
    -

    apiGetPostsGet_1

    -

    -
    -
    -
    -

    -

    -

    -
    -
    /api/getPosts
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X GET\
    -"https://ipost.rocks//api/getPosts?channel="
    -
    -
    -
    import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import io.swagger.client.api.DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        String channel = channel_example; // String | 
    -        try {
    -            apiInstance.apiGetPostsGet_0(channel);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#apiGetPostsGet_0");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import io.swagger.client.api.DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        String channel = channel_example; // String | 
    -        try {
    -            apiInstance.apiGetPostsGet_0(channel);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#apiGetPostsGet_0");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    String *channel = channel_example; //  (optional)
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance apiGetPostsGet_1With:channel
    -              completionHandler: ^(NSError* error) {
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var IPostApi = require('i_post_api');
    -
    -var api = new IPostApi.DefaultApi()
    -var opts = { 
    -  'channel': channel_example // {{String}} 
    -};
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully.');
    -  }
    -};
    -api.apiGetPostsGet_0(opts, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using IO.Swagger.Api;
    -using IO.Swagger.Client;
    -using IO.Swagger.Model;
    -
    -namespace Example
    -{
    -    public class apiGetPostsGet_0Example
    -    {
    -        public void main()
    -        {
    -
    -            var apiInstance = new DefaultApi();
    -            var channel = channel_example;  // String |  (optional) 
    -
    -            try
    -            {
    -                apiInstance.apiGetPostsGet_0(channel);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.apiGetPostsGet_0: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\ApiDefaultApi();
    -$channel = channel_example; // String | 
    -
    -try {
    -    $api_instance->apiGetPostsGet_0($channel);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->apiGetPostsGet_0: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::SwaggerClient::Configuration;
    -use WWW::SwaggerClient::DefaultApi;
    -
    -my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    -my $channel = channel_example; # String | 
    -
    -eval { 
    -    $api_instance->apiGetPostsGet_0(channel => $channel);
    -};
    -if ($@) {
    -    warn "Exception when calling DefaultApi->apiGetPostsGet_0: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_client
    -from swagger_client.rest import ApiException
    -from pprint import pprint
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
     
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     channel = channel_example # String |  (optional)
     
     try: 
    -    api_instance.api_get_posts_get_0(channel=channel)
    +    api_instance.api_get_posts_get(channel=channel)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->apiGetPostsGet_0: %s\n" % e)
    + print("Exception when calling DefaultApi->apiGetPostsGet: %s\n" % e)
    @@ -4090,7 +4405,7 @@ except ApiException as e: -
    +
    @@ -4149,6 +4464,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getPostsLowerThan?channel=&id="
    @@ -4163,7 +4479,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String channel = channel_example; // String | String id = id_example; // String | @@ -4200,7 +4523,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *channel = channel_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *channel = channel_example; //  (optional)
     String *id = id_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
    @@ -4217,6 +4545,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -4251,6 +4586,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var channel = channel_example;  // String |  (optional) 
                 var id = id_example;  // String |  (optional) 
    @@ -4273,6 +4613,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $channel = channel_example; // String | 
     $id = id_example; // String | 
    @@ -4290,6 +4635,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $channel = channel_example; # String | 
     my $id = id_example; # String | 
    @@ -4309,6 +4659,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     channel = channel_example # String |  (optional)
    @@ -4412,6 +4767,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getalluserinformation"
    @@ -4426,7 +4782,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiGetalluserinformationGet(); @@ -4459,7 +4822,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiGetalluserinformationGetWithCompletionHandler: 
    @@ -4473,6 +4841,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -4503,6 +4878,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -4523,6 +4903,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -4538,6 +4923,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -4555,6 +4945,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -4581,7 +4976,7 @@ except ApiException as e:
                                 
    -

    Status: 401 - Unauthorized

    +

    Status: 401 - login error (invalid cookie)

    @@ -4589,7 +4984,7 @@ except ApiException as e:
    -

    Status: 402 - Payment Required

    +

    Status: 402 - login error (bad cookie)

    @@ -4597,7 +4992,7 @@ except ApiException as e:
    -

    Status: 403 - Forbidden

    +

    Status: 403 - login error (no cookie)

    @@ -4879,6 +5274,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/getuser"
    @@ -4893,7 +5289,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiGetuserGet(); @@ -4926,7 +5329,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiGetuserGetWithCompletionHandler: 
    @@ -4940,6 +5348,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -4970,6 +5385,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -4990,6 +5410,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -5005,6 +5430,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -5022,6 +5452,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -5084,6 +5519,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/pid"
    @@ -5098,7 +5534,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiPidGet(); @@ -5131,7 +5574,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiPidGetWithCompletionHandler: 
    @@ -5145,6 +5593,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -5175,6 +5630,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -5195,6 +5655,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -5210,6 +5675,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -5227,6 +5697,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -5289,6 +5764,7 @@ except ApiException as e:
                             
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/post"
    @@ -5304,7 +5780,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Api_post_body body = ; // Api_post_body | try { @@ -5339,7 +5822,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Api_post_body *body = ; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_post_body *body = ; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -5354,6 +5842,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -5387,6 +5882,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Api_post_body(); // Api_post_body |  (optional) 
     
    @@ -5408,6 +5908,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_post_body | 
     
    @@ -5424,6 +5929,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_post_body->new(); # Api_post_body | 
     
    @@ -5442,6 +5952,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Api_post_body |  (optional)
    @@ -5556,6 +6071,7 @@ except ApiException as e:
                             
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/search?type=&selector="
    @@ -5570,7 +6086,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); String type = type_example; // String | String selector = selector_example; // String | @@ -5607,7 +6130,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    String *type = type_example; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +String *type = type_example; //  (optional)
     String *selector = selector_example; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
    @@ -5624,6 +6152,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -5658,6 +6193,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var type = type_example;  // String |  (optional) 
                 var selector = selector_example;  // String |  (optional) 
    @@ -5680,6 +6220,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $type = type_example; // String | 
     $selector = selector_example; // String | 
    @@ -5697,6 +6242,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $type = type_example; # String | 
     my $selector = selector_example; # String | 
    @@ -5716,6 +6266,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     type = type_example # String |  (optional)
    @@ -5819,6 +6374,7 @@ except ApiException as e:
                             
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/setBio"
    @@ -5834,7 +6390,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Api_setBio_body body = ; // Api_setBio_body | try { @@ -5869,7 +6432,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Api_setBio_body *body = ; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_setBio_body *body = ; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -5884,6 +6452,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -5917,6 +6492,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Api_setBio_body(); // Api_setBio_body |  (optional) 
     
    @@ -5938,6 +6518,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_setBio_body | 
     
    @@ -5954,6 +6539,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_setBio_body->new(); # Api_setBio_body | 
     
    @@ -5972,6 +6562,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Api_setBio_body |  (optional)
    @@ -6042,7 +6637,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -6050,7 +6645,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -6094,6 +6689,7 @@ except ApiException as e:
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/setavatar"
    @@ -6108,7 +6704,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiSetavatarPost(); @@ -6141,7 +6744,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiSetavatarPostWithCompletionHandler: 
    @@ -6155,6 +6763,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -6185,6 +6800,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -6205,6 +6825,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -6220,6 +6845,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -6237,6 +6867,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -6263,7 +6898,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -6271,7 +6906,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -6323,6 +6958,7 @@ except ApiException as e:
    curl -X GET\
    +-H "ipost-auth-token: [[apiKey]]"\
     "https://ipost.rocks//api/settings"
    @@ -6337,7 +6973,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); try { apiInstance.apiSettingsGet(); @@ -6370,7 +7013,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
     [apiInstance apiSettingsGetWithCompletionHandler: 
    @@ -6384,6 +7032,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var callback = function(error, data, response) {
    @@ -6414,6 +7069,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
     
                 try
    @@ -6434,6 +7094,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     
     try {
    @@ -6449,6 +7114,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
     eval { 
    @@ -6466,6 +7136,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     
    @@ -6528,6 +7203,7 @@ except ApiException as e:
                             
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//api/settings"
    @@ -6543,7 +7219,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Api_settings_body body = ; // Api_settings_body | try { @@ -6578,7 +7261,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Api_settings_body *body = ; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Api_settings_body *body = ; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -6593,6 +7281,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -6626,6 +7321,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Api_settings_body(); // Api_settings_body |  (optional) 
     
    @@ -6647,6 +7347,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Api_settings_body | 
     
    @@ -6663,6 +7368,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Api_settings_body->new(); # Api_settings_body | 
     
    @@ -6681,6 +7391,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Api_settings_body |  (optional)
    @@ -6751,7 +7466,7 @@ except ApiException as e:
                                 
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -6759,7 +7474,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -6767,7 +7482,7 @@ except ApiException as e:
    -

    Status: 412 - Precondition Failed

    +

    Status: 412 - argument/data error

    @@ -6819,6 +7534,7 @@ except ApiException as e:
    curl -X POST\
    +-H "ipost-auth-token: [[apiKey]]"\
     -H "Content-Type: */*"\
     "https://ipost.rocks//authorize"
    @@ -6834,7 +7550,14 @@ import java.util.*; public class DefaultApiExample { public static void main(String[] args) { - + ApiClient defaultClient = Configuration.getDefaultApiClient(); + + // Configure API key authorization: appTokenAuthHeader + ApiKeyAuth appTokenAuthHeader = (ApiKeyAuth) defaultClient.getAuthentication("appTokenAuthHeader"); + appTokenAuthHeader.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //appTokenAuthHeader.setApiKeyPrefix("Token"); + DefaultApi apiInstance = new DefaultApi(); Authorize_body body = ; // Authorize_body | try { @@ -6869,7 +7592,12 @@ public class DefaultApiExample {
    Coming Soon!
    -->
    -
    Authorize_body *body = ; //  (optional)
    +                              
    Configuration *apiConfig = [Configuration sharedConfig];
    +// Configure API key authorization: (authentication scheme: appTokenAuthHeader)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"ipost-auth-token"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"ipost-auth-token"];
    +Authorize_body *body = ; //  (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    @@ -6884,6 +7612,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
                                 
    var IPostApi = require('i_post_api');
    +var defaultClient = IPostApi.ApiClient.instance;
    +
    +// Configure API key authorization: appTokenAuthHeader
    +var appTokenAuthHeader = defaultClient.authentications['appTokenAuthHeader'];
    +appTokenAuthHeader.apiKey = "YOUR API KEY"
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//appTokenAuthHeader.apiKeyPrefix['ipost-auth-token'] = "Token"
     
     var api = new IPostApi.DefaultApi()
     var opts = { 
    @@ -6917,6 +7652,11 @@ namespace Example
             public void main()
             {
     
    +            // Configure API key authorization: appTokenAuthHeader
    +            Configuration.Default.ApiKey.Add("ipost-auth-token", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("ipost-auth-token", "Bearer");
    +
                 var apiInstance = new DefaultApi();
                 var body = new Authorize_body(); // Authorize_body |  (optional) 
     
    @@ -6938,6 +7678,11 @@ namespace Example
                                   
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    +// Configure API key authorization: appTokenAuthHeader
    +Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ipost-auth-token', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ipost-auth-token', 'Bearer');
    +
     $api_instance = new Swagger\Client\ApiDefaultApi();
     $body = ; // Authorize_body | 
     
    @@ -6954,6 +7699,11 @@ try {
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
    +# Configure API key authorization: appTokenAuthHeader
    +$WWW::SwaggerClient::Configuration::api_key->{'ipost-auth-token'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'ipost-auth-token'} = "Bearer";
    +
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     my $body = WWW::SwaggerClient::Object::Authorize_body->new(); # Authorize_body | 
     
    @@ -6972,6 +7722,11 @@ import swagger_client
     from swagger_client.rest import ApiException
     from pprint import pprint
     
    +# Configure API key authorization: appTokenAuthHeader
    +swagger_client.configuration.api_key['ipost-auth-token'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# swagger_client.configuration.api_key_prefix['ipost-auth-token'] = 'Bearer'
    +
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
     body =  # Authorize_body |  (optional)
    @@ -7037,10 +7792,10 @@ except ApiException as e:
                             
                           

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

    Parameters

    - - - - - - -

    Responses

    -

    Status: 200 - OK

    - - - -
    -
    - -

    Status: 404 - Not Found

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

    cssGet

    -

    -
    -
    -
    -

    -

    -

    -
    -
    /css/*
    -

    -

    Usage and SDK Samples

    -

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

    Parameters

    - - - - - - -

    Responses

    -

    Status: 200 - OK

    - - - -
    -
    - -

    Status: 404 - Not Found

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

    get

    -

    -
    -
    -
    -

    -

    -

    -
    -
    /*
    -

    -

    Usage and SDK Samples

    -

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

    Parameters

    + +
    Path parameters
    + + + + + + + + +
    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}} 
     };
    @@ -7572,14 +8402,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.get(opts, callback);
    +api.fileGet(file, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -7588,21 +8418,22 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class getExample
    +    public class fileGetExample
         {
             public void main()
             {
     
                 var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
                 var id = id_example;  // String |  (optional) 
     
                 try
                 {
    -                apiInstance.get(id);
    +                apiInstance.fileGet(file, id);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.get: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.fileGet: " + e.Message );
                 }
             }
         }
    @@ -7610,38 +8441,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
     $id = id_example; // String | 
     
     try {
    -    $api_instance->get($id);
    +    $api_instance->fileGet($file, $id);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->get: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->fileGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use WWW::SwaggerClient::Configuration;
     use WWW::SwaggerClient::DefaultApi;
     
     my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $file = file_example; # String | 
     my $id = id_example; # String | 
     
     eval { 
    -    $api_instance->get(id => $id);
    +    $api_instance->fileGet(file => $file, id => $id);
     };
     if ($@) {
    -    warn "Exception when calling DefaultApi->get: $@\n";
    +    warn "Exception when calling DefaultApi->fileGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
    @@ -7650,17 +8483,44 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
     id = id_example # String |  (optional)
     
     try: 
    -    api_instance.get(id=id)
    +    api_instance.file_get(file, id=id)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->get: %s\n" % e)
    + print("Exception when calling DefaultApi->fileGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    @@ -7675,7 +8535,7 @@ except ApiException as e: -
    +
    @@ -7717,10 +8577,10 @@ except ApiException as e:

    -
    -
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    @@ -7766,42 +8626,45 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
             try {
    -            apiInstance.imagesGet();
    +            apiInstance.imagesFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#imagesGet");
    +            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.imagesGet();
    +            apiInstance.imagesFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#imagesGet");
    +            System.err.println("Exception when calling DefaultApi#imagesFileGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    String *file = file_example; // 
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance imagesGetWithCompletionHandler: 
    -              ^(NSError* error) {
    +[apiInstance imagesFileGetWith:file
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -7809,10 +8672,12 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -
    +
    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);
    @@ -7820,14 +8685,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.imagesGet(callback);
    +api.imagesFileGet(file, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -7836,20 +8701,21 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class imagesGetExample
    +    public class imagesFileGetExample
         {
             public void main()
             {
     
                 var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
     
                 try
                 {
    -                apiInstance.imagesGet();
    +                apiInstance.imagesFileGet(file);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.imagesGet: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.imagesFileGet: " + e.Message );
                 }
             }
         }
    @@ -7857,36 +8723,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
     
     try {
    -    $api_instance->imagesGet();
    +    $api_instance->imagesFileGet($file);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->imagesGet: ', $e->getMessage(), PHP_EOL;
    +    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->imagesGet();
    +    $api_instance->imagesFileGet(file => $file);
     };
     if ($@) {
    -    warn "Exception when calling DefaultApi->imagesGet: $@\n";
    +    warn "Exception when calling DefaultApi->imagesFileGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
    @@ -7895,16 +8763,43 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
     
     try: 
    -    api_instance.images_get()
    +    api_instance.images_file_get(file)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->imagesGet: %s\n" % e)
    + print("Exception when calling DefaultApi->imagesFileGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    @@ -7930,10 +8825,10 @@ except ApiException as e:

    -
    -
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    @@ -7979,42 +8874,45 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
             try {
    -            apiInstance.jsGet();
    +            apiInstance.jsFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#jsGet");
    +            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.jsGet();
    +            apiInstance.jsFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#jsGet");
    +            System.err.println("Exception when calling DefaultApi#jsFileGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    String *file = file_example; // 
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance jsGetWithCompletionHandler: 
    -              ^(NSError* error) {
    +[apiInstance jsFileGetWith:file
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -8022,10 +8920,12 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -
    +
    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);
    @@ -8033,14 +8933,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.jsGet(callback);
    +api.jsFileGet(file, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -8049,20 +8949,21 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class jsGetExample
    +    public class jsFileGetExample
         {
             public void main()
             {
     
                 var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
     
                 try
                 {
    -                apiInstance.jsGet();
    +                apiInstance.jsFileGet(file);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.jsGet: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.jsFileGet: " + e.Message );
                 }
             }
         }
    @@ -8070,36 +8971,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
     
     try {
    -    $api_instance->jsGet();
    +    $api_instance->jsFileGet($file);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->jsGet: ', $e->getMessage(), PHP_EOL;
    +    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->jsGet();
    +    $api_instance->jsFileGet(file => $file);
     };
     if ($@) {
    -    warn "Exception when calling DefaultApi->jsGet: $@\n";
    +    warn "Exception when calling DefaultApi->jsFileGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
    @@ -8108,16 +9011,43 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
    +file = file_example # String | 
     
     try: 
    -    api_instance.js_get()
    +    api_instance.js_file_get(file)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->jsGet: %s\n" % e)
    + print("Exception when calling DefaultApi->jsFileGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    @@ -8399,7 +9329,7 @@ except ApiException as e:
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -8407,7 +9337,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -8415,7 +9345,7 @@ except ApiException as e:
    -

    Status: 412 - Precondition Failed

    +

    Status: 412 - argument/data error

    @@ -8423,7 +9353,7 @@ except ApiException as e:
    -

    Status: 413 - Payload Too Large

    +

    Status: 413 - argument/data error

    @@ -8431,7 +9361,7 @@ except ApiException as e:
    -

    Status: 414 - URI Too Long

    +

    Status: 414 - argument/data error

    @@ -8439,7 +9369,7 @@ except ApiException as e:
    -

    Status: 415 - Unsupported Media Type

    +

    Status: 415 - argument/data error

    @@ -8447,7 +9377,7 @@ except ApiException as e:
    -

    Status: 416 - Range Not Satisfiable

    +

    Status: 416 - argument/data error

    @@ -8455,7 +9385,7 @@ except ApiException as e:
    -

    Status: 417 - Expectation Failed

    +

    Status: 417 - argument/data error

    @@ -8927,7 +9857,7 @@ except ApiException as e:
    -

    Status: 420 -

    +

    Status: 420 - invalid authetication object

    @@ -9194,7 +10124,7 @@ except ApiException as e:
    -

    Status: 410 - Gone

    +

    Status: 410 - argument/data error

    @@ -9202,7 +10132,7 @@ except ApiException as e:
    -

    Status: 411 - Length Required

    +

    Status: 411 - argument/data error

    @@ -9210,7 +10140,7 @@ except ApiException as e:
    -

    Status: 412 - Precondition Failed

    +

    Status: 412 - argument/data error

    @@ -9218,7 +10148,7 @@ except ApiException as e:
    -

    Status: 413 - Payload Too Large

    +

    Status: 413 - argument/data error

    @@ -9226,7 +10156,7 @@ except ApiException as e:
    -

    Status: 414 - URI Too Long

    +

    Status: 414 - argument/data error

    @@ -9234,7 +10164,7 @@ except ApiException as e:
    -

    Status: 415 - Unsupported Media Type

    +

    Status: 415 - argument/data error

    @@ -9242,7 +10172,7 @@ except ApiException as e:
    -

    Status: 416 - Range Not Satisfiable

    +

    Status: 416 - argument/data error

    @@ -9250,7 +10180,7 @@ except ApiException as e:
    -

    Status: 417 - Expectation Failed

    +

    Status: 417 - argument/data error

    @@ -9258,7 +10188,7 @@ except ApiException as e:
    -

    Status: 418 - I'm a teapot

    +

    Status: 418 - argument/data error

    @@ -9466,10 +10396,10 @@ except ApiException as e:

    -
    -
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    @@ -9515,42 +10445,45 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    +        String file = file_example; // String | 
             try {
    -            apiInstance.userUploadsGet();
    +            apiInstance.userUploadsFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#userUploadsGet");
    +            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.userUploadsGet();
    +            apiInstance.userUploadsFileGet(file);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#userUploadsGet");
    +            System.err.println("Exception when calling DefaultApi#userUploadsFileGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    String *file = file_example; // 
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance userUploadsGetWithCompletionHandler: 
    -              ^(NSError* error) {
    +[apiInstance userUploadsFileGetWith:file
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -9558,10 +10491,12 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -
    +
    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);
    @@ -9569,14 +10504,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.userUploadsGet(callback);
    +api.userUploadsFileGet(file, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -9585,20 +10520,21 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class userUploadsGetExample
    +    public class userUploadsFileGetExample
         {
             public void main()
             {
     
                 var apiInstance = new DefaultApi();
    +            var file = file_example;  // String | 
     
                 try
                 {
    -                apiInstance.userUploadsGet();
    +                apiInstance.userUploadsFileGet(file);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.userUploadsGet: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.userUploadsFileGet: " + e.Message );
                 }
             }
         }
    @@ -9606,36 +10542,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$file = file_example; // String | 
     
     try {
    -    $api_instance->userUploadsGet();
    +    $api_instance->userUploadsFileGet($file);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->userUploadsGet: ', $e->getMessage(), PHP_EOL;
    +    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->userUploadsGet();
    +    $api_instance->userUploadsFileGet(file => $file);
     };
     if ($@) {
    -    warn "Exception when calling DefaultApi->userUploadsGet: $@\n";
    +    warn "Exception when calling DefaultApi->userUploadsFileGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
    @@ -9644,16 +10582,43 @@ 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_get()
    +    api_instance.user_uploads_file_get(file)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->userUploadsGet: %s\n" % e)
    + print("Exception when calling DefaultApi->userUploadsFileGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + +
    NameDescription
    file* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    @@ -9679,10 +10644,10 @@ except ApiException as e:

    -
    -
    -
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    @@ -9728,42 +10693,45 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    +        String user = user_example; // String | 
             try {
    -            apiInstance.usersGet();
    +            apiInstance.usersUserGet(user);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#usersGet");
    +            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.usersGet();
    +            apiInstance.usersUserGet(user);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#usersGet");
    +            System.err.println("Exception when calling DefaultApi#usersUserGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    String *user = user_example; // 
    +
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance usersGetWithCompletionHandler: 
    -              ^(NSError* error) {
    +[apiInstance usersUserGetWith:user
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -9771,10 +10739,12 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -
    +
    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);
    @@ -9782,14 +10752,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully.');
       }
     };
    -api.usersGet(callback);
    +api.usersUserGet(user, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using IO.Swagger.Api;
    @@ -9798,20 +10768,21 @@ using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class usersGetExample
    +    public class usersUserGetExample
         {
             public void main()
             {
     
                 var apiInstance = new DefaultApi();
    +            var user = user_example;  // String | 
     
                 try
                 {
    -                apiInstance.usersGet();
    +                apiInstance.usersUserGet(user);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.usersGet: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.usersUserGet: " + e.Message );
                 }
             }
         }
    @@ -9819,36 +10790,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\ApiDefaultApi();
    +$user = user_example; // String | 
     
     try {
    -    $api_instance->usersGet();
    +    $api_instance->usersUserGet($user);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->usersGet: ', $e->getMessage(), PHP_EOL;
    +    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->usersGet();
    +    $api_instance->usersUserGet(user => $user);
     };
     if ($@) {
    -    warn "Exception when calling DefaultApi->usersGet: $@\n";
    +    warn "Exception when calling DefaultApi->usersUserGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_client
    @@ -9857,16 +10830,43 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_client.DefaultApi()
    +user = user_example # String | 
     
     try: 
    -    api_instance.users_get()
    +    api_instance.users_user_get(user)
     except ApiException as e:
    -    print("Exception when calling DefaultApi->usersGet: %s\n" % e)
    + print("Exception when calling DefaultApi->usersUserGet: %s\n" % e)

    Parameters

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