예제 #1
0
 /**
  * Return array of recent checkins to foursquare
  * @param integer|null $id
  * @param integer $limit
  * @return type
  */
 public function getRecentCheckins($id = null, $params = array(), $requestOpts = array())
 {
     $params = array_merge($params, array('limit' => 10));
     if (null === $id) {
         if (null === parent::getAuthClientId()) {
             new \Exception('You must supply a valid user id either via a config file or in the method call.');
         }
         return $this->get('users/' . parent::getAuthClientId() . '/checkins', $params, $requestOpts);
     }
     return $this->get('users/' . $id . '/checkins', $params, $requestOpts);
 }