You are here

function OAuthRequest::__construct in OAuth 1.0 6.3

Same name and namespace in other branches
  1. 6 OAuth.php \OAuthRequest::__construct()
  2. 7.3 lib/OAuth.php \OAuthRequest::__construct()

File

lib/OAuth.php, line 256
OAuth 1.0 server and client library.

Class

OAuthRequest

Code

function __construct($http_method, $http_url, $parameters = NULL) {
  $parameters = $parameters ? $parameters : array();
  $parameters = array_merge(OAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
  $this->parameters = $parameters;
  $this->http_method = $http_method;
  $this->http_url = $http_url;
}