public static System.Collections.ArrayList QueryUser(string clientID, string userID, string url = "")
 {
     string jsonString;
     if (Operators.CompareString(url, "", false) == 0)
     {
         jsonString = JSONHelper.Get(string.Format("https://api.instagram.com/v1/users/{0}/media/recent/?client_id={1}", userID, clientID));
     }
     else
     {
         jsonString = JSONHelper.Get(string.Format(url, new object[0]));
     }
     System.Collections.Generic.Dictionary<string, object> dictionary = JSONHelper.DeserializeToDictionary(jsonString);
     System.Collections.ArrayList arrayList = (System.Collections.ArrayList)dictionary["data"];
     if (dictionary.ContainsKey("pagination"))
     {
         System.Collections.Generic.Dictionary<string, object> dictionary2 = (System.Collections.Generic.Dictionary<string, object>)dictionary["pagination"];
         if (dictionary2.ContainsKey("next_url"))
         {
             string url2 = Conversions.ToString(dictionary2["next_url"]);
             arrayList.AddRange(JSONHelper.Instagram.User.QueryUser("", "", url2));
         }
     }
     return arrayList;
 }
 public static System.Collections.Generic.Dictionary<string, object> GetLocation(string ipAddress)
 {
     string jsonString = JSONHelper.Get(string.Format("http://freegeoip.net/json/{0}", ipAddress));
     return JSONHelper.DeserializeToDictionary(jsonString);
 }
 public static System.Collections.ArrayList QueryAPI(string parameters)
 {
     string jsonString = JSONHelper.Get(string.Format("https://maps.googleapis.com/maps/api/geocode/json?{0}&sensor=false", parameters));
     System.Collections.Generic.Dictionary<string, object> dictionary = JSONHelper.DeserializeToDictionary(jsonString);
     return (System.Collections.ArrayList)dictionary["results"];
 }
 public static System.Collections.ArrayList QueryUserId(string clientID, string userName)
 {
     string jsonString = JSONHelper.Get(string.Format("https://api.instagram.com/v1/users/search?q={0}&client_id={1}", userName, clientID));
     System.Collections.Generic.Dictionary<string, object> dictionary = JSONHelper.DeserializeToDictionary(jsonString);
     return (System.Collections.ArrayList)dictionary["data"];
 }
 public static System.Collections.Generic.Dictionary<string, object> QueryAPI(string parameters)
 {
     string jsonString = JSONHelper.Post("https://www.googleapis.com/urlshortener/v1/url", parameters);
     return JSONHelper.DeserializeToDictionary(jsonString);
 }