public async Task <Response <EmptyResponse> > DeleteCreation(AuthenticatedCreationRequest request) { HttpRequestMessage httpRequestMessage = BuildRequestMessage(request, string.Format("users/{0}/creations/{1}", request.Payload.UserId, request.Payload.CreationId), HttpMethod.Delete); httpRequestMessage.Headers.Add("Authorization-Token", request.AuthenticationToken); return(await SendRequestAsync <EmptyResponse>(httpRequestMessage)); }
public async Task <Response <Creation> > CreateUserCreations(AuthenticatedCreationRequest request) { HttpRequestMessage httpRequestMessage = BuildRequestMessageWithBody(request, string.Format("users/{0}/creations", request.Payload.UserId), HttpMethod.Post); httpRequestMessage.Headers.Add("Authorization-Token", request.AuthenticationToken); return(await SendRequestAsync <Creation>(httpRequestMessage)); }