Skip to main content

Wrk Automation Platform - API v1

Project description

wrk-platform-sdk

The Wrk API is organized around REST. Our API has predictable resource-oriented URLs, accepts and returns JSON-encoded requests and responses. It uses standard HTTP response codes, authentication, and verbs.

Please note you need will an API key with the appropriate access to use the following APIs. The API key can be obtained from this page in your Wrk account. To elevate access to your account, please contact your Sales team.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 3.5.0
  • Package version: 3.5.0
  • Generator version: 7.20.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import wrk_platform_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import wrk_platform_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import wrk_platform_sdk
from wrk_platform_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://account.wrk.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = wrk_platform_sdk.Configuration(
    host = "https://account.wrk.com/api/v1"
)

# 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 API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with wrk_platform_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wrk_platform_sdk.ConnectedAccountsApi(api_client)
    create_connected_account_request = wrk_platform_sdk.CreateConnectedAccountRequest() # CreateConnectedAccountRequest | Create a new Connected Account by providing the Connected Account details (optional)

    try:
        # Create Connected Account
        api_response = api_instance.create_connected_account(create_connected_account_request=create_connected_account_request)
        print("The response of ConnectedAccountsApi->create_connected_account:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ConnectedAccountsApi->create_connected_account: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
ConnectedAccountsApi create_connected_account POST /connected-account Create Connected Account
ConnectedAccountsApi get_connected_account GET /connected-account/{connected_account_id} Fetch Connected Account
ConnectedAccountsApi get_connected_accounts GET /connected-account Fetch Connected Accounts
ConnectedAccountsApi update_connected_account PUT /connected-account/{connected_account_id} Update Connected Account
LaunchActivitiesApi get_launch_activities GET /launch/{launch_id}/activity Get Wrkflow Launch Activities
LaunchesApi get_launch_by_id GET /launch/{launch_id} Fetch a specific Wrkflow Launch
LaunchesApi get_launches GET /launch Fetch multiple Wrkflow Launches
LaunchesApi launch_wrkflow POST /wrkflow/{wrkflow_uuid}/launch Launch a Wrkflow
LaunchesApi launch_wrkflow_sync POST /wrkflow/{wrkflow_uuid}/launch-sync Launches the wrkflow via a POST request and returns the result of the wrkflow, or a default response if no results were produced within the specified timeout.
LaunchesApi pause_launch POST /launch/{launch_id}/pause Pause a Wrkflow Launch
LaunchesApi resume_launch POST /launch/{launch_id}/resume Resume a Wrkflow Launch
MediaLibraryApi create_media_library_file POST /media-library Create a media library file
MediaLibraryApi delete_media_library_file DELETE /media-library/{file_id} Delete a media library file
MediaLibraryApi get_media_library_file_by_id GET /media-library/{file_id} Get an item from the Media Library
MediaLibraryApi get_media_library_files GET /media-library Get all files from the Media Library
MediaLibraryApi update_media_library_file PATCH /media-library/{file_id} Update a media library file
WebhooksApi execute_webhook_sync POST /webhook/{webhook_uuid}/execute-sync Executes a previously-configured webhook via a POST request and returns the result of the execution, or a default response if no results were produced within the specified timeout.
WrkActionResourcesApi get_action_applications GET /action-application Fetch Action Applications
WrkActionResourcesApi get_credentials GET /credential Fetch Credentials
WrkActionResourcesApi get_outcomes GET /outcome Fetch Outcomes
WrkActionResourcesApi get_wrk_actions GET /wrk-action Fetch Wrk Actions
WrkflowsApi create_wrkflow POST /wrkflow Create or update a Wrkflow
WrkflowsApi get_wrkflow_by_uuid GET /wrkflow/{wrkflow_uuid} Fetch a specific Wrkflow
WrkflowsApi get_wrkflows GET /wrkflow Fetch multiple Wrkflows

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

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

Author

support@wrk.com

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

wrk_platform_sdk-3.5.0.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

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

wrk_platform_sdk-3.5.0-py3-none-any.whl (140.1 kB view details)

Uploaded Python 3

File details

Details for the file wrk_platform_sdk-3.5.0.tar.gz.

File metadata

  • Download URL: wrk_platform_sdk-3.5.0.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for wrk_platform_sdk-3.5.0.tar.gz
Algorithm Hash digest
SHA256 b83a93829f7f9a09d644b598e0b2cc29428b6536cb77141976d70a3a05c2ccfb
MD5 6492b7d5b9c162e0c518c168ff3635c6
BLAKE2b-256 a965c6738cd241c3ec16f47d111ed29a3f0d965aa4298239003af5486188175c

See more details on using hashes here.

File details

Details for the file wrk_platform_sdk-3.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wrk_platform_sdk-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e23f177eb2f06b9f234af6cac06bdf6be95ddb50ce5457e28928ce20c5bbd4c
MD5 4404995fc24909fa08ff129ef708467c
BLAKE2b-256 f94c8d3b498b5be98b9bf55db0605c5ca7bc98d33f1e569f4bda4adc6133f97d

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