abdlrahmansaber.
abdlrahmansaber.
NNovu
Created by abdlrahmansaber. on 7/31/2024 in #💬│support
Upsert Functionality for Integration Entity by Identifier
Hi there, I'd like to add this functinality, this should be easy and quick. The goal of this proposal is to introduce an upsert endpoint for the integration entity within Novu's API. The upsert operation combines the functionality of both "update" and "insert" operations, allowing clients to either update an existing integration or create a new one if it does not already exist.
3 replies
NNovu
Created by abdlrahmansaber. on 7/22/2024 in #💬│support
Channels Property Not Respected When Creating or Updating Subscriber (API Issue)
When creating a new subscriber: when I add the channels property, it does not seem to be respected, and no channels are created. The same issue occurs when using the update endpoint. Am I doing something wrong? Here is the payload I used:
{
"name": "Abdlrahman",
"email": "[email protected]",
"subscriberId": "123456",
"channels": [
{
"providerId": "one-signal",
"credentials": {
"deviceTokens": ["device-token"]
}
}
]
}
{
"name": "Abdlrahman",
"email": "[email protected]",
"subscriberId": "123456",
"channels": [
{
"providerId": "one-signal",
"credentials": {
"deviceTokens": ["device-token"]
}
}
]
}
10 replies
NNovu
Created by abdlrahmansaber. on 7/22/2024 in #💬│support
Add channels when creating a new subscriber (via API)
Hi there, When creating a new subscriber, I noticed that I can add channels, but the types indicate it should be an array of strings. Which strings should I provide? I did some investigation and checked the code. It appears that in CreateSubscriberRequestDto, channels should accept multiple properties SubscriberChannelDto. Could the documentation have incorrect types? I can create a PR to address this, but I need confirmation of my observations. Thank you.
4 replies
NNovu
Created by abdlrahmansaber. on 7/19/2024 in #💬│support
How can I specify the backend/base URL when use @novu/framework?
Hi there, I appreciate the workflow creation process in the @novu/framework package. However, when initializing a new client, I am unable to find a way to specify the backend URL. Can anyone assist with this? From what I understand, there is no way to specify the backend URL, and the default URL is https://api.novu.co, set in the initApiClient method. This method is called by the NovuRequestHandler class. Shouldn't we make this option available when initializing a new client, or is this not supported? While I can use the API directly, I find that using a code-first approach for creating workflows is clearer and more understandable. Am I missing something here?"
4 replies