コード例 #1
0
        public async Task <HttpResponseMessage> UpdateUser(UpdateUserRequest updateUserRequest)
        {
            var content = IntegrationHttpRequest.CreateContentRequest(updateUserRequest);
            HttpResponseMessage response = await client.PutAsync(UrlBase + "api/v1/update-user", content);

            return(response);
        }
コード例 #2
0
        public async Task <HttpResponseMessage> CreateUser(EventGridModel createUserRequest)
        {
            var content = IntegrationHttpRequest.CreateContentRequest(createUserRequest);
            HttpResponseMessage response = await client.PostAsync(UrlBase + "runtime/webhooks/EventGrid?functionName=v1-user-created", content);

            return(response);
        }
        public async Task <HttpResponseMessage> CreateDevice(CreateDeviceRequest createDeviceRequest)
        {
            var content = IntegrationHttpRequest.CreateContentRequest(createDeviceRequest);
            HttpResponseMessage response = await client.PostAsync(UrlBase + "api/v1/create-device", content);

            return(response);
        }
        public async Task <HttpResponseMessage> UpdateOperativeSystem(UpdateOperativeSystemRequest updateOperativeSystemRequest)
        {
            var content = IntegrationHttpRequest.CreateContentRequest(updateOperativeSystemRequest);
            HttpResponseMessage response = await client.PutAsync(UrlBase + "api/v1/update-operative-system", content);

            return(response);
        }