Django FirebaseCloudMessaging 예제 (장고 파이어베이스 클라우드 메시징 예제 )
필수 코드console: pip install requestsimport requests 123456789101112131415import requestsimport json @csrf_exemptdef push_to_client(lms_id, list_diff_subjects, list_diff_reports): url = 'https://fcm.googleapis.com/fcm/send' headers = { 'Authorization': 'key=longlongKey', 'Content-Type': 'application/json; UTF-8', } # 한명 지정이면 to, 여럿일 경우 registration_ids[] content ={'to': token, 'notification': { 'ti..
Python/Django
2018. 11. 9. 10:02
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com