Yii Framework Forum: Add third party class / Adwords - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add third party class / Adwords Rate Topic: -----

#1 User is offline   ludo3389 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 11-January 11

Posted 01 November 2017 - 06:06 AM

Hi everybody,

I would like to use a third party class in projet in yii 1.1.19. (Cf url to download the library / api adwords)

URL of the library : http://www.1check.co...ads-php-lib.zip


for example, In my controller, i have to use a function (cf call below). This function is in googleads-php-lib\vendor\google\auth\src

$oauth2 = new OAuth2([
'authorizationUri' => Yii::app()->params->Adwords_authorizationUri,
'tokenCredentialUri' => Yii::app()->params->Adwords_tokenCredentialUri,
'redirectUri' => Yii::app()->params->Adwords_redirectURI,
'clientId' => Yii::app()->params->Adwords_client_id,
'clientSecret' => Yii::app()->params->Adwords_client_secret_key,
'scope' => Yii::app()->params->Adwords_scope,
]);

i tried to use alias but always i have many errors like that : Fatal error: Interface 'Google\Auth\FetchAuthTokenInterface' not found in etc...

I tried to include vendors like that : require_once googleads-php-lib/vendor/autoload.php

but nothing...

I don't know how to use this library with yii 1

anyone can help me ?

many thanks

Ludo
0

#2 User is offline   Arockia Johnson SR 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 183
  • Joined: 25-June 13
  • Location:Singapore

Posted 09 November 2017 - 04:57 AM

Hi,

This link may help you

http://www.yiiframew...ion.integration
மகிழ்ச்சியாக குறியிடுங்கள்!..... Happy Coding!.....


Thanks & Regards,
ஜான்சன் ( Arockia Johnson SR )
www.arojohnson.tk

Hit (+) button If my replies really helped you!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users