예제 #1
0
 public async Task<IndividualTargetResponse> UpdateTargetAsync(BaseTarget target)
 {
     var body = new { target };
     return await GenericPutAsync<IndividualTargetResponse>(string.Format("targets/{0}.json", target.Id), body);
 }
예제 #2
0
 public IndividualTargetResponse UpdateTarget(BaseTarget target)
 {
     var body = new { target };
     return GenericPut<IndividualTargetResponse>(string.Format("targets/{0}.json", target.Id), body);
 }
예제 #3
0
 public async Task<IndividualTargetResponse> CreateTargetAsync(BaseTarget target)
 {
     var body = new { target };
     return await GenericPostAsync<IndividualTargetResponse>("targets.json", body);
 }
예제 #4
0
 public IndividualTargetResponse CreateTarget(BaseTarget target)
 {
     var body = new { target };
     return GenericPost<IndividualTargetResponse>("targets.json", body);
 }