AS Server - API - AuthenticatorFor2SA

Default

authenticatorFor2SADisable

AuthenticatorFor2SA_Disable


/AuthenticatorFor2SA/disable

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/AuthenticatorFor2SA/disable"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_TwoSASetup_ result = apiInstance.authenticatorFor2SADisable();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SADisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.authenticatorFor2SADisable();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authenticatorFor2SADisable: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_TwoSASetup_ result = apiInstance.authenticatorFor2SADisable();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SADisable");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// AuthenticatorFor2SA_Disable
[apiInstance authenticatorFor2SADisableWithCompletionHandler: 
              ^(ActionResults_TwoSASetup_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiAuthenticatorFor2Sa = require('as_server_api_authenticator_for2_sa');

// Create an instance of the API class
var api = new AsServerApiAuthenticatorFor2Sa.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authenticatorFor2SADisable(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class authenticatorFor2SADisableExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // AuthenticatorFor2SA_Disable
                ActionResults_TwoSASetup_ result = apiInstance.authenticatorFor2SADisable();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.authenticatorFor2SADisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->authenticatorFor2SADisable();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->authenticatorFor2SADisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->authenticatorFor2SADisable();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->authenticatorFor2SADisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # AuthenticatorFor2SA_Disable
    api_response = api_instance.authenticator_for2_sa_disable()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->authenticatorFor2SADisable: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.authenticatorFor2SADisable(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


authenticatorFor2SAGet

AuthenticatorFor2SA_Get


/AuthenticatorFor2SA/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/AuthenticatorFor2SA/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_Authenticator2SASetup_ result = apiInstance.authenticatorFor2SAGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SAGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.authenticatorFor2SAGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authenticatorFor2SAGet: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_Authenticator2SASetup_ result = apiInstance.authenticatorFor2SAGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SAGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// AuthenticatorFor2SA_Get
[apiInstance authenticatorFor2SAGetWithCompletionHandler: 
              ^(ActionResults_Authenticator2SASetup_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiAuthenticatorFor2Sa = require('as_server_api_authenticator_for2_sa');

// Create an instance of the API class
var api = new AsServerApiAuthenticatorFor2Sa.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authenticatorFor2SAGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class authenticatorFor2SAGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // AuthenticatorFor2SA_Get
                ActionResults_Authenticator2SASetup_ result = apiInstance.authenticatorFor2SAGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.authenticatorFor2SAGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->authenticatorFor2SAGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->authenticatorFor2SAGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->authenticatorFor2SAGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->authenticatorFor2SAGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # AuthenticatorFor2SA_Get
    api_response = api_instance.authenticator_for2_sa_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->authenticatorFor2SAGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.authenticatorFor2SAGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


authenticatorFor2SAPost

AuthenticatorFor2SA_Post


/AuthenticatorFor2SA/

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/AuthenticatorFor2SA/?code=code_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | 

        try {
            ActionResults result = apiInstance.authenticatorFor2SAPost(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SAPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String code = new String(); // String | 

try {
    final result = await api_instance.authenticatorFor2SAPost(code);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authenticatorFor2SAPost: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | 

        try {
            ActionResults result = apiInstance.authenticatorFor2SAPost(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#authenticatorFor2SAPost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *code = code_example; //  (default to null)

// AuthenticatorFor2SA_Post
[apiInstance authenticatorFor2SAPostWith:code
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiAuthenticatorFor2Sa = require('as_server_api_authenticator_for2_sa');

// Create an instance of the API class
var api = new AsServerApiAuthenticatorFor2Sa.DefaultApi()
var code = code_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authenticatorFor2SAPost(code, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class authenticatorFor2SAPostExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var code = code_example;  // String |  (default to null)

            try {
                // AuthenticatorFor2SA_Post
                ActionResults result = apiInstance.authenticatorFor2SAPost(code);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.authenticatorFor2SAPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$code = code_example; // String | 

try {
    $result = $api_instance->authenticatorFor2SAPost($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->authenticatorFor2SAPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $code = code_example; # String | 

eval {
    my $result = $api_instance->authenticatorFor2SAPost(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->authenticatorFor2SAPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
code = code_example # String |  (default to null)

try:
    # AuthenticatorFor2SA_Post
    api_response = api_instance.authenticator_for2_sa_post(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->authenticatorFor2SAPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let code = code_example; // String

    let mut context = DefaultApi::Context::default();
    let result = client.authenticatorFor2SAPost(code, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
code*
String
Required

Responses