oauth_urlencode
OAuth::__construct
OAuth
PHP Manual

# The OAuth class

## Introduction

The OAuth extension provides a simple interface to interact with data providers using the OAuth HTTP specification to protect private resources.

## Class synopsis

OAuth
OAuth {
/* Methods */
OAuth::__construct ( string `$consumer_key` , string `$consumer_secret` [, string `$signature_method` [, string `$auth_type` ]] )
public void OAuth::fetch ( string `$protected_resource_url` [, array `&$extra_parameters` ] )
public array OAuth::getAccessToken ( string `$access_token_url` [, string `$auth_session_handle` ] )
public string OAuth::getLastResponse ( void )
public array OAuth::getLastResponseInfo ( void )
public array OAuth::getRequestToken ( string `$request_token_url` )
public bool OAuth::setAuthType ( string `$auth_type` )
public bool OAuth::setNonce ( string `$nonce` )
public bool OAuth::setToken ( string `$token` , string `$token_secret` )
public bool OAuth::setVersion ( string `$version` )
}

## Table of Contents

- OAuth::__construct — Create a new OAuth object
- OAuth::fetch — Fetch an OAuth protected resource
- OAuth::getAccessToken — The getAccessToken purpose
- OAuth::getLastResponse — Get the last response
- OAuth::getLastResponseInfo — Get HTTP information about the last response
- OAuth::getRequestToken — Fetch a request token
- OAuth::setAuthType — The setAuthType purpose
- OAuth::setNonce — Set the nonce for subsequent requests
- OAuth::setToken — Sets the token and secret
- OAuth::setVersion — Set the OAuth version

oauth_urlencode
OAuth::__construct
OAuth
PHP Manual