From d569b06b244f7c2ba5c3069b999c036ceb6ffbfb Mon Sep 17 00:00:00 2001 From: Aleksey Shubin Date: Tue, 30 May 2017 13:04:59 +0300 Subject: [PATCH 1/2] Updated the example in README --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 20c0bd6..40e8dca 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,14 @@ 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 From 42661f699e2214230a4c3a522371171b06787ec1 Mon Sep 17 00:00:00 2001 From: Aleksey Shubin Date: Tue, 30 May 2017 13:12:11 +0300 Subject: [PATCH 2/2] Updated custom fields example in README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40e8dca..fe42da0 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,10 @@ var persons = await personsService.GetAllAsync(); ```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 {