authorizePost
/authorize
Usage and SDK Samples
curl -X POST "http://localhost:63997/authorize"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthorizeApi;
import java.io.File;
import java.util.*;
public class AuthorizeApiExample {
public static void main(String[] args) {
AuthorizeApi apiInstance = new AuthorizeApi();
Authorize authorize = ; // Authorize |
try {
Object result = apiInstance.authorizePost(authorize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthorizeApi#authorizePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthorizeApi;
public class AuthorizeApiExample {
public static void main(String[] args) {
AuthorizeApi apiInstance = new AuthorizeApi();
Authorize authorize = ; // Authorize |
try {
Object result = apiInstance.authorizePost(authorize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthorizeApi#authorizePost");
e.printStackTrace();
}
}
}
Authorize *authorize = ; //
AuthorizeApi *apiInstance = [[AuthorizeApi alloc] init];
[apiInstance authorizePostWith:authorize
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ArcBestExpediteCustomerApi = require('arc_best_expedite_customer_api');
var api = new ArcBestExpediteCustomerApi.AuthorizeApi()
var authorize = ; // {Authorize}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.authorizePost(authorize, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class authorizePostExample
{
public void main()
{
var apiInstance = new AuthorizeApi();
var authorize = new Authorize(); // Authorize |
try
{
Object result = apiInstance.authorizePost(authorize);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthorizeApi.authorizePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AuthorizeApi();
$authorize = ; // Authorize |
try {
$result = $api_instance->authorizePost($authorize);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthorizeApi->authorizePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthorizeApi;
my $api_instance = WWW::SwaggerClient::AuthorizeApi->new();
my $authorize = WWW::SwaggerClient::Object::Authorize->new(); # Authorize |
eval {
my $result = $api_instance->authorizePost(authorize => $authorize);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthorizeApi->authorizePost: $@\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.AuthorizeApi()
authorize = # Authorize |
try:
api_response = api_instance.authorize_post(authorize)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthorizeApi->authorizePost: %s\n" % e)
Parameters
Name | Description |
---|---|
authorize * |