Planfix API user.actionsAdded
From Planfix
Allows you to get the number of actions added by the user over a specified period. Request format:
<?xml version="1.0" encoding="UTF-8"?>
<request method="user.actionsAdded">
<account></account>
<sid></sid>
<user>
<id></id>
</user>
<period>
<begin></begin>
<end></end>
</period>
<actionType></actionType>
<signature></signature>
</request>| Name | Type | Value | Note |
|---|---|---|---|
| user.id | int | user identifier | |
| period.begin | DateTime | start date of the period | |
| period.end | DateTime | end date of the period | |
| actionType | enum | action type, optional parameter | see the list of possible values in the action types section |
| signature | string(32) | signature |
The response will contain the number of actions of the specified type (or any type), added by the user during a specified period.
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<count></count>
</response>| Namе | Type | Value | Note |
|---|---|---|---|
| count | int | number of actions |
Otherwise, a response with an error will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>