Function returns all custom columns and their values for the given person
https://rest.crmango.com/api/GetPersonOwnCols
Bearer
varchar
Auth token
Function returns all custom columns and their values for the given person.
id_own_col
integer
Own column id
data_type
varchar
Data type
parameters
varchar
Available parameters
name
varchar
Input name
data
varchar
Data in input
curl --request POST \
--url 'https://rest.crmango.com/api/GetPersonOwnCols' \
--header 'Authorization: Bearer auth_token' \
--header 'Content-Type: application/json' \
--data '{
"person_id": "integer"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/GetPersonOwnCols',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"person_id": "integer"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer auth_token',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
echo $response;
var data = JSON.stringify({
"person_id": "integer"
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://rest.crmango.com/api/GetPersonOwnCols");
xhr.setRequestHeader("Authorization", "Bearer auth_token");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send(data);
import requests
import json
url = "https://rest.crmango.com/api/GetPersonOwnCols"
payload = json.dumps({
"person_id": "integer"
})
headers = {
'Authorization': 'Bearer auth_token',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
{
"code": 200,
"response": {
"1": {
"id_own_col": 1,
"data_type": "text",
"parameters": "",
"name": "Test input",
"data": "This is text"
},
"2": {
"id_own_col": 2,
"data_type": "date",
"parameters": "",
"name": "Date input",
"data": "2022-07-13"
},
"3": {
"id_own_col": 3,
"data_type": "listbox",
"parameters": "Apple;Orange;Pear",
"name": "Fruits",
"data": "Orange"
},
"5": {
"id_own_col": 5,
"data_type": "listbox",
"parameters": "XLS;PDF;CSV;HTML",
"name": "Formats",
"data": "CSV"
},
"7": {
"id_own_col": 7,
"data_type": "checkbox",
"parameters": "",
"name": "Allowed?",
"data": 1
}
}
}
{
"code": "int",
"message": "string"
}