Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@
var myKey = "MY_PIPEDRIVE_API_KEY";
var client = new PipeDriveClient(myKey);

var emails = await client.Activities.GetAllByType("email");
var deals = await client.Deals.GetAllAsync();
var persons = await client.Persons.GetAllAsync();
var activityService = new ActivityEntityService<Activity>(client);
var emails = await activityService.GetAllByType("email");

var dealsService = new DealEntityService<Deal>(client);
var deals = await dealsService.GetAllAsync();

var personsService = new PersonEntityService<Person>(client);
var persons = await personsService.GetAllAsync();
```

## Example - Custom Fields

```cs
var myKey = "MY_PIPEDRIVE_API_KEY";
var client = new PipeDriveClient<Person, MyCustomOrganization,Deal,Product>(myKey);
var client = new PipeDriveClient(myKey);

var orgs = await client.Organizations.GetAsync();
var orgService = new OrganizationEntityService<MyCustomOrganization>(client);
var orgs = await orgService.GetAsync();

public class MyCustomOrganization : Organization
{
Expand Down