addcasapp
Create a new CAS Application
/api/v1/providers/cas/app
Usage and SDK Samples
curl -X POST "https://manager-api.example.com/api/v1/providers/cas/app"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CasappApi;
import java.io.File;
import java.util.*;
public class CasappApiExample {
public static void main(String[] args) {
CasappApi apiInstance = new CasappApi();
CasApp body = ; // CasApp | CAS Application to add
try {
apiInstance.addcasapp(body);
} catch (ApiException e) {
System.err.println("Exception when calling CasappApi#addcasapp");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CasappApi;
public class CasappApiExample {
public static void main(String[] args) {
CasappApi apiInstance = new CasappApi();
CasApp body = ; // CasApp | CAS Application to add
try {
apiInstance.addcasapp(body);
} catch (ApiException e) {
System.err.println("Exception when calling CasappApi#addcasapp");
e.printStackTrace();
}
}
}
CasApp *body = ; // CAS Application to add
CasappApi *apiInstance = [[CasappApi alloc] init];
// Create a new CAS Application
[apiInstance addcasappWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LemonLdapngManagerApi = require('lemon_ldapng_manager_api');
var api = new LemonLdapngManagerApi.CasappApi()
var body = ; // {{CasApp}} CAS Application to add
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addcasapp(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addcasappExample
{
public void main()
{
var apiInstance = new CasappApi();
var body = new CasApp(); // CasApp | CAS Application to add
try
{
// Create a new CAS Application
apiInstance.addcasapp(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling CasappApi.addcasapp: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiCasappApi();
$body = ; // CasApp | CAS Application to add
try {
$api_instance->addcasapp($body);
} catch (Exception $e) {
echo 'Exception when calling CasappApi->addcasapp: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CasappApi;
my $api_instance = WWW::SwaggerClient::CasappApi->new();
my $body = WWW::SwaggerClient::Object::CasApp->new(); # CasApp | CAS Application to add
eval {
$api_instance->addcasapp(body => $body);
};
if ($@) {
warn "Exception when calling CasappApi->addcasapp: $@\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.CasappApi()
body = # CasApp | CAS Application to add
try:
# Create a new CAS Application
api_instance.addcasapp(body)
except ApiException as e:
print("Exception when calling CasappApi->addcasapp: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |