Difference between revisions of "GetPersons"
Jump to navigation
Jump to search
(Created page with "{{Api_Method_Spec| Description=Returns a list of Person specified in the list ID send in the request. The result is default ordered by the title field. This method can be...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Api_Method_Spec| | {{Api_Method_Spec| | ||
Description=Returns a list of [[Person]] specified in the list ID send in the request. | Description=Returns a list of [[Person]] specified in the list ID send in the request. | ||
− | The result is | + | |
+ | The result is ordered by same id sort sent in the field. | ||
This method can be used by anonymous login or logged user. | This method can be used by anonymous login or logged user. | ||
Line 14: | Line 15: | ||
}} | }} | ||
{{Api_Parameter| | {{Api_Parameter| | ||
− | ParamName= | + | ParamName=personIds |
− | |ParamType=int | + | |ParamType=Array of int |
− | |ParamRequired= | + | |ParamRequired=required |
− | |ParamDescription= | + | |ParamDescription=Comma-separated list of ID's that wants to be returned. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
+ | |||
|Returns= | |Returns= | ||
Line 32: | Line 28: | ||
{ | { | ||
− | : <span style="color: #a11">" | + | : <span style="color: #a11">"StatusCode"</span>: 0, |
− | : <span style="color: #a11">" | + | : <span style="color: #a11">"Severity"</span>: 1, |
− | : <span style="color: #a11">" | + | : <span style="color: #a11">"StatusMessage"</span>: "OK", |
− | : <span style="color: #a11">" | + | : <span style="color: #a11">"Content"</span>: |
:: [ Array of [[Person]] object ] | :: [ Array of [[Person]] object ] | ||
} | } |
Latest revision as of 10:40, 15 February 2016
Description
Returns a list of Person specified in the list ID send in the request.
The result is ordered by same id sort sent in the field.
This method can be used by anonymous login or logged user.
Parameters
- token (String, required)
- A valid token for identifying the API session context. The token can be anonymous or logged.
- personIds (Array of int, required)
- Comma-separated list of ID's that wants to be returned.
Returns
Returns a JSON object containing an array of Person.
Example:
{
- "StatusCode": 0,
- "Severity": 1,
- "StatusMessage": "OK",
- "Content":
- [ Array of Person object ]
}
Exceptions
- None
Caching
This method is cached.
Known issues
- None
Version history
API Version Number | Change description | Changes author |
---|---|---|
1.0 | Initial method design | Harley Cabral |