-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi @nufyoot (and everyone else).
I have inherited a solution with an integration to Campaign Monitor. The user can subscribe to multiple lists which results in a foreach loop like this:
AuthenticationDetails authenticationDetails = new ApiKeyAuthenticationDetails(apiKey);
foreach (var selectedListId in model.SelectedListIds)
{
var subscriber = new Subscriber(authenticationDetails, selectedListId);
var customFieldsList = new List<SubscriberCustomField>
{
CreateSubscriberCustomField(FormConstants.Position, model.Position),
CreateSubscriberCustomField(FormConstants.PlaceOfWork, model.PlaceOfWork)
};
model.Name = model.FirstName + " " + model.LastName;
subscriber.Add(model.Email, model.Name, customFieldsList, true, ConsentToTrack.Yes);
}
The first couple of submits goes fine but after some iterations it starts throwing a "429 too many requests". I can't see any headers in the response that tells me about a limit or anything. I wonder if there's a known limit of requests you can do in a certain time frame? I have been looking at the documentation but I don't see any regarding this issue and furthermore I can't see if this should have been structured differently.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels