authOpen
Authenticate to the System
Authenticates to the system with a username & password or other credentials, responds with a cookie and a session identifer
/auth/open
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://YOUR_HOST/YOUR/PATH/auth/open"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationApi;
import java.io.File;
import java.util.*;
public class AuthenticationApiExample {
public static void main(String[] args) {
AuthenticationApi apiInstance = new AuthenticationApi();
String cre = cre_example; // String |
String serviceKey = serviceKey_example; // String |
String company = company_example; // String |
String license = license_example; // String |
String licenseKey = licenseKey_example; // String |
String username = username_example; // String |
String password = password_example; // String |
try {
inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authOpen");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthenticationApi;
public class AuthenticationApiExample {
public static void main(String[] args) {
AuthenticationApi apiInstance = new AuthenticationApi();
String cre = cre_example; // String |
String serviceKey = serviceKey_example; // String |
String company = company_example; // String |
String license = license_example; // String |
String licenseKey = licenseKey_example; // String |
String username = username_example; // String |
String password = password_example; // String |
try {
inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authOpen");
e.printStackTrace();
}
}
}
String *cre = cre_example; //
String *serviceKey = serviceKey_example; //
String *company = company_example; //
String *license = license_example; //
String *licenseKey = licenseKey_example; //
String *username = username_example; //
String *password = password_example; //
AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];
// Authenticate to the System
[apiInstance authOpenWith:cre
serviceKey:serviceKey
company:company
license:license
licenseKey:licenseKey
username:username
password:password
completionHandler: ^(inline_response_200 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenThcApi = require('open_thc_api');
var api = new OpenThcApi.AuthenticationApi()
var cre = cre_example; // {{String}}
var serviceKey = serviceKey_example; // {{String}}
var company = company_example; // {{String}}
var license = license_example; // {{String}}
var licenseKey = licenseKey_example; // {{String}}
var username = username_example; // {{String}}
var password = password_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.authOpen(creserviceKeycompanylicenselicenseKeyusernamepassword, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class authOpenExample
{
public void main()
{
var apiInstance = new AuthenticationApi();
var cre = cre_example; // String |
var serviceKey = serviceKey_example; // String |
var company = company_example; // String |
var license = license_example; // String |
var licenseKey = licenseKey_example; // String |
var username = username_example; // String |
var password = password_example; // String |
try
{
// Authenticate to the System
inline_response_200 result = apiInstance.authOpen(cre, serviceKey, company, license, licenseKey, username, password);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthenticationApi.authOpen: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAuthenticationApi();
$cre = cre_example; // String |
$serviceKey = serviceKey_example; // String |
$company = company_example; // String |
$license = license_example; // String |
$licenseKey = licenseKey_example; // String |
$username = username_example; // String |
$password = password_example; // String |
try {
$result = $api_instance->authOpen($cre, $serviceKey, $company, $license, $licenseKey, $username, $password);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authOpen: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationApi;
my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
my $cre = cre_example; # String |
my $serviceKey = serviceKey_example; # String |
my $company = company_example; # String |
my $license = license_example; # String |
my $licenseKey = licenseKey_example; # String |
my $username = username_example; # String |
my $password = password_example; # String |
eval {
my $result = $api_instance->authOpen(cre => $cre, serviceKey => $serviceKey, company => $company, license => $license, licenseKey => $licenseKey, username => $username, password => $password);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticationApi->authOpen: $@\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.AuthenticationApi()
cre = cre_example # String |
serviceKey = serviceKey_example # String |
company = company_example # String |
license = license_example # String |
licenseKey = licenseKey_example # String |
username = username_example # String |
password = password_example # String |
try:
# Authenticate to the System
api_response = api_instance.auth_open(cre, serviceKey, company, license, licenseKey, username, password)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthenticationApi->authOpen: %s\n" % e)
Parameters
Name | Description |
---|---|
cre* |
String
Required
|
service-key* |
String
Required
|
company* |
String
Required
|
license* |
String
Required
|
license-key* |
String
Required
|
username* |
String
Required
|
password* |
String
Required
|