Skip to content

Latest commit

 

History

History
163 lines (109 loc) · 4.4 KB

DefaultApi.md

File metadata and controls

163 lines (109 loc) · 4.4 KB

Deeparteffects\Client\DefaultApi

All URIs are relative to https://api.deeparteffects.com/v1

Method HTTP request Description
resultGet GET /result
stylesGet GET /styles
uploadPost POST /upload

resultGet

\Deeparteffects\Client\Model\Result resultGet($submission_id)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_key = '--Your API Key--';
$access_key = '--Your ACCESS Key--';
$secret_key = '--Your SECRET KEY--';

$api_instance = new \Deeparteffects\Client\Api\DefaultApi();
$api_instance->setApiKey($api_key);
$api_instance->setApiAccessKey($access_key);
$api_instance->setApiSecretKey($secret_key);

$submission_id = "submission_id_example"; // string | 

try {
    $result = $api_instance->resultGet($submission_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->resultGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
submission_id string [optional]

Return type

\Deeparteffects\Client\Model\Result

Authorization

api_key, sigv4

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

stylesGet

\Deeparteffects\Client\Model\Styles stylesGet()

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_key = '--Your API Key--';
$access_key = '--Your ACCESS Key--';
$secret_key = '--Your SECRET KEY--';

$api_instance = new \Deeparteffects\Client\Api\DefaultApi();
$api_instance->setApiKey($api_key);
$api_instance->setApiAccessKey($access_key);
$api_instance->setApiSecretKey($secret_key);

try {
    $result = $api_instance->stylesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->stylesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Deeparteffects\Client\Model\Styles

Authorization

api_key, sigv4

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

uploadPost

\Deeparteffects\Client\Model\UploadResponse uploadPost($upload_request)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_key = '--Your API Key--';
$access_key = '--Your ACCESS Key--';
$secret_key = '--Your SECRET KEY--';

$api_instance = new \Deeparteffects\Client\Api\DefaultApi();
$api_instance->setApiKey($api_key);
$api_instance->setApiAccessKey($access_key);
$api_instance->setApiSecretKey($secret_key);

$upload_request = new \Deeparteffects\Client\Model\UploadRequest(); // \Deeparteffects\Client\Model\UploadRequest | 

try {
    $image = base64_encode(file_get_contents("/path/to/image"));
    $uploadRequest->setStyleId("Unique style id");
    $uploadRequest->setImageBase64Encoded($image);
    $result = $api_instance->uploadPost($upload_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->uploadPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
upload_request \Deeparteffects\Client\Model\UploadRequest

Return type

\Deeparteffects\Client\Model\UploadResponse

Authorization

api_key, sigv4

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]