?
| Current Path : /home/webyoo/www/backup/allback/docteur-site/cv/sym/a/backup/allback/test_become/ |
| Current File : /home/webyoo/www/backup/allback/docteur-site/cv/sym/a/backup/allback/test_become/Users.php |
<?php
class Users {
function __construct() {}
public function getUsers(){
$postRequest = array(
'key' => 'become',
'password' => 'become-2019'
);
$cURLConnection = curl_init('http://become.weblife.co.il/api/users.php');
curl_setopt($cURLConnection, CURLOPT_POSTFIELDS, $postRequest);
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
$apiResponse = curl_exec($cURLConnection);
curl_close($cURLConnection);
return json_decode($apiResponse);
}
}
?>