UiPath 目次 - ray88’s diary
■サンプルコード
入力引数:
in_URL :String型:エンドポイントを格納
in_ApiKey:String型:APIキーを格納
in_Files:List
in_Timeout:Decimal型:タイムアウトの秒数を格納
in_DocumentID:String型:ワークフローID(APIを送る先のアプリケーション側で必要な情報)
出力引数:
out_Response:String型:JSON形式の文字列
Dim client As New RestSharp.RestClient(in_URL) Dim request As New RestSharp.RestRequest(RestSharp.Method.POST) request.AddHeader("apikey", in_ApiKey) request.AddParameter("workflowId", in_DocumentID) request.Timeout = CInt(in_Timeout) For Each item As String In in_Files request.AddFile("files", item) Next Dim response As RestSharp.IRestResponse = client.Execute(request) out_Response = response.Content