using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
using System.Collections.Generic;
var sdk = new Apideck(
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
consumerId: "<insert-consumer-id-here>",
appId: "<insert-application-id-here>"
);
CrmContactsAllRequest req = new CrmContactsAllRequest() {
ServiceId = "salesforce",
Filter = new ContactsFilter() {
FirstName = "Elon",
LastName = "Musk",
Email = "elon@tesla.com",
CompanyId = "12345",
OwnerId = "12345",
},
Sort = new ContactsSort() {
By = ContactsSortBy.CreatedAt,
Direction = SortDirection.Desc,
},
PassThrough = new Dictionary<string, object>() {
{ "search", "San Francisco" },
},
Fields = "id,updated_at",
};
CrmContactsAllResponse? res = await sdk.Crm.Contacts.ListAsync(req);
while(res != null)
{
// handle items
res = await res.Next!();
}