domainsBatchLoginLinkPost
Bulk create login links
Generate a batch of links that allow a user to log in as a domain administrator to their different domains. Maximum of 1000 links per request.
/domains/batch/login-link
Usage and SDK Samples
curl -X POST -H "X-API-Key: [[apiKey]]" "https://api.mailchannels.net/inbound/v1/domains/batch/login-link"
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) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: APIKeyHeader
ApiKeyAuth APIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader");
APIKeyHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
InlineObject1 body = ; // InlineObject1 |
try {
inline_response_200_1 result = apiInstance.domainsBatchLoginLinkPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#domainsBatchLoginLinkPost");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
InlineObject1 body = ; // InlineObject1 |
try {
inline_response_200_1 result = apiInstance.domainsBatchLoginLinkPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#domainsBatchLoginLinkPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: APIKeyHeader)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
InlineObject1 *body = ; //
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Bulk create login links
[apiInstance domainsBatchLoginLinkPostWith:body
completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var InboundApi = require('inbound_api');
var defaultClient = InboundApi.ApiClient.instance;
// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix['X-API-Key'] = "Token"
var api = new InboundApi.DefaultApi()
var body = ; // {InlineObject1}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.domainsBatchLoginLinkPost(body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class domainsBatchLoginLinkPostExample
{
public void main()
{
// Configure API key authorization: APIKeyHeader
Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");
var apiInstance = new DefaultApi();
var body = new InlineObject1(); // InlineObject1 |
try
{
// Bulk create login links
inline_response_200_1 result = apiInstance.domainsBatchLoginLinkPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.domainsBatchLoginLinkPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKeyHeader
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$body = ; // InlineObject1 |
try {
$result = $api_instance->domainsBatchLoginLinkPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->domainsBatchLoginLinkPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: APIKeyHeader
$WWW::OPenAPIClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $body = WWW::OPenAPIClient::Object::InlineObject1->new(); # InlineObject1 |
eval {
my $result = $api_instance->domainsBatchLoginLinkPost(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->domainsBatchLoginLinkPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
openapi_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = openapi_client.DefaultApi()
body = # InlineObject1 |
try:
# Bulk create login links
api_response = api_instance.domains_batch_login_link_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->domainsBatchLoginLinkPost: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let body = ; // InlineObject1
let mut context = DefaultApi::Context::default();
let result = client.domainsBatchLoginLinkPost(body, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
body * |