List users
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
using System.Collections.Generic;
var sdk = new Apideck(
consumerId: "test-consumer",
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
apiKey: "<YOUR_BEARER_TOKEN_HERE>"
);
CrmUsersAllRequest req = new CrmUsersAllRequest() {
ServiceId = "salesforce",
PassThrough = new Dictionary<string, object>() {
{ "search", "San Francisco" },
},
Fields = "id,updated_at",
};
CrmUsersAllResponse? res = await sdk.Crm.Users.ListAsync(req);
while(res != null)
{
// handle items
res = await res.Next!();
}
| Parameter |
Type |
Required |
Description |
request |
CrmUsersAllRequest |
✔️ |
The request object to use for the request. |
CrmUsersAllResponse
| Error Type |
Status Code |
Content Type |
| ApideckUnifySdk.Models.Errors.BadRequestResponse |
400 |
application/json |
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse |
401 |
application/json |
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse |
402 |
application/json |
| ApideckUnifySdk.Models.Errors.NotFoundResponse |
404 |
application/json |
| ApideckUnifySdk.Models.Errors.UnprocessableResponse |
422 |
application/json |
| ApideckUnifySdk.Models.Errors.APIException |
4XX, 5XX |
*/* |
Create user
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
using System.Collections.Generic;
var sdk = new Apideck(
consumerId: "test-consumer",
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
apiKey: "<YOUR_BEARER_TOKEN_HERE>"
);
CrmUsersAddRequest req = new CrmUsersAddRequest() {
ServiceId = "salesforce",
User = new UserInput() {
ParentId = "54321",
Username = "masterofcoin",
FirstName = "Elon",
LastName = "Musk",
Title = "CEO",
Division = "Europe",
CompanyName = "SpaceX",
EmployeeNumber = "123456-AB",
Description = "A description",
Image = "https://logo.clearbit.com/spacex.com?s=128",
Language = "EN",
Status = "active",
Password = "supersecretpassword",
Addresses = new List<Address>() {
new Address() {
Id = "123",
Type = ApideckUnifySdk.Models.Components.Type.Primary,
String = "25 Spring Street, Blackburn, VIC 3130",
Name = "HQ US",
Line1 = "Main street",
Line2 = "apt #",
Line3 = "Suite #",
Line4 = "delivery instructions",
StreetNumber = "25",
City = "San Francisco",
State = "CA",
PostalCode = "94104",
Country = "US",
Latitude = "40.759211",
Longitude = "-73.984638",
County = "Santa Clara",
ContactName = "Elon Musk",
Salutation = "Mr",
PhoneNumber = "111-111-1111",
Fax = "122-111-1111",
Email = "elon@musk.com",
Website = "https://elonmusk.com",
Notes = "Address notes or delivery instructions.",
RowVersion = "1-12345",
},
new Address() {
Id = "123",
Type = ApideckUnifySdk.Models.Components.Type.Primary,
String = "25 Spring Street, Blackburn, VIC 3130",
Name = "HQ US",
Line1 = "Main street",
Line2 = "apt #",
Line3 = "Suite #",
Line4 = "delivery instructions",
StreetNumber = "25",
City = "San Francisco",
State = "CA",
PostalCode = "94104",
Country = "US",
Latitude = "40.759211",
Longitude = "-73.984638",
County = "Santa Clara",
ContactName = "Elon Musk",
Salutation = "Mr",
PhoneNumber = "111-111-1111",
Fax = "122-111-1111",
Email = "elon@musk.com",
Website = "https://elonmusk.com",
Notes = "Address notes or delivery instructions.",
RowVersion = "1-12345",
},
new Address() {
Id = "123",
Type = ApideckUnifySdk.Models.Components.Type.Primary,
String = "25 Spring Street, Blackburn, VIC 3130",
Name = "HQ US",
Line1 = "Main street",
Line2 = "apt #",
Line3 = "Suite #",
Line4 = "delivery instructions",
StreetNumber = "25",
City = "San Francisco",
State = "CA",
PostalCode = "94104",
Country = "US",
Latitude = "40.759211",
Longitude = "-73.984638",
County = "Santa Clara",
ContactName = "Elon Musk",
Salutation = "Mr",
PhoneNumber = "111-111-1111",
Fax = "122-111-1111",
Email = "elon@musk.com",
Website = "https://elonmusk.com",
Notes = "Address notes or delivery instructions.",
RowVersion = "1-12345",
},
},
PhoneNumbers = new List<PhoneNumber>() {
new PhoneNumber() {
Id = "12345",
CountryCode = "1",
AreaCode = "323",
Number = "111-111-1111",
Extension = "105",
Type = PhoneNumberType.Primary,
},
new PhoneNumber() {
Id = "12345",
CountryCode = "1",
AreaCode = "323",
Number = "111-111-1111",
Extension = "105",
Type = PhoneNumberType.Primary,
},
},
Emails = new List<Email>() {
new Email() {
Id = "123",
EmailValue = "elon@musk.com",
Type = EmailType.Primary,
},
new Email() {
Id = "123",
EmailValue = "elon@musk.com",
Type = EmailType.Primary,
},
},
PassThrough = new List<PassThroughBody>() {
new PassThroughBody() {
ServiceId = "<id>",
ExtendPaths = new List<ExtendPaths>() {
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
},
},
new PassThroughBody() {
ServiceId = "<id>",
ExtendPaths = new List<ExtendPaths>() {
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
},
},
new PassThroughBody() {
ServiceId = "<id>",
ExtendPaths = new List<ExtendPaths>() {
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
},
},
},
},
};
var res = await sdk.Crm.Users.CreateAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
CrmUsersAddRequest |
✔️ |
The request object to use for the request. |
CrmUsersAddResponse
| Error Type |
Status Code |
Content Type |
| ApideckUnifySdk.Models.Errors.BadRequestResponse |
400 |
application/json |
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse |
401 |
application/json |
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse |
402 |
application/json |
| ApideckUnifySdk.Models.Errors.NotFoundResponse |
404 |
application/json |
| ApideckUnifySdk.Models.Errors.UnprocessableResponse |
422 |
application/json |
| ApideckUnifySdk.Models.Errors.APIException |
4XX, 5XX |
*/* |
Get user
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
var sdk = new Apideck(
consumerId: "test-consumer",
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
apiKey: "<YOUR_BEARER_TOKEN_HERE>"
);
CrmUsersOneRequest req = new CrmUsersOneRequest() {
Id = "<id>",
ServiceId = "salesforce",
Fields = "id,updated_at",
};
var res = await sdk.Crm.Users.GetAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
CrmUsersOneRequest |
✔️ |
The request object to use for the request. |
CrmUsersOneResponse
| Error Type |
Status Code |
Content Type |
| ApideckUnifySdk.Models.Errors.BadRequestResponse |
400 |
application/json |
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse |
401 |
application/json |
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse |
402 |
application/json |
| ApideckUnifySdk.Models.Errors.NotFoundResponse |
404 |
application/json |
| ApideckUnifySdk.Models.Errors.UnprocessableResponse |
422 |
application/json |
| ApideckUnifySdk.Models.Errors.APIException |
4XX, 5XX |
*/* |
Update user
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
using System.Collections.Generic;
var sdk = new Apideck(
consumerId: "test-consumer",
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
apiKey: "<YOUR_BEARER_TOKEN_HERE>"
);
CrmUsersUpdateRequest req = new CrmUsersUpdateRequest() {
Id = "<id>",
ServiceId = "salesforce",
User = new UserInput() {
ParentId = "54321",
Username = "masterofcoin",
FirstName = "Elon",
LastName = "Musk",
Title = "CEO",
Division = "Europe",
CompanyName = "SpaceX",
EmployeeNumber = "123456-AB",
Description = "A description",
Image = "https://logo.clearbit.com/spacex.com?s=128",
Language = "EN",
Status = "active",
Password = "supersecretpassword",
Addresses = new List<Address>() {
new Address() {
Id = "123",
Type = ApideckUnifySdk.Models.Components.Type.Primary,
String = "25 Spring Street, Blackburn, VIC 3130",
Name = "HQ US",
Line1 = "Main street",
Line2 = "apt #",
Line3 = "Suite #",
Line4 = "delivery instructions",
StreetNumber = "25",
City = "San Francisco",
State = "CA",
PostalCode = "94104",
Country = "US",
Latitude = "40.759211",
Longitude = "-73.984638",
County = "Santa Clara",
ContactName = "Elon Musk",
Salutation = "Mr",
PhoneNumber = "111-111-1111",
Fax = "122-111-1111",
Email = "elon@musk.com",
Website = "https://elonmusk.com",
Notes = "Address notes or delivery instructions.",
RowVersion = "1-12345",
},
new Address() {
Id = "123",
Type = ApideckUnifySdk.Models.Components.Type.Primary,
String = "25 Spring Street, Blackburn, VIC 3130",
Name = "HQ US",
Line1 = "Main street",
Line2 = "apt #",
Line3 = "Suite #",
Line4 = "delivery instructions",
StreetNumber = "25",
City = "San Francisco",
State = "CA",
PostalCode = "94104",
Country = "US",
Latitude = "40.759211",
Longitude = "-73.984638",
County = "Santa Clara",
ContactName = "Elon Musk",
Salutation = "Mr",
PhoneNumber = "111-111-1111",
Fax = "122-111-1111",
Email = "elon@musk.com",
Website = "https://elonmusk.com",
Notes = "Address notes or delivery instructions.",
RowVersion = "1-12345",
},
},
PhoneNumbers = new List<PhoneNumber>() {
new PhoneNumber() {
Id = "12345",
CountryCode = "1",
AreaCode = "323",
Number = "111-111-1111",
Extension = "105",
Type = PhoneNumberType.Primary,
},
new PhoneNumber() {
Id = "12345",
CountryCode = "1",
AreaCode = "323",
Number = "111-111-1111",
Extension = "105",
Type = PhoneNumberType.Primary,
},
},
Emails = new List<Email>() {
new Email() {
Id = "123",
EmailValue = "elon@musk.com",
Type = EmailType.Primary,
},
new Email() {
Id = "123",
EmailValue = "elon@musk.com",
Type = EmailType.Primary,
},
},
PassThrough = new List<PassThroughBody>() {
new PassThroughBody() {
ServiceId = "<id>",
ExtendPaths = new List<ExtendPaths>() {
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
new ExtendPaths() {
Path = "$.nested.property",
Value = new Dictionary<string, object>() {
{ "TaxClassificationRef", new Dictionary<string, object>() {
{ "value", "EUC-99990201-V1-00020000" },
} },
},
},
},
},
},
},
};
var res = await sdk.Crm.Users.UpdateAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
CrmUsersUpdateRequest |
✔️ |
The request object to use for the request. |
CrmUsersUpdateResponse
| Error Type |
Status Code |
Content Type |
| ApideckUnifySdk.Models.Errors.BadRequestResponse |
400 |
application/json |
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse |
401 |
application/json |
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse |
402 |
application/json |
| ApideckUnifySdk.Models.Errors.NotFoundResponse |
404 |
application/json |
| ApideckUnifySdk.Models.Errors.UnprocessableResponse |
422 |
application/json |
| ApideckUnifySdk.Models.Errors.APIException |
4XX, 5XX |
*/* |
Delete user
using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
var sdk = new Apideck(
consumerId: "test-consumer",
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
apiKey: "<YOUR_BEARER_TOKEN_HERE>"
);
CrmUsersDeleteRequest req = new CrmUsersDeleteRequest() {
Id = "<id>",
ServiceId = "salesforce",
};
var res = await sdk.Crm.Users.DeleteAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
CrmUsersDeleteRequest |
✔️ |
The request object to use for the request. |
CrmUsersDeleteResponse
| Error Type |
Status Code |
Content Type |
| ApideckUnifySdk.Models.Errors.BadRequestResponse |
400 |
application/json |
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse |
401 |
application/json |
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse |
402 |
application/json |
| ApideckUnifySdk.Models.Errors.NotFoundResponse |
404 |
application/json |
| ApideckUnifySdk.Models.Errors.UnprocessableResponse |
422 |
application/json |
| ApideckUnifySdk.Models.Errors.APIException |
4XX, 5XX |
*/* |