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