You are here

public function OAuthRequest::to_url in OAuth 1.0 6.3

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

builds a url usable for a GET request

1 call to OAuthRequest::to_url()
OAuthRequest::__toString in lib/OAuth.php

File

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

Class

OAuthRequest

Code

public function to_url() {
  $post_data = $this
    ->to_postdata();
  $out = $this
    ->get_normalized_http_url();
  if ($post_data) {
    $out .= '?' . $post_data;
  }
  return $out;
}