The Connect Javascript Python is a valuable tool to implement middlewares between Cloudblue Connect and your platform. This SDK was developed in Python. Not necessarily your platform must be developed in Javascript, only the platform that runs the middleware must support Python 2.7 or higher.

For more information go to Python SDK Connect documentation.

The example uses the scenario developed in Apiary that simulates a Vendor System API.

In the python SDK, folder examples/apiary_scenario has placed the scripts that run a middleware to execute the workflow.

Requirements

Connect Python SDK work with Python version Python 2.7+ or Python 3.4+

Connect Javascript SDK also depends on:

Installation

To install the Connect Python SDK from a terminal window type:

# pip install connect-sdk

Python Code

There are two scripts and both extend the class automation.py. This class allows to automate process of Connect in a easy way:

asset_request_workflow.py: This connects with the Vendor System using an example of API Vendor System implemented in Apiary.io and documented in the Cloudblue Connect Documentation Portal:

Fulfillment Requests – CloudBlue Connect
This module creates a tenant in the Vendor System when it is created in Cloudblue Connect.

asset_accept_worlflow.py: This connects with the Vendor System using an example of API Vendor System implemented in apiary.io and documented in the Cloudblue Connect Documentation Portal.

This module accepts the Purchase Request into Connect when the tenant is ready in the Vendor System.

Is this page helpful?
Translate with Google
Copied to clipboard