Access token
curl --request POST \
--url 'https://api.inevent.com/?action=person.signIn&username=YOUR_USERNAME_HERE' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data password=YOUR_PASSWORD_HERE<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inevent.com/?action=person.signIn&username=YOUR_USERNAME_HERE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "password=YOUR_PASSWORD_HERE",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"count": 1,
"data": [
{
"personID": "1",
"firstName": "Mauricio",
"lastName": "Giordano",
"name": "Mauricio Giordano",
"username": "[email protected]",
"email": "[email protected]",
"image": "",
"timezone": "",
"telephone": "",
"facebookID": "",
"linkedInID": "",
"twitterID": "",
"date": "1593719050",
"tokenID": "YOUR_TOKEN_HERE",
"scope": "system",
"targetID": "0"
}
]
}Last updated