Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.83 KB

SceneApi.md

File metadata and controls

85 lines (61 loc) · 2.83 KB

py4envi_py4envi_openapi_client.SceneApi

All URIs are relative to https://dane.sat4envi.imgw.pl

Method HTTP request Description
generate_download_link GET /api/v1/scenes/{id}/download/{artifactName} Redirect to a presigned download url for a scene's artifact

generate_download_link

generate_download_link(id, artifact_name)

Redirect to a presigned download url for a scene's artifact

Example

  • Bearer (JWT) Authentication (bearer-token):
import time
import py4envi_py4envi_openapi_client
from py4envi_py4envi_openapi_client.api import scene_api
from pprint import pprint
# Defining the host is optional and defaults to https://dane.sat4envi.imgw.pl
# See configuration.py for a list of all supported configuration parameters.
configuration = py4envi_py4envi_openapi_client.Configuration(
    host = "https://dane.sat4envi.imgw.pl"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearer-token
configuration = py4envi_py4envi_openapi_client.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with py4envi_py4envi_openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = scene_api.SceneApi(api_client)
    id = 1 # int | 
    artifact_name = "artifactName_example" # str | 

    # example passing only required values which don't have defaults set
    try:
        # Redirect to a presigned download url for a scene's artifact
        api_instance.generate_download_link(id, artifact_name)
    except py4envi_py4envi_openapi_client.ApiException as e:
        print("Exception when calling SceneApi->generate_download_link: %s\n" % e)

Parameters

Name Type Description Notes
id int
artifact_name str

Return type

void (empty response body)

Authorization

bearer-token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
404 Scene or artifact not found -
303 Redirect to the presigned download url * Location - The presigned download url
403 Forbidden -
401 Unauthenticated -

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