Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.31 KB

File metadata and controls

50 lines (34 loc) · 2.31 KB

TopicsSubscribers

Overview

Available Operations

  • Get - Check topic subscriber

Get

Check if a subscriber belongs to a certain topic

Example Usage

using Novu;
using Novu.Models.Components;

var sdk = new NovuSDK(secretKey: "YOUR_SECRET_KEY_HERE");

var res = await sdk.TopicsSubscribers.GetAsync(
    externalSubscriberId: "<id>",
    topicKey: "<value>"
);

// handle response

Parameters

Parameter Type Required Description
ExternalSubscriberId string ✔️ The external subscriber id
TopicKey string ✔️ The topic key
IdempotencyKey string A header for idempotency purposes

Response

TopicsV1ControllerGetTopicSubscriberResponse

Errors

Error Type Status Code Content Type
Novu.Models.Errors.ErrorDto 414 application/json
Novu.Models.Errors.ErrorDto 400, 401, 403, 404, 405, 409, 413, 415 application/json
Novu.Models.Errors.ValidationErrorDto 422 application/json
Novu.Models.Errors.ErrorDto 500 application/json
Novu.Models.Errors.APIException 4XX, 5XX */*