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