본문 바로가기 메뉴 바로가기

Programming Kindergarten

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Programming Kindergarten

검색하기 폼
  • j0n9m1n1 (329)
    • OS (3)
      • Unix & Linux (1)
    • C, C++ (238)
      • 데이터구조 & 자료구조 (13)
      • Baekjoon Online Judge (185)
      • 정올 (15)
      • Project Euler (2)
      • openCV (2)
      • MFC (0)
    • Java (16)
      • for Class, Project (16)
    • Android (2)
      • for Class, Project (2)
    • Python (21)
      • Django (1)
      • Note (10)
      • PyQt5 (3)
    • Trip (1)
      • OSAKA & KYOTO (1)
    • Others (36)
      • Computer (4)
      • Review (29)
  • 방명록

Python/Django (1)
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

티스토리 방명록

이전 1 다음
Previous Next
최근에 올라온 글
  • Baekjoon 백준 2747, 2748⋯
  • Baekjoon 백준 2884번 알⋯
  • Baekjoon 백준 10828번 스택
  • REALFORCE R2TLSA 그레이⋯
최근에 달린 댓글
  • 와 정말 감사합니다. 저도 이⋯
  • 절대안해주려고하던데ㅋㅋ
  • 감사합니다.
  • 음 이렇게 써도 될지는 모르⋯
Total
161,428
Today
20
Yesterday
63

Blog is powered by Tistory / Designed by Tistory
Contact: j0n9m1n1@gmail.com

티스토리툴바