curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
"http://localhost/blob/{blobLocator}?allowRedirect=&attachment="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ViewconfigApi;
import java.io.File;
import java.util.*;
public class ViewconfigApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure Bearer access token for authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
ViewconfigApi apiInstance = new ViewconfigApi();
String blobLocator = blobLocator_example; // String |
Boolean allowRedirect = true; // Boolean | If true, the blob may be fetched from external blob storage.
Boolean attachment = true; // Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline'
try {
apiInstance.blobBlobLocatorGet(blobLocator, allowRedirect, attachment);
} catch (ApiException e) {
System.err.println("Exception when calling ViewconfigApi#blobBlobLocatorGet");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.ViewconfigApi;
public class ViewconfigApiExample {
public static void main(String[] args) {
ViewconfigApi apiInstance = new ViewconfigApi();
String blobLocator = blobLocator_example; // String |
Boolean allowRedirect = true; // Boolean | If true, the blob may be fetched from external blob storage.
Boolean attachment = true; // Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline'
try {
apiInstance.blobBlobLocatorGet(blobLocator, allowRedirect, attachment);
} catch (ApiException e) {
System.err.println("Exception when calling ViewconfigApi#blobBlobLocatorGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure Bearer access token for authorization: Bearer
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
ViewconfigApi *apiInstance = [[ViewconfigApi alloc] init];
String *blobLocator = blobLocator_example; // (default to null)
Boolean *allowRedirect = true; // If true, the blob may be fetched from external blob storage. (optional) (default to null)
Boolean *attachment = true; // If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline' (optional) (default to null)
[apiInstance blobBlobLocatorGetWith:blobLocator
allowRedirect:allowRedirect
attachment:attachment
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Viewconfig = require('viewconfig');
var defaultClient = Viewconfig.ApiClient.instance;
// Configure Bearer access token for authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new Viewconfig.ViewconfigApi()
var blobLocator = blobLocator_example; // {String}
var opts = {
'allowRedirect': true, // {Boolean} If true, the blob may be fetched from external blob storage.
'attachment': true // {Boolean} If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline'
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.blobBlobLocatorGet(blobLocator, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class blobBlobLocatorGetExample
{
public void main()
{
// Configure Bearer access token for authorization: Bearer
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new ViewconfigApi();
var blobLocator = blobLocator_example; // String | (default to null)
var allowRedirect = true; // Boolean | If true, the blob may be fetched from external blob storage. (optional) (default to null)
var attachment = true; // Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline' (optional) (default to null)
try {
apiInstance.blobBlobLocatorGet(blobLocator, allowRedirect, attachment);
} catch (Exception e) {
Debug.Print("Exception when calling ViewconfigApi.blobBlobLocatorGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer access token for authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ViewconfigApi();
$blobLocator = blobLocator_example; // String |
$allowRedirect = true; // Boolean | If true, the blob may be fetched from external blob storage.
$attachment = true; // Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline'
try {
$api_instance->blobBlobLocatorGet($blobLocator, $allowRedirect, $attachment);
} catch (Exception $e) {
echo 'Exception when calling ViewconfigApi->blobBlobLocatorGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ViewconfigApi;
# Configure Bearer access token for authorization: Bearer
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ViewconfigApi->new();
my $blobLocator = blobLocator_example; # String |
my $allowRedirect = true; # Boolean | If true, the blob may be fetched from external blob storage.
my $attachment = true; # Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline'
eval {
$api_instance->blobBlobLocatorGet(blobLocator => $blobLocator, allowRedirect => $allowRedirect, attachment => $attachment);
};
if ($@) {
warn "Exception when calling ViewconfigApi->blobBlobLocatorGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure Bearer access token for authorization: Bearer
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.ViewconfigApi()
blobLocator = blobLocator_example # String | (default to null)
allowRedirect = true # Boolean | If true, the blob may be fetched from external blob storage. (optional) (default to null)
attachment = true # Boolean | If true, the response's content-disposition header is set to 'attachment', otherwise it is set to 'inline' (optional) (default to null)
try:
api_instance.blob_blob_locator_get(blobLocator, allowRedirect=allowRedirect, attachment=attachment)
except ApiException as e:
print("Exception when calling ViewconfigApi->blobBlobLocatorGet: %s\n" % e)
extern crate ViewconfigApi;
pub fn main() {
let blobLocator = blobLocator_example; // String
let allowRedirect = true; // Boolean
let attachment = true; // Boolean
let mut context = ViewconfigApi::Context::default();
let result = client.blobBlobLocatorGet(blobLocator, allowRedirect, attachment, &context).wait();
println!("{:?}", result);
}