示例#1
0
 public IndividualMacroResponse UpdateMacro(Macro macro)
 {
     var body = new { macro };
     return GenericPut<IndividualMacroResponse>(string.Format("macros/{0}.json", macro.Id), body);
 }
示例#2
0
 public async Task<IndividualMacroResponse> UpdateMacroAsync(Macro macro)
 {
     var body = new { macro };
     return await GenericPutAsync<IndividualMacroResponse>(string.Format("macros/{0}.json", macro.Id), body);
 }
示例#3
0
 public IndividualMacroResponse CreateMacro(Macro macro)
 {
     var body = new {macro};
     return GenericPost<IndividualMacroResponse>("macros.json", body);
 }
示例#4
0
 public async Task<IndividualMacroResponse> CreateMacroAsync(Macro macro)
 {
     var body = new { macro };
     return await GenericPostAsync<IndividualMacroResponse>("macros.json", body);
 }