public List <Pins> GetBoardsPin(string boardId, AccessDetails Token)
        {
            try
            {
                List <Pins> pins = new List <Pins>();

                var request = new RestRequest("/v1/boards/" + boardId + "/pins/", Method.GET);
                request.AddParameter("access_token", Token.AccessToken);
                request.AddParameter("fields", "link,id,note,url,image,creator");

                var response = WebServiceHelper.WebRequest(request, ApiURL);
                JsonDeserializer deserial = new JsonDeserializer();
                PinterestPin     result   = deserial.Deserialize <PinterestPin>(response);
                foreach (var item in result.data)
                {
                    pins.Add(new Pins {
                        id = item.id, creator = item.creator, image = item.image, note = item.note, url = item.url
                    });
                }

                if (result.page.cursor != null)
                {
                    while (result.page.cursor == null)
                    {
                        request.AddParameter("cursor", result.page.cursor);
                        response = WebServiceHelper.WebRequest(request, ApiURL);
                        result   = deserial.Deserialize <PinterestPin>(response);
                        foreach (var item in result.data)
                        {
                            pins.Add(new Pins {
                                id = item.id, creator = item.creator, image = item.image, note = item.note, url = item.url
                            });
                        }
                    }
                }

                return(pins);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public Pins GetUserRecentPin(AccessDetails Token)
        {
            try
            {
                var request = new RestRequest("/v1/me/pins/", Method.GET);
                request.AddParameter("access_token", Token.AccessToken);
                //request.AddParameter("fields", "first_name,image,id,last_name,username");
                var response = WebServiceHelper.WebRequest(request, ApiURL);
                JsonDeserializer deserial = new JsonDeserializer();

                PinterestPin result = deserial.Deserialize <PinterestPin>(response);
                //result.data.image.original.url = response.['data'].['image'].['60x60'].ToString();
                return(result.data[0]);
            }
            catch (Exception)
            {
                throw;
            }
        }
 /// <summary>
 /// Initializes a new instance of <see cref="PinterestGetPinResponseBody"/> parsed from the specified <paramref name="obj"/>.
 /// </summary>
 /// <param name="obj">The <see cref="JObject"/> to be parsed.</param>
 protected PinterestGetPinResponseBody(JObject obj) : base(obj)
 {
     Data = obj.GetObject("data", PinterestPin.Parse);
 }