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