JamesChevalier/CodeIgniter-Instagram-Library — Issue #1: getUserRecent Function no longer works properly
Author: JamesChevalier
Created: 2011-12-22 01:18:19+00:00
State: open

The URL being used is 'https://api.instagram.com/v1/users/%s/media/recent/?access_token=%s&max_id=%d&min_id=%d&count=%d&max_timestamp=%d&min_timestamp=%d'

The function takes variables ($user_id, $max_id = null, $min_id = null, $count = null, $max_timestamp = null, $min_timestamp = null)

If the variables aren't passed, then no data is returned (but no error is presented). This is because the request URL is built as follows, which returns 0 results:
https://api.instagram.com/v1/users/self/media/recent/?access_token=TOKEN&max_id=0&min_id=0&count=0&max_timestamp=0&min_timestamp=0

The function needs to be rebuilt so that if a variable is not passed, then that piece of the URL is not added on.