reportsColorColorGet
Get widgets by color
/reports/color/{color}
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"http://localhost/reports/color/{color}"
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) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String color = Red; // String | Color of the widget
try {
array[_widget_put_request] result = apiInstance.reportsColorColorGet(color);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#reportsColorColorGet");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String color = Red; // String | Color of the widget
try {
array[_widget_put_request] result = apiInstance.reportsColorColorGet(color);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#reportsColorColorGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *color = Red; // Color of the widget (default to null)
[apiInstance reportsColorColorGetWith:color
completionHandler: ^(array[_widget_put_request] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PythonLambdaApiDemo = require('python_lambda_api_demo');
// Create an instance of the API class
var api = new PythonLambdaApiDemo.DefaultApi()
var color = Red; // {String} Color of the widget
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.reportsColorColorGet(color, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class reportsColorColorGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var color = Red; // String | Color of the widget (default to null)
try {
array[_widget_put_request] result = apiInstance.reportsColorColorGet(color);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.reportsColorColorGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$color = Red; // String | Color of the widget
try {
$result = $api_instance->reportsColorColorGet($color);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->reportsColorColorGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $color = Red; # String | Color of the widget
eval {
my $result = $api_instance->reportsColorColorGet(color => $color);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->reportsColorColorGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
color = Red # String | Color of the widget (default to null)
try:
api_response = api_instance.reports_color_color_get(color)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->reportsColorColorGet: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let color = Red; // String
let mut context = DefaultApi::Context::default();
let result = client.reportsColorColorGet(color, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
Name | Description |
---|---|
color* |
String
Color of the widget
Required
|