[EXTENSION] Bit.ly Extension

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

http://www.yiiframework.com/extension/bitly-url-shortener/

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

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” :(