accountsUserIdOptions
/accounts/{userId}
Usage and SDK Samples
curl -X OPTIONS "https://airmonitor/api/0.1.0/accounts/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
Integer userId = 56; // Integer |
try {
apiInstance.accountsUserIdOptions(userId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountsUserIdOptions");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
Integer userId = 56; // Integer |
try {
apiInstance.accountsUserIdOptions(userId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountsUserIdOptions");
e.printStackTrace();
}
}
}
Integer *userId = 56; //
AccountApi *apiInstance = [[AccountApi alloc] init];
[apiInstance accountsUserIdOptionsWith:userId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AirmonitorApi = require('airmonitor_api');
var api = new AirmonitorApi.AccountApi()
var userId = 56; // {{Integer}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.accountsUserIdOptions(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class accountsUserIdOptionsExample
{
public void main()
{
var apiInstance = new AccountApi();
var userId = 56; // Integer |
try
{
apiInstance.accountsUserIdOptions(userId);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.accountsUserIdOptions: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccountApi();
$userId = 56; // Integer |
try {
$api_instance->accountsUserIdOptions($userId);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->accountsUserIdOptions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $userId = 56; # Integer |
eval {
$api_instance->accountsUserIdOptions(userId => $userId);
};
if ($@) {
warn "Exception when calling AccountApi->accountsUserIdOptions: $@\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.AccountApi()
userId = 56 # Integer |
try:
api_instance.accounts_user_id_options(userId)
except ApiException as e:
print("Exception when calling AccountApi->accountsUserIdOptions: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| userId* |
Integer
Required
|
Responses
Status: 200 - OK
| Name | Type | Format | Description |
|---|---|---|---|
| Allow | String |