Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Jan 31, 2017
1 parent 4a7017f commit e825a94
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ ITodoistClient client = await TodoistClient.LoginAsync("email", "password");

### Simple API calls
```csharp
// Get all projects.
var projects = await client.Projects.GetAsync();

// Get all resources (labels, projects, tasks, notes etc.)
// Get all resources (labels, projects, tasks, notes etc.).
var resources = await client.GetResourcesAsync();

// Get only projects and labels
// Get only projects and labels.
var projectsAndLabels = await client.GetResourcesAsync(ResourceType.Projects, ResourceType.Labels);

// Adding a task with a note.
// Get only projects.
var projectsAndLabels = await client.GetResourcesAsync(ResourceType.Projects);

// Alternatively you can use this API to get projects.
var projects = await client.Projects.GetAsync();

// Add a task with a note.
var taskId = await client.Items.AddAsync(new Item("New task"));
await client.Notes.AddToItemAsync(new Note("Task description"), taskId);
```
Expand Down

0 comments on commit e825a94

Please sign in to comment.