我如何从邮递员那里调用HTTP可调用的云函数? [英] how can i call HTTP callable cloud function from postman?

查看:51
本文介绍了我如何从邮递员那里调用HTTP可调用的云函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我可以从邮递员软件中调用云函数.当我从邮递员中调用CF时,它总是给我

I want to know that can i call cloud function from postman software .When i'm calling CF from postman it always give me

 "error": {
        "status": "INVALID_ARGUMENT",
        "message": "Bad Request"
    }

推荐答案

在Postman make post请求中,标头Content-Type应该为application/json,然后以这种格式在原始make json中

In Postman make post request, header Content-Type should be application/json and then in raw make json in this format

{
    "data": {
    "text":"hi how are you",
    "phoneNumbers":"+92123455679"
    }
}

这篇关于我如何从邮递员那里调用HTTP可调用的云函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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