title: How to make a Foursquare connection with their API?
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>I'm positive that I'll be able to do this once I get connected to Foursquare's server.</p>
  
  <p>Here's that first file for the connection:</p>
  
  <pre><code>&lt;?php
  class Foursquare {
      public $oauth;
      public $base_url="https://api.foursquare.com/v2";
  
      function __construct($oauth) {
  
      }
  
      public function fetchRemote($url,$params) {
  
      }
  
  }
  ?&gt;
  </code></pre>