0

Invite User To Project

by
Published Jun 6, 2022

Sends email to a person, inviting them to use one of your projects. [See the docs here](https://developer.todoist.com/sync/v9/#share-a-project)

Script todoist Verified

The script

Submitted by hugo697 Bun
Verified 398 days ago
1
import { v9 as Todoist } from 'todoist'
2

3
type Todoist = {
4
	Token: string
5
}
6

7
export async function main(
8
	resource: Todoist,
9
	project: {
10
		project_id: string
11
		email: string
12
	}
13
) {
14
	const api = Todoist(resource.Token)
15
	const projects = await api.sharing.shareProject(project)
16
	return projects
17
}
18