Advertisement
MattRichardson

Foursquare API Example

Jan 15th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2. $url = "https://api.foursquare.com/v2/users/8124?oauth_token=OAUTH_TOKEN_HERE&v=20120107";
  3. $str = file_get_contents($url);
  4. $val = json_decode($str);
  5. echo $val->response->user->scores->recent;
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement