curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/api/v2/cloud/auth/complete?ver=&success=&error=&access_token=&refresh_token=&scopes="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CloudApi;
import java.io.File;
import java.util.*;
public class CloudApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: token
ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.setApiKeyPrefix("Token");
CloudApi apiInstance = new CloudApi();
String ver = ver_example; // String | The formatting version (expected to be 1 at the moment)
String success = success_example; // String | Whether the authorization was successful
String error = error_example; // String | The error message (present on failure)
String accessToken = accessToken_example; // String | The access token (present on success)
String refreshToken = refreshToken_example; // String | The refresh token (present on success)
String scopes = scopes_example; // String | The scopes granted (present on success)
try {
apiInstance.completeCloudAuth(ver, success, error, accessToken, refreshToken, scopes);
} catch (ApiException e) {
System.err.println("Exception when calling CloudApi#completeCloudAuth");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CloudApi;
public class CloudApiExample {
public static void main(String[] args) {
CloudApi apiInstance = new CloudApi();
String ver = ver_example; // String | The formatting version (expected to be 1 at the moment)
String success = success_example; // String | Whether the authorization was successful
String error = error_example; // String | The error message (present on failure)
String accessToken = accessToken_example; // String | The access token (present on success)
String refreshToken = refreshToken_example; // String | The refresh token (present on success)
String scopes = scopes_example; // String | The scopes granted (present on success)
try {
apiInstance.completeCloudAuth(ver, success, error, accessToken, refreshToken, scopes);
} catch (ApiException e) {
System.err.println("Exception when calling CloudApi#completeCloudAuth");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *ver = ver_example; // The formatting version (expected to be 1 at the moment)
String *success = success_example; // Whether the authorization was successful
String *error = error_example; // The error message (present on failure) (optional)
String *accessToken = accessToken_example; // The access token (present on success) (optional)
String *refreshToken = refreshToken_example; // The refresh token (present on success) (optional)
String *scopes = scopes_example; // The scopes granted (present on success) (optional)
CloudApi *apiInstance = [[CloudApi alloc] init];
// Complete the Cloud OAuth authorization process, redirects to the Front-End
[apiInstance completeCloudAuthWith:ver
success:success
error:error
accessToken:accessToken
refreshToken:refreshToken
scopes:scopes
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AicaApi = require('aica_api');
var defaultClient = AicaApi.ApiClient.instance;
// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['Authorization'] = "Token"
var api = new AicaApi.CloudApi()
var ver = ver_example; // {String} The formatting version (expected to be 1 at the moment)
var success = success_example; // {String} Whether the authorization was successful
var opts = {
'error': error_example, // {String} The error message (present on failure)
'accessToken': accessToken_example, // {String} The access token (present on success)
'refreshToken': refreshToken_example, // {String} The refresh token (present on success)
'scopes': scopes_example // {String} The scopes granted (present on success)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.completeCloudAuth(ver, success, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class completeCloudAuthExample
{
public void main()
{
// Configure API key authorization: token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CloudApi();
var ver = ver_example; // String | The formatting version (expected to be 1 at the moment)
var success = success_example; // String | Whether the authorization was successful
var error = error_example; // String | The error message (present on failure) (optional)
var accessToken = accessToken_example; // String | The access token (present on success) (optional)
var refreshToken = refreshToken_example; // String | The refresh token (present on success) (optional)
var scopes = scopes_example; // String | The scopes granted (present on success) (optional)
try
{
// Complete the Cloud OAuth authorization process, redirects to the Front-End
apiInstance.completeCloudAuth(ver, success, error, accessToken, refreshToken, scopes);
}
catch (Exception e)
{
Debug.Print("Exception when calling CloudApi.completeCloudAuth: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\Api\CloudApi();
$ver = ver_example; // String | The formatting version (expected to be 1 at the moment)
$success = success_example; // String | Whether the authorization was successful
$error = error_example; // String | The error message (present on failure)
$accessToken = accessToken_example; // String | The access token (present on success)
$refreshToken = refreshToken_example; // String | The refresh token (present on success)
$scopes = scopes_example; // String | The scopes granted (present on success)
try {
$api_instance->completeCloudAuth($ver, $success, $error, $accessToken, $refreshToken, $scopes);
} catch (Exception $e) {
echo 'Exception when calling CloudApi->completeCloudAuth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CloudApi;
# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::CloudApi->new();
my $ver = ver_example; # String | The formatting version (expected to be 1 at the moment)
my $success = success_example; # String | Whether the authorization was successful
my $error = error_example; # String | The error message (present on failure)
my $accessToken = accessToken_example; # String | The access token (present on success)
my $refreshToken = refreshToken_example; # String | The refresh token (present on success)
my $scopes = scopes_example; # String | The scopes granted (present on success)
eval {
$api_instance->completeCloudAuth(ver => $ver, success => $success, error => $error, accessToken => $accessToken, refreshToken => $refreshToken, scopes => $scopes);
};
if ($@) {
warn "Exception when calling CloudApi->completeCloudAuth: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: token
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.CloudApi()
ver = ver_example # String | The formatting version (expected to be 1 at the moment)
success = success_example # String | Whether the authorization was successful
error = error_example # String | The error message (present on failure) (optional)
accessToken = accessToken_example # String | The access token (present on success) (optional)
refreshToken = refreshToken_example # String | The refresh token (present on success) (optional)
scopes = scopes_example # String | The scopes granted (present on success) (optional)
try:
# Complete the Cloud OAuth authorization process, redirects to the Front-End
api_instance.complete_cloud_auth(ver, success, error=error, accessToken=accessToken, refreshToken=refreshToken, scopes=scopes)
except ApiException as e:
print("Exception when calling CloudApi->completeCloudAuth: %s\n" % e)