<?php
// Define the endpoint URL
$url = "https://i...content-available-to-author-only...s.com/iid/v1:batchAdd";
// Your Firebase server key (replace with your actual key)
$serverKey = "YOUR_SERVER_KEY";
// The payload
$payload = [
"to" => "/topics/session-add",
"registration_tokens" => ["ctE5K9uWQKqjQTouPl2OWa:APA91bEaeg-hxssUqCI86wC64XDkTaJBXdfGrHZPm5JZawk9jS23DjjNbHmD5drwr11JL77PtTzj2z_ssxyMJ9SjibpHR-MchGCS3GMi8LWjHUxX7MRGzz4"],
"op" => "batchAdd"
];
// Initialize cURL
// Set the cURL options
"Authorization: Bearer ya29.c.c0ASRK0Ga6fZg0IaADZFNzbJltjr-xnacUQ5Wd6Yl8xzY0N3TeaJuJY977ZLA6AZMYRuR73HxL5Ko2JqvFSbZH7_ubSy1AFqde18DeQIo9ReOe6TlYb2Mepez6wS6TD55BTUknQoJkSzPiw2EDBfbXrKlYEZRK2lRXOnP_NiGiHnUwaHKN8e2MdAI0EKiXkUOCEnWT7LG0tdSyj8Z7zmKKZpl3OouD_yCymZ5bzheFGHehZdiWkjhYkVilDABC9KW4jjOYNV1URqk_IBDu4td1PdzVuOxMj8QycE3Pyf0DBG0DpetnWYr7mJDtlj2UahP7hk_FoA-AfIC7yXAsl9UNqat0s4k4377wTqOIduBt6ttUgM-pB5Cb8vUr8RAT388PgpqsMF7423ntgrscruZcJpJ74B-gjZO_bztcuOx3hmc7M-RfI3di6jWyXY9skJigjWJkoI13mSFjst78c7ed3sZnuh4t3Qu0Zdmtwnk4Y5h_MwiQsM1erj45Rdgflpn65a2d8p7anQk5UieYJkzltJ98r3QvxF0z_Q1yJ3M65kiIoaeIsIsia9yWb0j5tfm-uJSVo8epj1cW8U86h2svY9Zt0wlpoy18skJIm9Xh5FWSmQ3OnVamx__5iYsau07X78VrqxVpO7yXkUi5a9_YankOyQ8y0tnUaiyo_RciMI4M2pwkFVYhb3-BgQndomXtiaSZkl7hRJOhkqpWY9zbw7jIzsO036X0Q_FgRu4fu_McM86MkqcfnX2SSnqBSjj5dt7no5pjMbY1q4JOXaaM0Wd03drkpZgekiQ3QOepgrIBS2Odb96zkevQ2q5iJYdjyjhOaqIY52zu2Y933aeIfBeYRl_Rg1vMxyqWsg7Fb1iWfV-yOiqbSUxZ7hlsiOSy9n111nl2q-7IxMZSjjx355f7lgmpFkinZOc7R38xxUyO30W9k2F5vb1RZoO6B2_wsUQq99j8sYBOY8YrYJwh01ia8UdU7_oj8gQ3XJnnyWjWusF57lOp1Ql",
"Content-Type: application/json"
]);
// Execute the request and capture the response
// Check for errors
} else {
// Print the response
echo "Response: " . $response;
}
// Close cURL
?>
PD9waHAKLy8gRGVmaW5lIHRoZSBlbmRwb2ludCBVUkwKJHVybCA9ICJodHRwczovL2kuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLnMuY29tL2lpZC92MTpiYXRjaEFkZCI7CgovLyBZb3VyIEZpcmViYXNlIHNlcnZlciBrZXkgKHJlcGxhY2Ugd2l0aCB5b3VyIGFjdHVhbCBrZXkpCiRzZXJ2ZXJLZXkgPSAiWU9VUl9TRVJWRVJfS0VZIjsKCi8vIFRoZSBwYXlsb2FkCiRwYXlsb2FkID0gWwogICAgInRvIiA9PiAiL3RvcGljcy9zZXNzaW9uLWFkZCIsCiAgICAicmVnaXN0cmF0aW9uX3Rva2VucyIgPT4gWyJjdEU1Szl1V1FLcWpRVG91UGwyT1dhOkFQQTkxYkVhZWctaHhzc1VxQ0k4NndDNjRYRGtUYUpCWGRmR3JIWlBtNUpaYXdrOWpTMjNEampOYkhtRDVkcndyMTFKTDc3UHRUemoyel9zc3h5TUo5U2ppYnBIUi1NY2hHQ1MzR01pOExXakhVeFg3TVJHeno0Il0sCiAgICAib3AiID0+ICJiYXRjaEFkZCIKXTsKCi8vIEluaXRpYWxpemUgY1VSTAokY2ggPSBjdXJsX2luaXQoKTsKCi8vIFNldCB0aGUgY1VSTCBvcHRpb25zCmN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9QVF9VUkws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