Yii Framework Forum: [EXTENSION] Bit.ly Extension - Yii Framework Forum

Jump to content

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

[EXTENSION] Bit.ly Extension Rate Topic: -----

#1 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 12 April 2010 - 03:19 AM

This is the support topic for the Bit.ly Yii Extension.

http://www.yiiframew...-url-shortener/
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#2 User is offline   russellfeeed 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 01-September 11

Posted 16 April 2013 - 11:47 AM

Hi

I had to modify VGBitly.php as follows

Before:
protected function simplexml2array($xml) 
	{
		if (get_class($xml) == 'SimpleXMLElement') 


After:
protected function simplexml2array($xml) 
	{
		if (is_object($xml) && get_class($xml) == 'SimpleXMLElement') 


As I was getting an error under PHP 5.3.10

get_class() expects parameter 1 to be object, string given

Thanks
Russell
0

#3 User is offline   logiczero 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 21-November 13

Posted 25 November 2013 - 02:56 PM

View PostVince., on 12 April 2010 - 03:19 AM, said:

This is the support topic for the Bit.ly Yii Extension.

http://www.yiiframew...-url-shortener/


It doesn't appear that this extension supports OAuth, only a username and an API key. bitly doesn't just give you an API key when you sign up now, you have to dig to find it. To do so:
Go to Account >> Settings
Click the 'Advanced' tab
Under the 'Legacy API Key' section, click the 'Show legacy API key' link
Fields will pop down with your username and API key; you shouldn't need to reset the key.

I wish I could post this on the actual extension page, but I'm "too new" :(
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