Example #1
0
        public void CreateAnticipation(BulkAnticipation anticipation)
        {
            var request = CreateRequest("POST", "/bulk_anticipations");

            request.Query = anticipation.BuildQueryForKeys(anticipation.ToDictionary(SerializationType.Plain));
            var response = request.Execute();

            anticipation.LoadFrom(response.Body);
        }
Example #2
0
        public void DeleteAnticipation(BulkAnticipation anticipation)
        {
            var request = CreateRequest("DELETE", "/bulk_anticipations/" + anticipation.Id);
            var response = request.Execute();

            anticipation.LoadFrom(response.Body);
        }
Example #3
0
        public void ConfirmAnticipation(BulkAnticipation anticipation)
        {
            var request = CreateRequest("POST", "/bulk_anticipations/" + anticipation.Id + "/" + "confirm");
            var response = request.Execute();

            anticipation.LoadFrom(response.Body);
        }