$key, 'consumer_secret' => $secret); OAuthStore::instance("2Leg", $options); $method = "GET"; $params = null; try { // Obtain a request object for the request we want to make $request = new OAuthRequester($url, $method, $params); // Sign the request, perform a curl request and return the results, // throws OAuthException2 exception on an error // $result is an array of the form: array ('code'=>int, 'headers'=>array(), 'body'=>string) $result = $request->doRequest(); $response = $result['body']; if ($response != 'oauth_token=requestkey&oauth_token_secret=requestsecret') { echo 'Error! $response ' . $response; } else { } var_dump($response); } catch(OAuthException2 $e) { echo "Exception" . $e->getMessage(); } ?>