Path: blob/master/Forecast/Forecast_List_all_assignments.ipynb
2973 views
Forecast - List all assignments
Tags: #forecast #assignments #api #list #python #get
Author: Landry Christensen
Last update: 2023-08-08 (Created: 2023-08-08)
Description: This notebook will list all assignments from the forecast API. Forecast is a service that connects to harvest and allows you to plan for allocations to harvest projects.
References:
Kindly be aware that the Forecast API is currently not available for public use or documentation. If you wish to customize and utilize this template for your specific needs, please reach out to the author.
Input
Import libraries
Setup variables
Mandatory
account_id
: Account ID from Forecastclient_id
: Client ID from Forecastclient_secret
: Client Secret from Forecastrefresh_token
: Refresh Token from Forecastlimit
: assignments limit, to get all assignments enter -1
Optional
This notebook will filter all of the assignments that include any date going from start_date
to end_date
. Maximum timeframe of 180 days from start_date
to end_date
. Default start date is 90 days before current date, and default end date is 90 days after current date.
start_date
: Starting date to filter from (ISO 8601 Format), Example date '2023-08-04'end_date
: Ending date to filter from (ISO 8601 Format), Example date '2023-08-04'
Model
List all assignments
This function will list all assignments from the Forecast API