Planfix API analitic.getGroupList: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "Запрос на получение списка групп аналитик имеет следующий вид: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="analitic.getGroupList"> <account></account> <sid></sid> <signature></signature> </request> </source> {| class="wikitable" style="margin-top: 1em; width:100% " !width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note |- |account|| string || the account on which...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Запрос на получение списка групп аналитик имеет следующий вид:
The request to get the list of data tag groups looks like this:
<source lang="xml">
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
Line 38: Line 38:
</source>
</source>
{| class="wikitable" style="margin-top: 1em; width:100% "
{| class="wikitable" style="margin-top: 1em; width:100% "
!width="150"|Название !!width="200"| Тип !!width="50%"| Значение !! Примечание
!width="150"|Name !!width="200"| Type !!width="50%"| Value !! Note
|-
|-
|'''analiticGroups''' ||int ||list of groups ||
|'''analiticGroups''' ||int ||list of groups ||
Line 46: Line 46:
|'''analiticGroups''' totalCount ||int ||total number of groups in the list ||
|'''analiticGroups''' totalCount ||int ||total number of groups in the list ||
|-
|-
|group || || группа ||
|group || || group ||
|-
|-
|group.id ||int ||group identifier  ||
|group.id ||int ||group identifier  ||
Line 65: Line 65:
== Go To ==
== Go To ==
*[[Planfix API:Data tags]]
*[[Planfix API:Data tags]]
*[[Error codes]]
*[[Error codes XML API v1|Error codes]]
*[[List of functions]]
*[[List of functions]]

Latest revision as of 09:26, 6 March 2024

The request to get the list of data tag groups looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<request method="analitic.getGroupList">
    <account></account>
    <sid></sid>
    <signature></signature>
</request>
Name Type Value Note
account string the account on which the request is executed
sid string(32) session key issued as a result of passing authentication
signature string(32) package signature

The response, when the request is successfully executed:

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
    <analiticGroups count="count" totalCount="totalCount">
        <group>
            <id></id>
            <name></name>
        </group>
        <group>
            <id></id>
            <name></name>
        </group>
        <!-- ... -->
    </analiticGroups>
</response>
Name Type Value Note
analiticGroups int list of groups
analiticGroups count int number of groups in the lis
analiticGroups totalCount int total number of groups in the list
group group
group.id int group identifier
group.name string group name

Otherwise, a response with an error will be returned:

<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
  <code></code>
</response>


Go To