private function getOauthParams($nonce)
    {
        $params = [
            'oauth_nonce'            => $nonce,
            'oauth_timestamp'        => time(),
        ];

        if (isset($this->oauth_token)) {
            $params['oauth_token'] = $this->oauth_token;
        }

        $params = $this->oauthConfig->toArray($params);

        return $params;
    }
private function getOauthParams($nonce)
    {
        $params = [
            'oauth_nonce'            => $nonce,
            'oauth_timestamp'        => time(),
        ];

        if (isset($this->oauth_token)) {
            $params['oauth_token'] = $this->oauth_token;
        }

        $params = $this->oauthConfig->toArray($params);

        return $params;
    }
private function getOauthParams ( $ nonce ) { $ params = [ 'oauth_nonce' => $ nonce , 'oauth_timestamp' => time ( ) , ] ; if ( isset ( $ this -> oauth_token ) ) { $ params [ 'oauth_token' ] = $ this -> oauth_token ; } $ params = $ this -> oauthConfig -> toArray ( $ params ) ; return $ params ; }
Get the oauth parameters as named by the oauth spec

@param string     $nonce  Unique nonce
@param array      $config Options of the plugin.

@return array
Get the oauth parameters as named by the oauth spec