Hi I have a problem where I just can't figure out how to implement a construct function on this php that I have here:
class zendesk{
private $client;
function __construct() {
public function sync_organisations() {
$loader = require LIBPATH . 'vendor/autoload.php';
$loader->setPsr4("GuzzleHttp\\", APPPATH . '../vendor/guzzlehttp/guzzle/src/');
$subdomain = "Name";
$username = "[email protected]"; // replace this with your registered email
$token = "token"; // replace this with your token
$client = new ZendeskAPI($subdomain);
$client->setAuth('basic', ['username' => $username, 'token' => $token]);}
Could somebody show me how to implement a public function __construct() {?
Thanks in advance for the help!
public function __construct(){}but I doubt this is (all) you are asking for. Maybe add how you want to use this classzendesk!?