diff --git a/README.md b/README.md index 20c0bd6..fe42da0 100644 --- a/README.md +++ b/README.md @@ -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(client); +var emails = await activityService.GetAllByType("email"); + +var dealsService = new DealEntityService(client); +var deals = await dealsService.GetAllAsync(); + +var personsService = new PersonEntityService(client); +var persons = await personsService.GetAllAsync(); ``` ## Example - Custom Fields ```cs var myKey = "MY_PIPEDRIVE_API_KEY"; -var client = new PipeDriveClient(myKey); +var client = new PipeDriveClient(myKey); -var orgs = await client.Organizations.GetAsync(); +var orgService = new OrganizationEntityService(client); +var orgs = await orgService.GetAsync(); public class MyCustomOrganization : Organization {