Jump to content

jd39

Members
  • Posts

    3
  • Joined

  • Last visited

jd39's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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?
  2. <?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 ) )"
  3. 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?
×
×
  • Create New...