微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在Informatica中执行cURL脚本

如何解决在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您可以找到带有示例的知识库文章。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。