This action may lead to changes in the database
Do you want to continue?
Data Explorer
Request Information
Log Partner Event
Parameters:
- partnerId
- eventCode
- propertyId
- testMode
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
partnerId |
Partner Id |
string |
Required |
eventCode |
Event Name |
string |
Required |
propertyId |
Four chars Prefix [BHIC (Community), BHIP (Plan), BHIS (Spec)], followed from the Property Id number |
string |
Required |
testMode | boolean |
Default value is False |
|
date |
Date to log |
date |
None. |
count |
Number of times that the event should be logged |
integer |
None. |
Response
Code Generator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
Assemblies required:
* System.Net.Http.Formatting
* System.Net.Http
* System.Threading.Tasks
* System.Net.Http.Headers
*/
public async Task<string> PostMethod()
{
var client = new HttpClient();
= Build();
HttpResponseMessage response = await client.PostAsJsonAsync("https://duda-api.newhomesource.com/api/v2/Log/PartnerEvent", );
if (response.IsSuccessStatusCode)
{
return response.Content.ReadAsStringAsync().Result;
} else {
return string.Empty;
}
}
public Build()
{
return new
{
testMode = false,
PartnerID = 1
Response Information
string
POST
api/v2/Log/PartnerEvent?partnerId={partnerId}&eventCode={eventCode}&propertyId={propertyId}&testMode={testMode}&date={date}&count={count}