You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloseIoDotNet is a third party API abstraction library. More Than Rewards is not
affiliated with Elastic, Inc, owners of the Close.Io service and trademark, in any way.
License
MIT. See LICENSE.txt.
Status
First beta release (0.1) complete - reading from all lead-based endpoints
implemented.
Second beta release (0.2) under active development.
How to
Read single records by ID with Queries, or read multiple records with Scans.
Currently, reading of any lead-based record type (Lead, Address, Contact, Contact URL, Contact Phone, Contact Email, Opportunity, and Task objects) are supported.
Example: Query a specific lead
using(varcontext=newCloseIoDotNetContext("VALID CLOSE.IO API KEY")){returncontext.Query<Lead>("LEAD ID");}
Example: Scan all leads
using(varcontext=newCloseIoDotNetContext("VALID CLOSE.IO API KEY")){returncontext.Scan<Lead>();}
Example: Scan for the names of all contacts with a specific phone number.
using(varcontext=newCloseIoDotNetContext("VALID CLOSE.IO API KEY")){varfieldsToSearch=(newLead()).EntityFields.Where(entry =>entry.SerializedName.Equals("contacts"));varsearchQuery="phone_number:111-222-3344";returncontext.Scan<Lead>(searchQuery,fieldsToSearch).SelectMany(entry =>entry.Contacts).Select(entry =>entry.Name);}