그룹전송(JSON)

json 으로 생성된 여러사용자에게 전송

그룹전송

POST https://push.mint-app.com/v1/push/group/json

여러사람에게 푸쉬를 전송하기 위한 api 입니다 header에 인증 정보를 꼭 넣어주세요.

Request Body

NameTypeDescription

reserved_date

string

예약 시간(yyyy-MM-dd hh:mm:ss) 형식

title

string

푸쉬의 간단한 제목(실제로 전송되지는 않음)

message

array

push json array

{
    "result": "success",
    "data": {
        "send_count": 2
    }
}

message 형식

[
  {
    "user_id":"user_id",
    "title":"title",
    "body":"body",
    "badge":1,
    "image_url":"https://img.domain.com/image.jpg",
    "url":"https://domain.com/index.php"
  }
]
  • 세부 파라미터는 개인송과 동일하지만 image_file은 사용할수 없다. image_url을 생성해서 전송해야된다.

  • 사용자 아이디는 중복해서 사용할수 없다.

sample

curl --location --request POST 'https://push.mint-app.com/v1/push/group/json' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--form 'title="test 메시지"' \
--form 'reserved_date="2021-09-01 12:00:00"' \
--form '=@"/path/to/file"' \
--form 'message="[
  {
    \"user_id\":\"1\",
    \"title\":\"title\",
    \"body\":\"body\",
    \"badge\":1,
    \"image_url\":\"https://img.domain.com/image.jpg\",
    \"url\":\"https://domain.com/index.php\"
  }
]"'

Last updated