folder-arrow-downget_project

imerit_ango.sdk.SDK.

get_project(project_id)

Get all details of a project.

Parameters

  • project_id: string

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

sdk_response = ango_sdk.get_project(project_id=project_id)
project = response["data"]["project"]

project_name = project["name"]
project_description = project["description"]
project_created_at = project["createdAt"]
project_ontology = project["categorySchema"]

print(project_name)
print(project_description)
print(project_creation_time)
print(project_ontology)
chevron-rightSample Outputhashtag
circle-info

Last updated