Checking the Subscription Status of a Bucket

Here is the sample code for checking the subscription status.

Here is a sample code for checking the subscription.

curl -v -X GET \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  "https://api-jp.kii.com/api/apps/{APP_ID}/buckets/{BUCKET_ID}/filters/all/push/subscriptions/users/{USER_ID}"

Make sure to replace {APP_ID} with your application's AppID.

Kii Cloud returns one of these responses:

  • A 204 response if the user is subscribed to the bucket.
  • A 404 response with the error code PUSH_SUBSCRIPTION_NOT_FOUND if the user is not subscribed to the bucket.