Contact Read Method
The Contact API provides access to Contact.
Contact Read allows the user to acquire the data of the Contact that meets the specified conditions.
GET |
https://{Request Host}/v1/Contact?partition=[value]&count=[value]&start=[value]&field=[value,...]&condition=[field=value,...]&itemstate=[value]&keywords=[value,...]&order=[value,...] |
---|
Scope
The access privilege required for Contact Read is as follow:
contact_r, client_r, user_r, option_r
Input Variables
When using the GET or POST Method, the parameter of the HTTP Header must be specified with a value. For details, see HTTP Header.
The following shows the Parameters that can be specified:
Each Parameter is an AND condition for search.
必須 | Parameter | Definition |
---|---|---|
● | partition |
Specify a numerical value for the Partition Id. To check the Partition Id that can be accessed, acquire the information using Partition Read. |
ー | count |
Specify the number of records of data to acquire. The range of the values that can be specified is between 1 and 200. If nothing is specified, 10 is assumed to be specified. |
ー | start | The start index of the data to acquire. Specify a numerical value of 0 or larger. |
ー | field |
Specify items to output. If nothing is specified, Contact.P_Id is assumed to be specified. |
ー | condition |
Specify the search conditions. For information on the Fields that can be specified, see Contact - Field List.
Note that when “deleted” or “all” is specified for the itemstate, the following three types of Fields and conditions can be specified for “condition.”
|
ー | itemstate |
Specify the status of data to acquire.
※If "all" or "deleted" is specified, the search condition Contact.P_UpdateDate is within 90 days is automatically added. (If "existing" is specified for itemstate or none is specified, the search criteria above will not be added.) ※When “deleted” or “all” is specified, the conditions that can be specified for “condition” are limited. |
ー | keywords |
Specify the keywords for the conditions for the data to acquire. For details, see Read API - Parameter > Read - Keywords. |
ー | order |
Specify the sorting order of the data when output. If nothing is specified, Contact.P_Id:asc is assumed to be specified. |
Result Values
When processing is successfully completed, “200” is returned to the Response Header as the HTTP status, and the value that is described in Output Values can be acquired.
If an error occurs, a value other than 200 is returned.
Output Values
The output value can be acquired in the XML format.
Tag | Definition |
---|---|
Contact |
Route element including the Recruiter that meets the conditions. The number of acquired data is set for Count, and the index of the acquired data is set for Start. Start is the index beginning with 0. Lists every Contact as the Item elements. |
Total |
The attribute of Contact. Indicates the total number of records that can be acquired under the specified search conditions. |
Count |
The attribute of Contact. Indicates the number of records of the data acquired this time. |
Start |
The attribute of Contact. Indicates the start index of the data acquired this time. |
Code | This is the code that represents the processing result. For details, see Result Code List. |
Item |
Indicates one piece of Contact information. Includes a Field element. |
Field |
Stores the value of the specified item. |
Contact Read Sample
※This sample code shown below is not encoded. In the case of an actual Request, encoding/decoding may be necessary depending on the content.
The following sample uses Contact Read to acquire the contact ID, contact name and person who updates the data under the condition that the keyword = test.
Input Parameter https://{Request Host}/v1/contact?partition=999999&field=Contact.P_Id,Contact.P_Position,Contact.P_UpdatedBy(User.P_Id,User.P_Name)&keywords=test |
Output XML <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |