I am trying to send a push notification from Firebase Cloud Message via AWS Lambda. The API responds with authorization error.
import requests import json
Everything is perfect - except the headers. You'll have to add 'Key=' before the actual key. See the code below :
headers = {'Content-type': 'application/json', 'Authorization':'Key=AAAA…...0HuQH'}