authenticateCustomer
Authenticate customer
Verifies if the customer is authenticated
/v1/requestor/auth
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: application/json"\
"https://api.pip.mobai.cloud/v1/requestor/auth"
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) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth
OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth");
oauth.setAccessToken("YOUR ACCESS TOKEN");
AuthenticationApi apiInstance = new AuthenticationApi();
try {
apiInstance.authenticateCustomer();
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authenticateCustomer");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthenticationApi;
public class AuthenticationApiExample {
public static void main(String[] args) {
AuthenticationApi apiInstance = new AuthenticationApi();
try {
apiInstance.authenticateCustomer();
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authenticateCustomer");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
AuthenticationApi *apiInstance = [[AuthenticationApi alloc] init];
// Authenticate customer
[apiInstance authenticateCustomerWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PipPhysicalIdentityProofingApi = require('pip___physical_identity_proofing___api');
var defaultClient = PipPhysicalIdentityProofingApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth
var oauth = defaultClient.authentications['oauth'];
oauth.accessToken = "YOUR ACCESS TOKEN"
var api = new PipPhysicalIdentityProofingApi.AuthenticationApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.authenticateCustomer(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class authenticateCustomerExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new AuthenticationApi();
try
{
// Authenticate customer
apiInstance.authenticateCustomer();
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthenticationApi.authenticateCustomer: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\ApiAuthenticationApi();
try {
$api_instance->authenticateCustomer();
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->authenticateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationApi;
# Configure OAuth2 access token for authorization: oauth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::AuthenticationApi->new();
eval {
$api_instance->authenticateCustomer();
};
if ($@) {
warn "Exception when calling AuthenticationApi->authenticateCustomer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.AuthenticationApi()
try:
# Authenticate customer
api_instance.authenticate_customer()
except ApiException as e:
print("Exception when calling AuthenticationApi->authenticateCustomer: %s\n" % e)