본문 바로가기
기타

[FCM] FCM HTTP v1 API 사용하여서 Post Man 으로 보내기.

by 개발_블로그 2025. 2. 17.
반응형

 

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. Authorization / Auth Type : Bearer Token / 복사한 access_token 붙여넣기

 

 

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

body 데이터

 

 

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

반응형