public InstagramFeed GetFeed() { try { var url = String.Format(instagramApiURI, this.InstagramUserId, this.InstragramToken); var responseMessage = client.GetAsync(url).Result; var body = responseMessage.Content.ReadAsStringAsync().Result; var jsonData = InstagramFeed.FromJson(body); return(jsonData); } catch (Exception e) { throw e; } }
public static string ToJson(this InstagramFeed self) { return(JsonConvert.SerializeObject(self, Converter.Settings)); }