_defaultHeader['Authorization'] = "Bearer {$tokenDetails->access_token}"; $this->_defaultHeader['clientCustomerId'] = $customerId; $this->_licenseKey = $licenseKey; } public function getGclidInfo() { $data = [ 'header' => $this->_defaultHeader, 'licenseKey' => $this->_licenseKey, 'isAuthorization' => false, ]; return HttpHelper::post('https://api.bitpress.pro/getGoogleAdData', $data); } public function authenticateGoogleAdword() { $data = [ 'header' => $this->_defaultHeader, 'licenseKey' => $this->_licenseKey, 'isAuthorization' => true, ]; return HttpHelper::post('https://api.bitpress.pro/getGoogleAdData', $data); } }