jd39
-
Posts
3 -
Joined
-
Last visited
Posts posted by jd39
-
-
<?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 ) )"
-
What am I trying to achieve: API call and response to confirm if a Blesta customer Username/Password is valid or invalid
Is this possible?
User Logins - Adding Manual Entries via API
in Support
Posted
Hi,
Blesta has a user login record in:
Admin > Tools > Logs > User Logins
We use an external app that authenticates Blesta clients via the users API.
I'd also like to record their login attempts to Admin > Tools > Logs > User Logins. Would this be possible either by API or a direct database insert?