Nitish
Nitish
NNovu
Created by Nitish on 1/7/2025 in #💬│support
Hi All,
I am trying to create a subscriber from python sdk and passing all the details below:
subscriber = SubscriberDto(
subscriber_id="999", # Unique identifier for the subscriber
first_name="Nitish", # Subscriber's first name
email="[email protected]", # Email (optional, for email notifications)
avatar="https://example.com/avatar.jpg", # Avatar URL (optional)
channels=[
SubscriberChannelSettingsDto(
provider_id=enums.provider.PushProviderIdEnum.FCM, # Push provider (e.g., Firebase Cloud Messaging)
_integration_id="676d320dac10291e68132c42",
credentials={
"device_tokens":["fhkdfhksd"]
},
)
]
)
response = SubscriberApi().create(subscriber=subscriber)
subscriber = SubscriberDto(
subscriber_id="999", # Unique identifier for the subscriber
first_name="Nitish", # Subscriber's first name
email="[email protected]", # Email (optional, for email notifications)
avatar="https://example.com/avatar.jpg", # Avatar URL (optional)
channels=[
SubscriberChannelSettingsDto(
provider_id=enums.provider.PushProviderIdEnum.FCM, # Push provider (e.g., Firebase Cloud Messaging)
_integration_id="676d320dac10291e68132c42",
credentials={
"device_tokens":["fhkdfhksd"]
},
)
]
)
response = SubscriberApi().create(subscriber=subscriber)
and getting below response
{
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2025-01-07T14:19:04.111Z",
"path": "/v1/subscribers",
"message": "Subscribers environment (676bbaccd42d607eae6bad68) do not have active undefined integration.",
"ctx": {
"error": "Bad Request",
"statusCode": 400
}
}
{
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2025-01-07T14:19:04.111Z",
"path": "/v1/subscribers",
"message": "Subscribers environment (676bbaccd42d607eae6bad68) do not have active undefined integration.",
"ctx": {
"error": "Bad Request",
"statusCode": 400
}
}
Can anyone tell me what I am doing wrong? I have active push notification integration.
3 replies
NNovu
Created by Nitish on 1/5/2025 in #💬│support
seen
No description
9 replies