티스토리 뷰

반응형

 

1. 구글 플레이 그라운드 열기. 

1-1.  https://developers.google.com/oauthplayground/

 

OAuth 2.0 Playground

Request Body Manual entry Enter the data that will be added to the body of the request: File You may choose to send a file as part of the request. When both a file and manual content are provided both will be sent using a multipart request. You may send fi

developers.google.com

 

1-2. Firebase Cloud Messaging API v1  

                        /       https://www.googleapis.com/auth/cloud-platform 클릭

 

Firebae

 

 

1-3. 계정 선택 로그인 후 허용 클릭. 

 

  • 아래 처럼 화면이 바뀌어야 합니다. - Exchange authorization code for tokens 클릭

 

로그인 후 허용 눌렀을 때 이미지

 

 

  • 아래의 화면 처럼 나와야 합니다. 

토큰 받아왔을 때의 화면

 

1-4. access_token 복사 

access-token 이미지

 

 

2. Post Man 열기

 

1-1. Request URI 변경

HTTP Method :  POST

Request URI : fcm.googleapis.com/v1/projects/<프로젝트 ID>/messages:send

 

 

 

1-2. Authorization / Auth Type : Bearer Token / 복사한 access_token 붙여넣기

 

 

1-3. Body / raw / Firebase 양식에 맞게 데이터 작성

body 데이터

 

 

테스트 해보시길 바랍니다. 

반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함