<?php
require_once "blesta_api.php";
$user = "apiuser";
$key = "apikey";
$url = "https://systemurl/api/";
$api = new BlestaApi($url, $user, $key);
$data = array(
'vars' => array(
'username' => "example@example.com",
'password' => "examplepassword"
)
);
$response = $api->get("users", "auth", $data, "any");
print_r($response->response());
print_r($response->errors());
?>
This is very new to me so would appreciate some assistance following the auth source doc.
Keep getting "Internal error: Failed to retrieve the default valuestdClass Object ( [error] => stdClass Object ( [message] => An unexpected error occured. [response] => Internal error: Failed to retrieve the default value ) )"