moisty70
(Moisesalonso)
October 18, 2012, 8:06am
1
Hi all,
I’ve been trying to integrate my yii website with twitter using the extensions with no success.
One extension says "CPSTwitterApi"."apiSecretKey" is not defined.
Others do not explain the pre-intallation needs clearly.
I think twitter is very important for a website
What are you using to integrate with yii?
_uJJwAL
(_uJJwAL_)
October 18, 2012, 8:54am
2
Did you define the value of apiSecretKey while configuring?
// Twitter API
'twitter' => array(
'class' => 'app.components.twitter.CPSTwitterApi',
'apiKey' => 'your_consumer_key',
'apiSecretKey' => 'your_consumer_secret',
'apiBaseUrl' => 'http://twitter.com',
'callbackUrl' => 'your_callback_url',
'format' => 'array',
),
moisty70
(Moisesalonso)
October 18, 2012, 11:16am
3
yes, I did.
I get the error in Spanish, don’t know how is shown in english. but anyway, the error is about the class property not the value. I mean, the class does not have a property called apiSecretKey, if I comment that line then I get the same error but with the property ‘format’
moisty70
(Moisesalonso)
October 18, 2012, 1:08pm
4
here dubayou says he had to add ‘apiSecretKey’ => ‘string:’,
to CPSApiBehavior.php to get the secret key to comein from config/main.php
How can I do that? open CPSApiBehavior.php and then, what?
PD: What Im sure is that there is no apiSecretKey declaration in the extension classes