def send_request(payload)
      response = @http.post payload
      raise APIError, response unless response.is_a?(Net::HTTPSuccess)
      response
    end
def send_request(payload)
      response = @http.post payload
      raise APIError, response unless response.is_a?(Net::HTTPSuccess)
      response
    end
Sends payload and check response
 @param payload [Hash] data to send by POST
 @return [Net::HTTPResponse] response object
 @raise [APIError] if got unsuccessful response