Llistat de tasques
projects:projects.readhttps://api.holded.com/api/v2/tasksRetorna una llista paginada de tasques del teu compte. Utilitza `status=open` per a les tasques pendents: sense estat de fet i sense arxivar. Les peticions autenticades com un usuari inclouen també els projectes privats dels quals aquest usuari és membre; les fetes amb una API key només llisten els projectes públics.
Paràmetres
Paràmetres de consulta
stringopcionalCursor opac per a la paginació. Utilitza el valor retornat a la resposta anterior
integeropcional= 50Nombre màxim de tasques a retornar per pàgina
stringopcional`open`: tasques sense estat de fet i sense arxivar. `done`: tasques en un estat de fet, arxivades incloses. Sense valor, totes les tasques
"open""done"Petició
import requests
url = "https://api.holded.com/api/v2/tasks?cursor=value&limit=50&status=value"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"project_id": "string",
"list_id": "string",
"name": "string",
"description": "string",
"index": "1",
"status": "string",
"status_name": "string",
"priority": 0,
"story_points": 0,
"type": "string",
"start_date": "string",
"due_date": "string",
"archived": false,
"updated_at": "string",
"created_at": "string",
"assigned_to": [
"string"
],
"comments": [
{}
],
"featured": false,
"reference": "string"
}
],
"has_more": false,
"cursor": "string"
}Respostes exitoses
200Llistat de tasquesapplication/jsonUnique identifier
Project ID
List ID
Task name
Task description
Task index as a decimal string
Task status
The status's display name in the account, as the user sees it
Task priority
Story points
Task type
Start date, formatted according to the account's date settings
Due date, formatted according to the account's date settings
Whether the task is archived
Last update date in ISO 8601
Creation date in ISO 8601
Assigned user IDs
Task comments
Whether the task is featured
Task reference
Whether there are more items on the next page
Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.
Respostes d'error
400Estat desconegutapplication/json401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json429Límit de sol·licituds exceditapplication/json