This operation returns a list of AdultWork.com credit activity of a user between the dates you specify.
GET
/v1/CreditHistory/GetCreditsTurnover
Property | Type | Description |
---|---|---|
StartDate |
datetime | Required. The start date of the period you wish to get the data of. Format yyyy-mm-dd |
EndDate |
datetime | Required. The end date of the period you wish to get the data of. Format yyyy-mm-dd |
Parameters can only be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.
The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.
An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.
This endpoint requires the following scope:
Scope |
---|
account_credits_history |
https://api-sandbox.adultwork.com/v1/CreditHistory/GetCreditsTurnover?StartDate=2018-01-01&EndDate=2018-02-01
Authorization: bearer {your-access-token}
Property | Type | Description |
---|---|---|
aws:CreditsTurnover | The turnover data. |
The following example shows a shortened response from this method.
{
"Totals": {
"PrivateGallery": 5,
"MovieClips": 12.9,
"RentalMovies": 25.8,
"Webcam": 11,
"DirectCam": 5.99,
"DirectChat": 10.46,
"PhoneChat": 9,
"Sales": 40,
"Auctions": 10,
"Total": 130,15,
"ConfirmedEscortBookings": 0
},
"Details": [
{
"Date": "2018-01-01T00:00:00",
"DisplayOptions": {
"WasMOTD": false,
"WasAvailable": false,
"Featured": {
"Escort": false,
"Webcam": false,
"PhoneChat": false,
"SMSChat": false,
"OtherServices": false,
"Alternative": false,
"MovieClip": false,
"RentalMovie": false
}
},
"PrivateGallery": 5,
"MovieClips": 12.9,
"RentalMovies": 25.8,
"Webcam": 0,
"DirectCam": 0,
"DirectChat": 0,
"PhoneChat": 0,
"Sales": 0,
"Auctions": 0,
"Total": 43.7,
"ConfirmedEscortBookings": 0
},
{
"Date": "2018-01-28T00:00:00",
"DisplayOptions": {
"WasMOTD": false,
"WasAvailable": false,
"Featured": {
"Escort": false,
"Webcam": false,
"PhoneChat": false,
"SMSChat": false,
"OtherServices": false,
"Alternative": false,
"MovieClip": false,
"RentalMovie": false
}
},
"PrivateGallery": 0,
"MovieClips": 0,
"RentalMovies": 0,
"Webcam": 11,
"DirectCam": 5.99,
"DirectChat": 10.46,
"PhoneChat": 9,
"Sales": 40,
"Auctions": 10,
"Total": 86,45,
"ConfirmedEscortBookings": 0
}
]
}
<CreditsTurnoverResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Credits">
<Details>
<CreditsTurnoverResultDetails>
<Auctions>0</Auctions>
<ConfirmedEscortBookings>0</ConfirmedEscortBookings>
<Date>2018-01-01T00:00:00</Date>
<DirectCam>0</DirectCam>
<DirectChat>71.36</DirectChat>
<DisplayOptions>
<Featured>
<Alternative>false</Alternative>
<Escort>false</Escort>
<MovieClip>false</MovieClip>
<OtherServices>false</OtherServices>
<PhoneChat>false</PhoneChat>
<RentalMovie>false</RentalMovie>
<SMSChat>false</SMSChat>
<Webcam>false</Webcam>
</Featured>
<WasAvailable>false</WasAvailable>
<WasMOTD>false</WasMOTD>
</DisplayOptions>
<MovieClips>12.9</MovieClips>
<PhoneChat>0</PhoneChat>
<PrivateGallery>5</PrivateGallery>
<RentalMovies>25.8</RentalMovies>
<Sales>0</Sales>
<Total>43.7</Total>
<Webcam>0</Webcam>
</CreditsTurnoverResultDetails>
<CreditsTurnoverResultDetails>
<Auctions>10</Auctions>
<ConfirmedEscortBookings>0</ConfirmedEscortBookings>
<Date>2018-01-28T00:00:00</Date>
<DirectCam>5.99</DirectCam>
<DirectChat>10.46</DirectChat>
<DisplayOptions>
<Featured>
<Alternative>false</Alternative>
<Escort>false</Escort>
<MovieClip>false</MovieClip>
<OtherServices>false</OtherServices>
<PhoneChat>false</PhoneChat>
<RentalMovie>false</RentalMovie>
<SMSChat>false</SMSChat>
<Webcam>false</Webcam>
</Featured>
<WasAvailable>false</WasAvailable>
<WasMOTD>false</WasMOTD>
</DisplayOptions>
<MovieClips>0</MovieClips>
<PhoneChat>9</PhoneChat>
<PrivateGallery>0</PrivateGallery>
<RentalMovies>0</RentalMovies>
<Sales>40</Sales>
<Total>86.45</Total>
<Webcam>11</Webcam>
</CreditsTurnoverResultDetails>
</Details>
<Totals>
<Auctions>10</Auctions>
<ConfirmedEscortBookings>0</ConfirmedEscortBookings>
<DirectCam>5.99</DirectCam>
<DirectChat>10.46</DirectChat>
<MovieClips>12.9</MovieClips>
<PhoneChat>9</PhoneChat>
<PrivateGallery>5</PrivateGallery>
<RentalMovies>25.8</RentalMovies>
<Sales>40</Sales>
<Total>130.15</Total>
<Webcam>0</Webcam>
</Totals>
</CreditsTurnoverResult>