GoCarrot / teak-android

Carrot SDK for Android
Apache License 2.0
0 stars 0 forks source link

Report opt out states that come in from users.json #106

Closed AlexSc closed 1 year ago

AlexSc commented 1 year ago

The key in the response is opt_out_states. It will contain keys for push, email, and sms. Each of those will be an object with a state key which can be one of opt_out, available, opt_in, absent. email and sms channels may have an additional boolean value in delivery_fault, indicating if Teak encountered an error attempting to deliver an email to that player. If no delivery_fault key is present it should be assumed that Teak has not encountered any errors.

For example


"opt_out_states": {
  "email": { "state": "available", "delivery_fault": true },
  "push": { "state": "opt_in" },
  "sms": { "state": "absent" }
}