Function returns custom columns for the given activity
https://rest.crmango.com/api/GetOwnActivity
Bearer
varchar
Auth token
Function returns custom columns for the given activity
id_activity
integer
Activity id
id_own_activity
integer
Own activity id
id_input
integer
Input id
data_type
varchar
Data type
data
varchar
Data in input
curl --request POST \
--url 'https://rest.crmango.com/api/GetOwnActivity' \
--header 'Authorization: Bearer auth_token' \
--header 'Content-Type: application/json' \
--data '{
"activity_id": "integer"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/GetOwnActivity',
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 => '{
"activity_id": "integer"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer auth_token',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
echo $response;
var data = JSON.stringify({
"activity_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/GetOwnActivity");
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/GetOwnActivity"
payload = json.dumps({
"activity_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": [
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 1,
"data_type": "text",
"data": "Something"
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 30,
"data_type": "text",
"data": "Mango"
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 32,
"data_type": "text",
"data": "CRM"
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 4,
"data_type": "checkbox",
"data": 0
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 34,
"data_type": "color",
"data": "#8e5252"
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 25,
"data_type": "signature",
"data": ".\/upload\/activities\/2323256df528_25_3_sig.png"
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 37,
"data_type": "checkbox",
"data": 1
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 8,
"data_type": "listbox",
"data": 5
},
{
"id_activity": 2119,
"id_own_activity": 1,
"id_input": 39,
"data_type": "checkbox",
"data": 1
}
]
}
{
"code": "int",
"message": "string"
}