SHARE
TWEET

Untitled

a guest Jan 21st, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FCM_KEY = 'AAAAQYWSayM:APA91bGw2KTMjTTugiHzOrcBZ9rM08Z4AY9ea1AHw_Sx2OVK--342jfMj8qz1jbZtyQ5cNX74SgLD7HuLAQ7R6Nel5smUUBnNMqWaIt-kMPhrUoVxoqB_Xge2cplpSlmzJtEGwZmbOio'
  2.  
  3. data_message = {
  4.     'guesses' : 'Laptop,Printer,Lamp'
  5. }
  6.  
  7. registration_id = 'doiSaZtABfs:APA91bGMa_9oEgptm3C8Y_jemCcC6zhwNcUPMz8oDbc139LeGeaXQiskyvdi5chVzL2iZTxD4mg_YQzua-ZofwIjMNlWhcHHFGMWRwY5i0jIQpuZQk8kRuMvE0XoUL9YG8ePj0whmfnF'
  8.  
  9. push_service = FCMNotification(api_key=FCM_KEY)
  10.  
  11. result = push_service.notify_multiple_devices(
  12.     registration_ids=[registration_id],
  13.     data_message=data_message)
  14.  
  15. print(result)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top