public function InstapageCmsPluginAPIModel::authorise in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/models/InstapageCmsPluginAPIModel.php \InstapageCmsPluginAPIModel::authorise()
Authorizes the user based on email and password.
@uses InstapageCmsPluginAPIModel::apiCall() to communicate with Instapage app.
Parameters
string $email Email address.:
string password Password.:
Return value
object App response.
File
- core/
models/ InstapageCmsPluginAPIModel.php, line 103
Class
- InstapageCmsPluginAPIModel
- Class responsible for communication with Instapage app via API.
Code
public function authorise($email, $password) {
$data = array(
'email' => $email,
'password' => $password,
);
$response = $this
->apiCall('page', $data);
return $response;
}