POST api/Stats/Total_Connexion_During_Period_For_Company

Get percentage of plateform distribution for all posts of target Company, if no company is target => get Caller Company, if no date From set => From Date = creationdate of target company, if no date To set => To Date = DateTime.Now, if no postTypeId set => PostTypeId = News

Request Information

URI Parameters

None.

Body Parameters

StatCollectorData
NameDescriptionTypeAdditional information
FromDate

Starting date of period to get the stats

date

None.

ToDate

Ending date of period to get the stats

date

None.

TargetCompanyId

Target Company Id to get the stats

integer

None.

PostTypeId

Target postType Id to get the stats

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "FromDate": "2025-08-14T03:22:36.3177045+00:00",
  "ToDate": "2025-08-14T03:22:36.3177045+00:00",
  "TargetCompanyId": 1,
  "PostTypeId": 1
}

application/xml, text/xml

Sample:
<StatCollectorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.StatClasses">
  <FromDate>2025-08-14T03:22:36.3177045+00:00</FromDate>
  <PostTypeId>1</PostTypeId>
  <TargetCompanyId>1</TargetCompanyId>
  <ToDate>2025-08-14T03:22:36.3177045+00:00</ToDate>
</StatCollectorData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StatCollectorData'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.