apiAuthAuthCertPost
/api/Auth/AuthCert
Usage and SDK Samples
curl -X POST "https://ivcertqa6.qatest.signa.run/ivcert/api/Auth/AuthCert"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthApi;
import java.io.File;
import java.util.*;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
String grantType = grantType_example; // String | Valor 'refresh_token' para refrescar el que esté a punto de caducar
String callbackId = callbackId_example; // String | CallbackId de la elección del certificado
try {
inline_response_200 result = apiInstance.apiAuthAuthCertPost(grantType, callbackId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#apiAuthAuthCertPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthApi;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
String grantType = grantType_example; // String | Valor 'refresh_token' para refrescar el que esté a punto de caducar
String callbackId = callbackId_example; // String | CallbackId de la elección del certificado
try {
inline_response_200 result = apiInstance.apiAuthAuthCertPost(grantType, callbackId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#apiAuthAuthCertPost");
e.printStackTrace();
}
}
}
String *grantType = grantType_example; // Valor 'refresh_token' para refrescar el que esté a punto de caducar (default to password)
String *callbackId = callbackId_example; // CallbackId de la elección del certificado
AuthApi *apiInstance = [[AuthApi alloc] init];
[apiInstance apiAuthAuthCertPostWith:grantType
callbackId:callbackId
completionHandler: ^(inline_response_200 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IvcertApiV3 = require('ivcert_api_v3');
var api = new IvcertApiV3.AuthApi()
var grantType = grantType_example; // {String} Valor 'refresh_token' para refrescar el que esté a punto de caducar
var callbackId = callbackId_example; // {String} CallbackId de la elección del certificado
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiAuthAuthCertPost(grantType, callbackId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiAuthAuthCertPostExample
{
public void main()
{
var apiInstance = new AuthApi();
var grantType = grantType_example; // String | Valor 'refresh_token' para refrescar el que esté a punto de caducar (default to password)
var callbackId = callbackId_example; // String | CallbackId de la elección del certificado
try
{
inline_response_200 result = apiInstance.apiAuthAuthCertPost(grantType, callbackId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthApi.apiAuthAuthCertPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AuthApi();
$grantType = grantType_example; // String | Valor 'refresh_token' para refrescar el que esté a punto de caducar
$callbackId = callbackId_example; // String | CallbackId de la elección del certificado
try {
$result = $api_instance->apiAuthAuthCertPost($grantType, $callbackId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthAuthCertPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthApi;
my $api_instance = WWW::SwaggerClient::AuthApi->new();
my $grantType = grantType_example; # String | Valor 'refresh_token' para refrescar el que esté a punto de caducar
my $callbackId = callbackId_example; # String | CallbackId de la elección del certificado
eval {
my $result = $api_instance->apiAuthAuthCertPost(grantType => $grantType, callbackId => $callbackId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthApi->apiAuthAuthCertPost: $@\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.AuthApi()
grantType = grantType_example # String | Valor 'refresh_token' para refrescar el que esté a punto de caducar (default to password)
callbackId = callbackId_example # String | CallbackId de la elección del certificado
try:
api_response = api_instance.api_auth_auth_cert_post(grantType, callbackId)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthApi->apiAuthAuthCertPost: %s\n" % e)
Parameters
Name | Description |
---|---|
grant_type* |
String
Valor 'refresh_token' para refrescar el que esté a punto de caducar
Required
|
callbackId* |
String
CallbackId de la elección del certificado
Required
|