Ejemplo n.º 1
0
 public static function getInstagramObject($params)
 {
     if (!self::isSettingsEntered($params)) {
         JError::RaiseNotice('0', JText::_('MOD_INSTAGALLERY_ERROR_MISS_SETTINGS'));
     }
     $clientID = $params->get('client_id');
     $clientSecret = $params->get('client_secret');
     $accessToken = $params->get('access_token');
     $redirec_uri = $params->get('redirect_uri');
     $config = array('redirectURI' => $redirec_uri);
     $instagram = new jInstaClass($clientID, $clientSecret, '', $accessToken, $config);
     return $instagram;
 }