how can i call HTTP callable cloud function from postman?

前端 未结 4 1959
死守一世寂寞
死守一世寂寞 2021-01-18 12:49

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\": \"         


        
4条回答
  •  不要未来只要你来
    2021-01-18 13:11

    Using @Vaaljan's answer I was able to authenticate a GCP cloud function that I created using the HTTP trigger method with authentication required:

    gcloud auth print-identity-token
    

    Then added it to the request Authorization header:

    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6I ... bnRzLmdvb2dsZS5jb20i
    

    In Postman:

提交回复
热议问题