Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
432 B
3
Indexable
Never
import httpx
import json


api_key = "UQfxxxxxx"
app_id = "19xxxxxxx"
sdk_key = "xgI7PQpxxxxxxxxxx"

email = "xxx@gmail.com"

data = {
	"users": [
		"d0c08d64-9c1a-4727-a7db-78748136df92"
	],
	"title": "title",
	"body": "content"
}

r = httpx.post(f"https://push-api.bytebrew.io/api/{app_id}/notification/send", data=data,
						 headers={
							"email": email, "apikey": api_key
							})

print(r.text)