Webhook and HTTP Headers in Response

How i am able to read HTTP header response in Photon?

I have very old 3rd party API, which sends “access token” in HTTP headers (using Set-Cookie).
I am able to call such “login” API using publishing events and webhooks, but i am not able to read Set-Cookie header in Photon. Only HTTP Body is sent to Photon.

Also i am not able to call API directly from Photon - it’s only HTTPS.

Unfortunately that’s not possible. The response header is discarded and is not available in mustache templates or any other way.

The only solution will be to use something other than a plain webhook, such as:

  • A Google cloud function
  • An Amazon lambda function
  • Node-RED or similar service that can wrap an external API call
  • ???