Skip to content

Instantly share code, notes, and snippets.

@mlebkowski
Created February 27, 2013 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlebkowski/5047385 to your computer and use it in GitHub Desktop.
Save mlebkowski/5047385 to your computer and use it in GitHub Desktop.
<?php
$op = new OAuth('…', '…', OAUTH_SIG_METHOD_HMACSHA256, OAUTH_AUTH_TYPE_AUTHORIZATION);
$op->setToken('','');
$op->fetch('https://www.znanylekarz.pl/api?method=doctor.search&category_id=57&location=Warszawa');
$response = $op->getLastResponse();
$response = json_decode($response, true);
var_dump($response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment