solutioncatalog-api¶
- API version: 0.0.1
- Package version: 0.0.5
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.¶
Python 3.4+
Installation & Usage¶
pip install¶
If the python package is hosted on a repository, you can install directly using:
pip install solutioncatalog-api
(you may need to run pip
with root permission: `sudo pip install solutioncatalog-api)
Then import the package:
import solutioncatalog
Getting Started¶
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import solutioncatalog
from solutioncatalog.rest import ApiException
from pprint import pprint
# Defining host is optional and default to https://api.solutions.mint.isi.edu/v0.0.1
configuration.host = "https://api.solutions.mint.isi.edu/v0.0.1"
# Create an instance of the API class
api_instance = solutioncatalog.ResultsApi(solutioncatalog.ApiClient(configuration))
scenario_id = 'scenario_id_example' # str | The ID of the scenario
subgoal_id = 'subgoal_id_example' # str | The ID of the subgoal
thread_id = 'thread_id_example' # str | The ID of the thread
try:
# Get the results of a thread
api_response = api_instance.results_scenario_id_subgoal_id_thread_id_get(scenario_id, subgoal_id, thread_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ResultsApi->results_scenario_id_subgoal_id_thread_id_get: %s\n" % e)