在Informatica中执行cURL脚本

问题描述

我有一个cURL脚本。它登录到URL#1,填充cookies.txt文件,并使用该cookies.txt文件从URL#2下载Excel文件

    curl -c cookies.txt -X POST https://sso.URL.com/api/authenticateTfa -H "Content-Type: application/json" --data {"userId":"myUserID","password":"myPassword","appKey":"DOWNLOADFILE"}
    curl -b cookies.txt -O https://downloads2.URL.com/Reports/Some_Excel_File_2020_10_27.xlsx

informatica Cloud中是否可以实现此目的?我对此进行了研究,无法弄清楚。我已经建立了一个使用Swagger文件连接到https://sso.URL.com的连接,当我单击“测试连接”时,将向我返回一条消息,提示“该连接的测试成功”。

我不知道那之后该去哪里。我是否可以在同步任务中使用它?

解决方法

您需要使用class AddQuantityColumnToCartsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('carts',function (Blueprint $table) { $table->integer('quantity')->after('product_id')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('carts',function (Blueprint $table) { $table->dropColumn('quantity'); }); } } 来调用Shell命令。 Here是文档,here您可以找到带有示例的知识库文章。