galen / PHP-Instagram-API

PHP 5.3+ wrapper for the Instagram API
338 stars 159 forks source link

Accessing data #41

Open fredylg opened 10 years ago

fredylg commented 10 years ago

Hi, I feel kind of stupid asking but I guess is worse not to leaner, I have installed the package on larvel and it seems to work fine but all data is protected , Ive try doing things like

$this->instagram = new Instagram\Instagram( $this->token ); $raw_data = $this->instagram->getTagMedia( $tag , array('count' => '100') ); $this->instagram->setData($raw_data);

but still Im not able to do json_encode( $this->instagram->getData() );

since everything is coming back as protected...

Im I missing something? what would be the right way to access the data?

Thanks for any help

fredylg commented 9 years ago

for anyone out there use Instagram\Collection\TagCollection;