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.2.1
  • Package version: 3.2.1
  • Generator version: 7.16.0-SNAPSHOT
  • 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
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.2.1.tar.gz (60.0 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.2.1-py3-none-any.whl (119.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wrk_platform_sdk-3.2.1.tar.gz
  • Upload date:
  • Size: 60.0 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.2.1.tar.gz
Algorithm Hash digest
SHA256 2af36bc151ec98d3e9af2f40798ba796e15065aac16fe4558d22d8a3ff571bc8
MD5 e4807379f4dffa6866a95857f7b6805e
BLAKE2b-256 e3a24b05516c06833f2b81a99a47288221d44e07339bc15133c29a778ac526e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wrk_platform_sdk-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf2b12b6a1a09c3355a4b28d7e6028b1a5d237b39591ff07e152a208169c6a76
MD5 c2c9e021d65a4c4b30e8858e7fc43131
BLAKE2b-256 65a7000582a1b268598b4d09f0867ae561f4d9d2ac72239c5c57932778f6f3a2

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