예제 #1
0
        private SensoriaApiResult <ClosetItem> EditShoeDetails(ClosetItem shoeClosetItem)
        {
            ApiResultHttpClientHelper <ClosetItem> client = new ApiResultHttpClientHelper <ClosetItem>();

            client.Url         = String.Format("closet/shoes/{0}", shoeClosetItem.Id);
            client.AccessToken = accessToken;
            client.BaseAddress = clo.apiUrl;
            return(client.PutSensoriaApiResult(shoeClosetItem));
        }
예제 #2
0
        private SensoriaApiResult <ClosetItem> RetireShoe(ClosetItem shoeClosetItem)
        {
            ApiResultHttpClientHelper <ClosetItem> client = new ApiResultHttpClientHelper <ClosetItem>();

            client.Url         = String.Format("closet/shoes/{0}?action=retire", shoeClosetItem.Id);
            client.AccessToken = accessToken;
            client.BaseAddress = clo.apiUrl;

            return(client.PutSensoriaApiResult(null));
        }