deleteAsset
Delete Asset
Delete an asset
/api/asset/{assetId}
Usage and SDK Samples
curl -X DELETE "https://flipbooks.3dissue.com/api/asset/{assetId}?apiKey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetApi;
import java.io.File;
import java.util.*;
public class AssetApiExample {
public static void main(String[] args) {
AssetApi apiInstance = new AssetApi();
Integer assetId = 56; // Integer | assetId
String apiKey = apiKey_example; // String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
try {
RestResponseVO result = apiInstance.deleteAsset(assetId, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetApi#deleteAsset");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AssetApi;
public class AssetApiExample {
public static void main(String[] args) {
AssetApi apiInstance = new AssetApi();
Integer assetId = 56; // Integer | assetId
String apiKey = apiKey_example; // String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
try {
RestResponseVO result = apiInstance.deleteAsset(assetId, apiKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetApi#deleteAsset");
e.printStackTrace();
}
}
}
Integer *assetId = 56; // assetId
String *apiKey = apiKey_example; // Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
AssetApi *apiInstance = [[AssetApi alloc] init];
// Delete Asset
[apiInstance deleteAssetWith:assetId
apiKey:apiKey
completionHandler: ^(RestResponseVO output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var FlipbooksOnlineClientApi = require('flipbooks_online_client_api');
var api = new FlipbooksOnlineClientApi.AssetApi()
var assetId = 56; // {Integer} assetId
var apiKey = apiKey_example; // {String} Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteAsset(assetId, apiKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteAssetExample
{
public void main()
{
var apiInstance = new AssetApi();
var assetId = 56; // Integer | assetId
var apiKey = apiKey_example; // String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
try
{
// Delete Asset
RestResponseVO result = apiInstance.deleteAsset(assetId, apiKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AssetApi.deleteAsset: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AssetApi();
$assetId = 56; // Integer | assetId
$apiKey = apiKey_example; // String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
try {
$result = $api_instance->deleteAsset($assetId, $apiKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssetApi->deleteAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetApi;
my $api_instance = WWW::SwaggerClient::AssetApi->new();
my $assetId = 56; # Integer | assetId
my $apiKey = apiKey_example; # String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
eval {
my $result = $api_instance->deleteAsset(assetId => $assetId, apiKey => $apiKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AssetApi->deleteAsset: $@\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.AssetApi()
assetId = 56 # Integer | assetId
apiKey = apiKey_example # String | Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
try:
# Delete Asset
api_response = api_instance.delete_asset(assetId, apiKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->deleteAsset: %s\n" % e)
Parameters
Name | Description |
---|---|
assetId* |
Integer
(int32)
assetId
Required
|
Name | Description |
---|---|
apiKey* |
String
Your API Key. Example: 6037cc6f0be82a4de9d01b008605edc6cd6d98a3dc119c
Required
|