apiBridgeClaimCopyrightCreatePost
Create copyright claim
/api/bridge/claim/copyright/create
Usage and SDK Samples
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://dev.cleartracks.com/api/bridge/claim/copyright/create?copyright_media_id=©right_media_module=©right_role=©right_firstname=©right_lastname=©right_street=©right_city=©right_postal_code=©right_country=©right_username=©right_email=©right_telephone=©right_terms=©right_infringed_work=©right_company=©right_rights_holder=©right_category=©right_category_other="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer copyrightMediaId = 56; // Integer |
String copyrightMediaModule = copyrightMediaModule_example; // String |
String copyrightRole = copyrightRole_example; // String |
String copyrightFirstname = copyrightFirstname_example; // String |
String copyrightLastname = copyrightLastname_example; // String |
String copyrightStreet = copyrightStreet_example; // String |
String copyrightCity = copyrightCity_example; // String |
String copyrightPostalCode = copyrightPostalCode_example; // String |
String copyrightCountry = copyrightCountry_example; // String |
String copyrightUsername = copyrightUsername_example; // String |
String copyrightEmail = copyrightEmail_example; // String |
String copyrightTelephone = copyrightTelephone_example; // String |
String copyrightTerms = copyrightTerms_example; // String |
String copyrightInfringedWork = copyrightInfringedWork_example; // String |
String copyrightCompany = copyrightCompany_example; // String |
String copyrightRightsHolder = copyrightRightsHolder_example; // String |
String copyrightCategory = copyrightCategory_example; // String |
String copyrightCategoryOther = copyrightCategoryOther_example; // String |
try {
apiInstance.apiBridgeClaimCopyrightCreatePost(copyrightMediaId, copyrightMediaModule, copyrightRole, copyrightFirstname, copyrightLastname, copyrightStreet, copyrightCity, copyrightPostalCode, copyrightCountry, copyrightUsername, copyrightEmail, copyrightTelephone, copyrightTerms, copyrightInfringedWork, copyrightCompany, copyrightRightsHolder, copyrightCategory, copyrightCategoryOther);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiBridgeClaimCopyrightCreatePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer copyrightMediaId = 56; // Integer |
String copyrightMediaModule = copyrightMediaModule_example; // String |
String copyrightRole = copyrightRole_example; // String |
String copyrightFirstname = copyrightFirstname_example; // String |
String copyrightLastname = copyrightLastname_example; // String |
String copyrightStreet = copyrightStreet_example; // String |
String copyrightCity = copyrightCity_example; // String |
String copyrightPostalCode = copyrightPostalCode_example; // String |
String copyrightCountry = copyrightCountry_example; // String |
String copyrightUsername = copyrightUsername_example; // String |
String copyrightEmail = copyrightEmail_example; // String |
String copyrightTelephone = copyrightTelephone_example; // String |
String copyrightTerms = copyrightTerms_example; // String |
String copyrightInfringedWork = copyrightInfringedWork_example; // String |
String copyrightCompany = copyrightCompany_example; // String |
String copyrightRightsHolder = copyrightRightsHolder_example; // String |
String copyrightCategory = copyrightCategory_example; // String |
String copyrightCategoryOther = copyrightCategoryOther_example; // String |
try {
apiInstance.apiBridgeClaimCopyrightCreatePost(copyrightMediaId, copyrightMediaModule, copyrightRole, copyrightFirstname, copyrightLastname, copyrightStreet, copyrightCity, copyrightPostalCode, copyrightCountry, copyrightUsername, copyrightEmail, copyrightTelephone, copyrightTerms, copyrightInfringedWork, copyrightCompany, copyrightRightsHolder, copyrightCategory, copyrightCategoryOther);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiBridgeClaimCopyrightCreatePost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *copyrightMediaId = 56; //
String *copyrightMediaModule = copyrightMediaModule_example; //
String *copyrightRole = copyrightRole_example; //
String *copyrightFirstname = copyrightFirstname_example; //
String *copyrightLastname = copyrightLastname_example; //
String *copyrightStreet = copyrightStreet_example; //
String *copyrightCity = copyrightCity_example; //
String *copyrightPostalCode = copyrightPostalCode_example; //
String *copyrightCountry = copyrightCountry_example; //
String *copyrightUsername = copyrightUsername_example; //
String *copyrightEmail = copyrightEmail_example; //
String *copyrightTelephone = copyrightTelephone_example; //
String *copyrightTerms = copyrightTerms_example; //
String *copyrightInfringedWork = copyrightInfringedWork_example; // (optional)
String *copyrightCompany = copyrightCompany_example; // (optional)
String *copyrightRightsHolder = copyrightRightsHolder_example; // (optional)
String *copyrightCategory = copyrightCategory_example; // (optional)
String *copyrightCategoryOther = copyrightCategoryOther_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Create copyright claim
[apiInstance apiBridgeClaimCopyrightCreatePostWith:copyrightMediaId
copyrightMediaModule:copyrightMediaModule
copyrightRole:copyrightRole
copyrightFirstname:copyrightFirstname
copyrightLastname:copyrightLastname
copyrightStreet:copyrightStreet
copyrightCity:copyrightCity
copyrightPostalCode:copyrightPostalCode
copyrightCountry:copyrightCountry
copyrightUsername:copyrightUsername
copyrightEmail:copyrightEmail
copyrightTelephone:copyrightTelephone
copyrightTerms:copyrightTerms
copyrightInfringedWork:copyrightInfringedWork
copyrightCompany:copyrightCompany
copyrightRightsHolder:copyrightRightsHolder
copyrightCategory:copyrightCategory
copyrightCategoryOther:copyrightCategoryOther
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var User = require('user');
var defaultClient = User.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new User.DefaultApi()
var copyrightMediaId = 56; // {Integer}
var copyrightMediaModule = copyrightMediaModule_example; // {String}
var copyrightRole = copyrightRole_example; // {String}
var copyrightFirstname = copyrightFirstname_example; // {String}
var copyrightLastname = copyrightLastname_example; // {String}
var copyrightStreet = copyrightStreet_example; // {String}
var copyrightCity = copyrightCity_example; // {String}
var copyrightPostalCode = copyrightPostalCode_example; // {String}
var copyrightCountry = copyrightCountry_example; // {String}
var copyrightUsername = copyrightUsername_example; // {String}
var copyrightEmail = copyrightEmail_example; // {String}
var copyrightTelephone = copyrightTelephone_example; // {String}
var copyrightTerms = copyrightTerms_example; // {String}
var opts = {
'copyrightInfringedWork': copyrightInfringedWork_example, // {String}
'copyrightCompany': copyrightCompany_example, // {String}
'copyrightRightsHolder': copyrightRightsHolder_example, // {String}
'copyrightCategory': copyrightCategory_example, // {String}
'copyrightCategoryOther': copyrightCategoryOther_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.apiBridgeClaimCopyrightCreatePost(copyrightMediaId, copyrightMediaModule, copyrightRole, copyrightFirstname, copyrightLastname, copyrightStreet, copyrightCity, copyrightPostalCode, copyrightCountry, copyrightUsername, copyrightEmail, copyrightTelephone, copyrightTerms, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiBridgeClaimCopyrightCreatePostExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DefaultApi();
var copyrightMediaId = 56; // Integer |
var copyrightMediaModule = copyrightMediaModule_example; // String |
var copyrightRole = copyrightRole_example; // String |
var copyrightFirstname = copyrightFirstname_example; // String |
var copyrightLastname = copyrightLastname_example; // String |
var copyrightStreet = copyrightStreet_example; // String |
var copyrightCity = copyrightCity_example; // String |
var copyrightPostalCode = copyrightPostalCode_example; // String |
var copyrightCountry = copyrightCountry_example; // String |
var copyrightUsername = copyrightUsername_example; // String |
var copyrightEmail = copyrightEmail_example; // String |
var copyrightTelephone = copyrightTelephone_example; // String |
var copyrightTerms = copyrightTerms_example; // String |
var copyrightInfringedWork = copyrightInfringedWork_example; // String | (optional)
var copyrightCompany = copyrightCompany_example; // String | (optional)
var copyrightRightsHolder = copyrightRightsHolder_example; // String | (optional)
var copyrightCategory = copyrightCategory_example; // String | (optional)
var copyrightCategoryOther = copyrightCategoryOther_example; // String | (optional)
try
{
// Create copyright claim
apiInstance.apiBridgeClaimCopyrightCreatePost(copyrightMediaId, copyrightMediaModule, copyrightRole, copyrightFirstname, copyrightLastname, copyrightStreet, copyrightCity, copyrightPostalCode, copyrightCountry, copyrightUsername, copyrightEmail, copyrightTelephone, copyrightTerms, copyrightInfringedWork, copyrightCompany, copyrightRightsHolder, copyrightCategory, copyrightCategoryOther);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.apiBridgeClaimCopyrightCreatePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\DefaultApi();
$copyrightMediaId = 56; // Integer |
$copyrightMediaModule = copyrightMediaModule_example; // String |
$copyrightRole = copyrightRole_example; // String |
$copyrightFirstname = copyrightFirstname_example; // String |
$copyrightLastname = copyrightLastname_example; // String |
$copyrightStreet = copyrightStreet_example; // String |
$copyrightCity = copyrightCity_example; // String |
$copyrightPostalCode = copyrightPostalCode_example; // String |
$copyrightCountry = copyrightCountry_example; // String |
$copyrightUsername = copyrightUsername_example; // String |
$copyrightEmail = copyrightEmail_example; // String |
$copyrightTelephone = copyrightTelephone_example; // String |
$copyrightTerms = copyrightTerms_example; // String |
$copyrightInfringedWork = copyrightInfringedWork_example; // String |
$copyrightCompany = copyrightCompany_example; // String |
$copyrightRightsHolder = copyrightRightsHolder_example; // String |
$copyrightCategory = copyrightCategory_example; // String |
$copyrightCategoryOther = copyrightCategoryOther_example; // String |
try {
$api_instance->apiBridgeClaimCopyrightCreatePost($copyrightMediaId, $copyrightMediaModule, $copyrightRole, $copyrightFirstname, $copyrightLastname, $copyrightStreet, $copyrightCity, $copyrightPostalCode, $copyrightCountry, $copyrightUsername, $copyrightEmail, $copyrightTelephone, $copyrightTerms, $copyrightInfringedWork, $copyrightCompany, $copyrightRightsHolder, $copyrightCategory, $copyrightCategoryOther);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiBridgeClaimCopyrightCreatePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $copyrightMediaId = 56; # Integer |
my $copyrightMediaModule = copyrightMediaModule_example; # String |
my $copyrightRole = copyrightRole_example; # String |
my $copyrightFirstname = copyrightFirstname_example; # String |
my $copyrightLastname = copyrightLastname_example; # String |
my $copyrightStreet = copyrightStreet_example; # String |
my $copyrightCity = copyrightCity_example; # String |
my $copyrightPostalCode = copyrightPostalCode_example; # String |
my $copyrightCountry = copyrightCountry_example; # String |
my $copyrightUsername = copyrightUsername_example; # String |
my $copyrightEmail = copyrightEmail_example; # String |
my $copyrightTelephone = copyrightTelephone_example; # String |
my $copyrightTerms = copyrightTerms_example; # String |
my $copyrightInfringedWork = copyrightInfringedWork_example; # String |
my $copyrightCompany = copyrightCompany_example; # String |
my $copyrightRightsHolder = copyrightRightsHolder_example; # String |
my $copyrightCategory = copyrightCategory_example; # String |
my $copyrightCategoryOther = copyrightCategoryOther_example; # String |
eval {
$api_instance->apiBridgeClaimCopyrightCreatePost(copyrightMediaId => $copyrightMediaId, copyrightMediaModule => $copyrightMediaModule, copyrightRole => $copyrightRole, copyrightFirstname => $copyrightFirstname, copyrightLastname => $copyrightLastname, copyrightStreet => $copyrightStreet, copyrightCity => $copyrightCity, copyrightPostalCode => $copyrightPostalCode, copyrightCountry => $copyrightCountry, copyrightUsername => $copyrightUsername, copyrightEmail => $copyrightEmail, copyrightTelephone => $copyrightTelephone, copyrightTerms => $copyrightTerms, copyrightInfringedWork => $copyrightInfringedWork, copyrightCompany => $copyrightCompany, copyrightRightsHolder => $copyrightRightsHolder, copyrightCategory => $copyrightCategory, copyrightCategoryOther => $copyrightCategoryOther);
};
if ($@) {
warn "Exception when calling DefaultApi->apiBridgeClaimCopyrightCreatePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
copyrightMediaId = 56 # Integer |
copyrightMediaModule = copyrightMediaModule_example # String |
copyrightRole = copyrightRole_example # String |
copyrightFirstname = copyrightFirstname_example # String |
copyrightLastname = copyrightLastname_example # String |
copyrightStreet = copyrightStreet_example # String |
copyrightCity = copyrightCity_example # String |
copyrightPostalCode = copyrightPostalCode_example # String |
copyrightCountry = copyrightCountry_example # String |
copyrightUsername = copyrightUsername_example # String |
copyrightEmail = copyrightEmail_example # String |
copyrightTelephone = copyrightTelephone_example # String |
copyrightTerms = copyrightTerms_example # String |
copyrightInfringedWork = copyrightInfringedWork_example # String | (optional)
copyrightCompany = copyrightCompany_example # String | (optional)
copyrightRightsHolder = copyrightRightsHolder_example # String | (optional)
copyrightCategory = copyrightCategory_example # String | (optional)
copyrightCategoryOther = copyrightCategoryOther_example # String | (optional)
try:
# Create copyright claim
api_instance.api_bridge_claim_copyright_create_post(copyrightMediaId, copyrightMediaModule, copyrightRole, copyrightFirstname, copyrightLastname, copyrightStreet, copyrightCity, copyrightPostalCode, copyrightCountry, copyrightUsername, copyrightEmail, copyrightTelephone, copyrightTerms, copyrightInfringedWork=copyrightInfringedWork, copyrightCompany=copyrightCompany, copyrightRightsHolder=copyrightRightsHolder, copyrightCategory=copyrightCategory, copyrightCategoryOther=copyrightCategoryOther)
except ApiException as e:
print("Exception when calling DefaultApi->apiBridgeClaimCopyrightCreatePost: %s\n" % e)
Parameters
Name | Description |
---|---|
copyright_media_id* |
Integer
Required
|
copyright_media_module* |
String
Required
|
copyright_role* |
String
Required
|
copyright_firstname* |
String
Required
|
copyright_lastname* |
String
Required
|
copyright_street* |
String
Required
|
copyright_city* |
String
Required
|
copyright_postal_code* |
String
Required
|
copyright_country* |
String
Required
|
copyright_username* |
String
Required
|
copyright_email* |
String
Required
|
copyright_telephone* |
String
Required
|
copyright_terms* |
String
Required
|
copyright_infringed_work |
String
|
copyright_company |
String
|
copyright_rights_holder |
String
|
copyright_category |
String
|
copyright_category_other |
String
|