get_batches

imerit_ango.sdk.SDK.

get_batches(project_id)

Get details of all batches in a project.

Parameters

  • project_id: string

Returns:

  • output: dict

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)

output = ango_sdk.get_batches(project_id=project_id)

Outputs:

[
  {
    "_id": "<BATCH_ID_1>",
    "name": "Batch Name 1"
  },
  {
    "_id": "<BATCH_ID_2>",
    "name": "Batch Name 2"
  }
]

Last updated