如何创建一个doPost(e)来接收来自外部服务的数据? [英] How to create a doPost(e) to receive data from an external service?

查看:85
本文介绍了如何创建一个doPost(e)来接收来自外部服务的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个脚本,该脚本从Postman进行的POST接收数据,但是每次收到错误代码301时,我都会遵循不同的教程(堆栈溢出帖子),效果不佳. 我只需要从此POST调用中接收数据,然后将它们发送到SpreadSheet进行存储即可.

非常感谢您的帮助.

解决方案

您需要确保遵循

或者,您可以使用 Hurl.it ,它具有非常清晰可见的重定向选项.

I'm trying to create a Script that receives data from a POST that I make from Postman, but every time I get the error code 301. I followed different tutorials (Google Web App and Stack Overflow posts) with not good results. I only need to receive the data from this POST call and send them to a SpreadSheet for their storage.

Thanks for your help, I really appreciate it.

解决方案

You need to make sure you're following redirects. In Postman, go to your preferences, and make sure you've enabled "Automatically follow redirects".

Alternatively, you can use Hurl.it, which has the redirects option very clearly visible.

这篇关于如何创建一个doPost(e)来接收来自外部服务的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆