logo
Retrieves the blacklisted signups for your app, one page at a time.
💡 The response method is "blacklist", not getBlacklistUsersResponse. Register your handler on that name.

Request

method is "getBlacklistUsers".
Field
Type
Required
Description
app_id
String
Yes
The app whose blacklist you want.
page_number
Number
Yes
Page to retrieve, starting at 0.
page_size
Number
Optional
Entries per page. Defaults to 50.
reference
String
Optional
Your id for this request. Echoed back in the response.

Preconditions

Requirement
Why
"Signup Management" permission
Needed to read or manage whitelist and blacklist.

Response

blacklist

Field
Type
Returned
Description
method
String
Yes
"blacklist"
signups
Yes
The blacklisted signups on this page.
app_id
String
Yes
Echoed from the request.
page_number
Number
Yes
The page this result represents.
eop
Boolean
Conditional
End of pages. true when there is nothing more to fetch. Defaults to false.
reference
String
Optional
Echoed from the request.

SDKs

SDK
Call
Callback
Java
api.getBlackList(appId, reference);
onBlackList(BlackList blackList)
JavaScript
api.getBlackList(appId, reference);
onBlackList(blackList)
Python
napi.get_black_list(app_id=app_id, reference=reference)
on_black_list(self, black_list)

Example

Request

json
{ "method": "getBlacklistUsers", "app_id": "90090684293000559", "page_number": 0, "reference": 111111148 }
java
api.getBlackList("90090684293000559", "111111148");
javascript
api.getBlackList("90090684293000559", "111111148");
python
napi.get_black_list(app_id="90090684293000559", reference="111111148")

Response

json
{ "method": "blacklist", "app_id": "90090684293000559", "signups": [ { "id": "490", "signup_id": "example@email.com", "tags": ["4"] } ], "page_number": 0, "eop": true, "reference": 111111148 }