Skip to main content

Aurigma Asset Generator API client

Project description

aurigma-asset-generator-api-client

Python client library for Aurigma Asset Generator API.

Requirements.

  • Python 3.9+
  • Dependencies:
    • python-dateutil>=2.8.2
    • httpx>=0.28.1
    • pydantic>=2
    • typing-extensions>=4.7.1

Installation & Usage

pip install

pip install aurigma-asset-generator-api-client

Then import the package:

import aurigma.asset_generator

Getting Started

Please follow the installation procedure and then run the following:

import aurigma.asset_generator
from aurigma.asset_generator.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configuration parameters.
configuration = aurigma.asset_generator.Configuration(
    host = "http://api.customerscanvashub.com/"
)



# Enter a context with an instance of the API client
async with aurigma.asset_generator.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = aurigma.asset_generator.BuildInfoApi(api_client)

    try:
        # Returns build info.
        api_response = await api_instance.build_info_get_info()
        print("The response of BuildInfoApi->build_info_get_info:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BuildInfoApi->build_info_get_info: %s\n" % e)

Documentation for API Endpoints

Depending on the geographical location of your Customer's Canvas Hub instance, the API gateway address may vary:

https://api.customerscanvashub.com/ - United States instance https://api.eu.customerscanvashub.com/ - European instance https://api.au.customerscanvashub.com/ - Australian instance

Class Method HTTP request Description
BuildInfoApi build_info_get_info GET /api/asset-generator/v1/info Returns build info.
BuildInfoApi build_info_head_info HEAD /api/asset-generator/v1/info Returns build info.
MockupGeneratorApi mockup_generator_generate POST /api/asset-generator/v1/mockups/generate Generates a mockup file and saves it to the storage.
MockupGeneratorApi mockup_generator_get_all_specifications GET /api/asset-generator/v1/mockups/specifications Returns a list of all mockup specifications.
MockupGeneratorApi mockup_generator_get_specification GET /api/asset-generator/v1/mockups/specifications/{name} Returns the mockup specification by name.
MockupGeneratorApi mockup_generator_get_specification_image GET /api/asset-generator/v1/mockups/specifications/{name}/images/{imageName} Returns image of mockup specification by name.
MockupGeneratorApi mockup_generator_get_specification_parameters GET /api/asset-generator/v1/mockups/specifications/{name}/parameters Returns parameters of mockup specification by name.
MockupGeneratorApi mockup_generator_validate_specification_parameters POST /api/asset-generator/v1/mockups/specifications/{name}/parameters/validate Validates the parameters of the mockup specification.
TenantsApi tenants_create POST /api/asset-generator/v1/tenants Creates a new tenant.
TenantsApi tenants_delete DELETE /api/asset-generator/v1/tenants/{id} Deletes a tenant by ID.
TenantsApi tenants_get GET /api/asset-generator/v1/tenants/{id} Returns a tenant by ID.
TenantsApi tenants_get_all GET /api/asset-generator/v1/tenants Returns a list of all tenants.
TenantsApi tenants_update PUT /api/asset-generator/v1/tenants/{id} Updates a tenant by ID.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKey

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

OAuth2Code

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://customerscanvashub.com/connect/authorize
  • Scopes:
  • Tenants_read: Read tenants
  • Tenants_update: Read and update tenants
  • Tenants_full: Manipulate tenants
  • Assets_read: Read assets data
  • Assets_full: Manipulate assets data
  • Private_assets_read: Read data of private assets
  • Private_assets_update: Update data of private assets
  • Private_assets_full: Manipulate data of private assets

OAuth2Implicit

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://customerscanvashub.com/connect/authorize
  • Scopes:
  • Tenants_read: Read tenants
  • Tenants_update: Read and update tenants
  • Tenants_full: Manipulate tenants
  • Assets_read: Read assets data
  • Assets_full: Manipulate assets data
  • Private_assets_read: Read data of private assets
  • Private_assets_update: Update data of private assets
  • Private_assets_full: Manipulate data of private assets

OAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • Tenants_read: Read tenants
  • Tenants_update: Read and update tenants
  • Tenants_full: Manipulate tenants
  • Assets_read: Read assets data
  • Assets_full: Manipulate assets data
  • Private_assets_read: Read data of private assets
  • Private_assets_update: Update data of private assets
  • Private_assets_full: Manipulate data of private assets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aurigma_asset_generator_api_client-1.0.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aurigma_asset_generator_api_client-1.0.0.tar.gz.

File metadata

File hashes

Hashes for aurigma_asset_generator_api_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 37f23c1355bc3a2400a8b9d3369983093192316dcea14b7906325112c390671e
MD5 183dbba0bda1ea19e77c8a897ebb755f
BLAKE2b-256 662fe981e3d7f1f7f2e99054f9941d11a39fb53445cb932d65cbe6d13fb1b077

See more details on using hashes here.

File details

Details for the file aurigma_asset_generator_api_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aurigma_asset_generator_api_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f230236dfbb35f1552e8daff20077e5936ef6b9ee22d97e8984d06906be54e7b
MD5 cc40855ffa77dae67765e31c7b6d0bc0
BLAKE2b-256 cbfe62da8a7b01613fe6ca3ee2a44b8324e54c5624bed187b7d8d40a6fa3877f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page