I need to connect to Foursquare's API and grab the top 5 venues and display them and their data. I was given two files, one is the base class for handling everything that contacts the Foursquare server, and the other handles data returned about Foursquare venues.
It's the connection to Foursquare's server that I'm having trouble with. I haven't been able to find any tutorials or anything that look close to what I'm doing or that provide enough information for a beginner to work from, so I was wondering if anyone could offer some help.
I'm positive that I'll be able to do this once I get connected to Foursquare's server.
Here's that first file for the connection:
<?php
class Foursquare {
public $oauth;
public $base_url="https://api.foursquare.com/v2";
function __construct($oauth) {
}
public function fetchRemote($url,$params) {
}
}
?>