You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mosparo also has an API method to get the statistical data for a project. You can use the method `getStatisticByDate` to get the statistical data. You can specify the range in seconds or a start date from which mosparo should return the statistical data. This method will return a `StatisticResult` object.
96
+
```php
97
+
/**
98
+
* @param int $range = 0 The range in seconds for which mosparo should return the statistical data (will be rounded up to a full day since mosparo v1.1)
99
+
* @param \DateTime $startDate = null The Start date from which on mosparo should return the statistical data (requires mosparo v1.1)
100
+
* @return \Mosparo\ApiClient\StatisticResult Returns a StatisticResult object with the response from mosparo
101
+
*
102
+
* @throws \Mosparo\ApiClient\Exception An error occurred while sending the request to mosparo.
@@ -116,4 +129,15 @@ Returns the verification status of one field.
116
129
Returns true, if there were verification issues.
117
130
118
131
#### getIssues(): array
119
-
Returns an array with all verification issues.
132
+
Returns an array with all verification issues.
133
+
134
+
### StatisticResult
135
+
136
+
#### getNumberOfValidSubmissions(): int
137
+
Returns the total number of valid submissions in the requested date range.
138
+
139
+
#### getNumberOfSpamSubmissions(): int
140
+
Returns the total number of spam submissions in the requested date range.
141
+
142
+
#### getNumbersByDate(): array
143
+
Returns an array with all statistical data for the requested time range. The date is the key in the array, while an array is set as a value. The array contains a key `numberOfValidSubmissions` with the number of valid submissions and a key `numberOfSpamSubmissions` with the number of spam submissions.
0 commit comments