changePassword
Change password call -
/v2/auth/changePassword
Usage and SDK Samples
curl -X post "https://localhost/GlobalApi/v2/auth/changePassword?uName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .VauthApi;
import java.io.File;
import java.util.*;
public class VauthApiExample {
public static void main(String[] args) {
VauthApi apiInstance = new VauthApi();
String apiAccount = apiAccount_example; // String | Consumer Account guid as supplied
String apiKey = apiKey_example; // String | Consumer Key guid as supplied
String uName = uName_example; // String | parameter UNAME
String password = password_example; // String | parameter PASS
String data1 = data1_example; // String | parameter DATA1
String apiToken = apiToken_example; // String | ApiToken
try {
ApiResponse result = apiInstance.changePassword(apiAccount, apiKey, uName, password, data1, apiToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VauthApi#changePassword");
e.printStackTrace();
}
}
}
import .VauthApi;
public class VauthApiExample {
public static void main(String[] args) {
VauthApi apiInstance = new VauthApi();
String apiAccount = apiAccount_example; // String | Consumer Account guid as supplied
String apiKey = apiKey_example; // String | Consumer Key guid as supplied
String uName = uName_example; // String | parameter UNAME
String password = password_example; // String | parameter PASS
String data1 = data1_example; // String | parameter DATA1
String apiToken = apiToken_example; // String | ApiToken
try {
ApiResponse result = apiInstance.changePassword(apiAccount, apiKey, uName, password, data1, apiToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VauthApi#changePassword");
e.printStackTrace();
}
}
}
String *apiAccount = apiAccount_example; // Consumer Account guid as supplied
String *apiKey = apiKey_example; // Consumer Key guid as supplied
String *uName = uName_example; // parameter UNAME
String *password = password_example; // parameter PASS
String *data1 = data1_example; // parameter DATA1
String *apiToken = apiToken_example; // ApiToken
VauthApi *apiInstance = [[VauthApi alloc] init];
// Change password
[apiInstance changePasswordWith:apiAccount
apiKey:apiKey
uName:uName
password:password
data1:data1
apiToken:apiToken
completionHandler: ^(ApiResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var = require('');
var api = new .VauthApi()
var apiAccount = apiAccount_example; // {String} Consumer Account guid as supplied
var apiKey = apiKey_example; // {String} Consumer Key guid as supplied
var uName = uName_example; // {String} parameter UNAME
var password = password_example; // {String} parameter PASS
var data1 = data1_example; // {String} parameter DATA1
var apiToken = apiToken_example; // {String} ApiToken
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.changePassword(apiAccount, apiKey, uName, password, data1, apiToken, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class changePasswordExample
{
public void main()
{
var apiInstance = new VauthApi();
var apiAccount = apiAccount_example; // String | Consumer Account guid as supplied
var apiKey = apiKey_example; // String | Consumer Key guid as supplied
var uName = uName_example; // String | parameter UNAME
var password = password_example; // String | parameter PASS
var data1 = data1_example; // String | parameter DATA1
var apiToken = apiToken_example; // String | ApiToken
try
{
// Change password
ApiResponse result = apiInstance.changePassword(apiAccount, apiKey, uName, password, data1, apiToken);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling VauthApi.changePassword: " + e.Message );
}
}
}
}
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new io.swagger.client\Api\VauthApi();
$apiAccount = apiAccount_example; // String | Consumer Account guid as supplied
$apiKey = apiKey_example; // String | Consumer Key guid as supplied
$uName = uName_example; // String | parameter UNAME
$password = password_example; // String | parameter PASS
$data1 = data1_example; // String | parameter DATA1
$apiToken = apiToken_example; // String | ApiToken
try {
$result = $api_instance->changePassword($apiAccount, $apiKey, $uName, $password, $data1, $apiToken);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VauthApi->changePassword: ', $e->getMessage(), PHP_EOL;
}
Parameters
Name | Description |
---|---|
apiAccount* | |
apiKey* | |
apiToken* |
Name | Description |
---|---|
uName* |