I'm just installed a google auth SDK. I want to apply it in CodeIgniter library.
Here is my library
<?php
class Chatlibrary{
function linkauth(){
$customConfig = (object) array(
'clientID' => 'myIdGoogle',
'clientSecret' => 'MySecretId',
'redirectUri' => 'MyRedirectUri',
'developerKey' => ''
);
require_once 'autoload.php';
$google = new rapidweb\googlecontacts\helpers\GoogleHelper;
$client = GoogleHelper::getClient($customConfig);
$authUrl = GoogleHelper::getAuthUrl($client);
return $authUrl;
}
I just want to call rapidweb\googlecontacts\helpers\GoogleHelper
correctly.
My code above will show an error
"Message: Cannot instantiate abstract class rapidweb\googlecontacts\helpers\GoogleHelper".
Anyone can help me??