$response = $foursquare->GetPrivate("users/self"); $user_data = json_decode($response); //print_r($user_data); echo 'Userid:'. $user_data->response->user->id'; echo 'FirstName:'.$user_data->response->user->firstName; echo 'LastName:'.$user_data->response->user->lastName; echo 'Gender:'.$user_data->response->user->gender; echo 'Relationship:'.$user_data->response->user->relationship; echo 'HomeCity:'.$user_data->response->user->homeCity; echo 'Email:'.$user_data->response->user->contact->email; echo 'Facebook Id:'.$user_data->response->user->contact->facebook;For More Information You can Refer : https://developer.foursquare.com/docs/
Thursday, 16 October 2014
FourSquare API integration with PHP website
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment