구독자

GET https://pushye.com/api/subscribers/
curl --request GET \
--url 'https://pushye.com/api/subscribers/' \
--header 'Authorization: Bearer {api_key}' \
매개변수 세부사항 설명
page 선택 사항 정수 결과를 원하는 페이지 번호입니다. 기본값은 1입니다.
results_per_page 선택 사항 정수 페이지당 원하는 결과 수는 얼마입니까? 허용되는 값은: 10 , 25 , 50 , 100 , 250 , 500 , 1000. 기본값은 25입니다.
{ "data": [ { "id": 1, "user_id": 1, "website_id": 1, "unique_endpoint_id": "20cdca6b287865a34365f8df7f0d57af", "endpoint": null, "ip": "**.***.***.*", "custom_parameters": [], "city_name": "Bucharest", "country_code": "RO", "continent_code": "EU", "os_name": "OS X", "browser_name": "Chrome", "browser_language": "en", "device_type": "desktop", "subscribed_on_url": "https://example.com/page", "total_sent_push_notifications": 1, "total_displayed_push_notifications": 1, "total_clicked_push_notifications": 1, "total_closed_push_notifications": 0, "last_sent_datetime": "2024-08-03 19:27:34", "last_datetime": null, "datetime": "2025-02-05 12:55:01" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://pushye.com/api/subscribers?&page=1", "last": "https://pushye.com/api/subscribers?&page=1", "next": null, "prev": null, "self": "https://pushye.com/api/subscribers?&page=1" } }
GET https://pushye.com/api/subscribers/{subscriber_id}
curl --request GET \
--url 'https://pushye.com/api/subscribers/{subscriber_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "user_id": 1, "website_id": 1, "unique_endpoint_id": "20cdca6b287865a34365f8df7f0d57af", "endpoint": null, "ip": "**.***.***.*", "custom_parameters": [], "city_name": "Bucharest", "country_code": "RO", "continent_code": "EU", "os_name": "OS X", "browser_name": "Chrome", "browser_language": "en", "device_type": "desktop", "subscribed_on_url": "https://example.com/page", "total_sent_push_notifications": 1, "total_displayed_push_notifications": 1, "total_clicked_push_notifications": 1, "total_closed_push_notifications": 0, "last_sent_datetime": "2024-08-03 19:27:34", "last_datetime": null, "datetime": "2025-02-05 12:55:01" } }
POST https://pushye.com/api/subscribers/{subscriber_id}
매개변수 세부사항 설명
custom_parameter_key[index] 선택 사항 문자열 -
custom_parameter_value[index] 선택 사항 문자열 -
curl --request POST \
--url 'https://pushye.com/api/subscribers/{subscriber_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'custom_parameter_key[0]=name' \
--form 'custom_parameter_value[0]=john@example.com' \
{ "data": { "id": 1 } }
DELETE https://pushye.com/api/subscribers/{subscriber_id}
curl --request DELETE \
--url 'https://pushye.com/api/subscribers/{subscriber_id}' \
--header 'Authorization: Bearer {api_key}' \