Planfix API user.actionsAdded: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "Allows you to get the number of actions added by the user over a specified period. Request format: <source lang="xml"> <?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> </source> {| class="wikitable" style="margin-top: 1em; width:100% " !width="150"|Name !...")
 
 
Line 57: Line 57:
== Go To ==
== Go To ==
*[[Planfix API:Employees]]
*[[Planfix API:Employees]]
*[[Error codes]]
*[[Error codes XML API v1|Error codes]]
*[[List of functions]]
*[[List of functions]]

Latest revision as of 09:29, 6 March 2024

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>


Go To