public function api($sProvider, $call = '')
    {
        if (!$this->isConnectedWith($sProvider)) {
            $this->setError('Not connected with provider "' . $sProvider . '"');
            return false;
        }

        try {

            $sProvider = $this->getProviderClass($sProvider);
            $oProvider = $this->oHybridAuth->getAdapter($sProvider);
            return $oProvider->api()->api($call);

        } catch (\Exception $e) {
            $this->setError('Provider Error: ' . $e->getMessage());
            return false;
        }
    }
public function api($sProvider, $call = '')
    {
        if (!$this->isConnectedWith($sProvider)) {
            $this->setError('Not connected with provider "' . $sProvider . '"');
            return false;
        }

        try {

            $sProvider = $this->getProviderClass($sProvider);
            $oProvider = $this->oHybridAuth->getAdapter($sProvider);
            return $oProvider->api()->api($call);

        } catch (\Exception $e) {
            $this->setError('Provider Error: ' . $e->getMessage());
            return false;
        }
    }
public function api ( $ sProvider , $ call = '' ) { if ( ! $ this -> isConnectedWith ( $ sProvider ) ) { $ this -> setError ( 'Not connected with provider "' . $ sProvider . '"' ) ; return false ; } try { $ sProvider = $ this -> getProviderClass ( $ sProvider ) ; $ oProvider = $ this -> oHybridAuth -> getAdapter ( $ sProvider ) ; return $ oProvider -> api ( ) -> api ( $ call ) ; } catch ( \ Exception $ e ) { $ this -> setError ( 'Provider Error: ' . $ e -> getMessage ( ) ) ; return false ; } }
Abstraction to a provider's API

@param  string $sProvider The provider whose API you wish to call
@param  string $call      The API call

@return mixed
Abstraction to a provider s API