Soenneker.Loops.Contacts
11.0.377
Prefix Reserved
dotnet add package Soenneker.Loops.Contacts --version 11.0.377
NuGet\Install-Package Soenneker.Loops.Contacts -Version 11.0.377
<PackageReference Include="Soenneker.Loops.Contacts" Version="11.0.377" />
<PackageVersion Include="Soenneker.Loops.Contacts" Version="11.0.377" />
<PackageReference Include="Soenneker.Loops.Contacts" />
paket add Soenneker.Loops.Contacts --version 11.0.377
#r "nuget: Soenneker.Loops.Contacts, 11.0.377"
#:package Soenneker.Loops.Contacts@11.0.377
#addin nuget:?package=Soenneker.Loops.Contacts&version=11.0.377
#tool nuget:?package=Soenneker.Loops.Contacts&version=11.0.377
Soenneker.Loops.Contacts
Create, update, find, and delete Loops contacts by email address.
Install
dotnet add package Soenneker.Loops.Contacts
Configure and register
{ "Loops": { "ApiKey": "<API key>" } }
services.AddLoopsContactsUtilAsScoped();
The scoped operation service deliberately uses the singleton Loops client provider. Use the singleton registration when the operation layer should also live for the application lifetime.
Create and update
string id = await contacts.Create(
"person@example.com",
firstName: "Morgan",
subscribed: true,
cancellationToken: cancellationToken);
string updatedId = await contacts.Update(
"person@example.com",
firstName: "Morgan",
subscribed: null,
cancellationToken: cancellationToken);
Create subscribes the contact by default. On Update, subscribed: null leaves subscription state unchanged; pass true or false only when the caller intends to change consent. Both methods throw if Loops returns no contact ID.
Find and delete
string? id = await contacts.Find("person@example.com", cancellationToken);
bool deleted = await contacts.Delete("person@example.com", cancellationToken);
Find returns the first matching contact ID. Delete is destructive and reports the API's success flag. API failures are logged with the contact email and rethrown, so ensure application logs are handled as personal data.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Loops.ClientUtil (>= 11.0.684)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Loops.Contacts:
| Package | Downloads |
|---|---|
|
Soenneker.Loops.OpenApi.Suite
Registers the Loops contact operation package through a single suite entry point |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.377 | 90 | 11/6/2026 |
| 11.0.376 | 120 | 11/3/2026 |
| 11.0.375 | 96 | 11/3/2026 |
| 11.0.374 | 98 | 11/3/2026 |
| 11.0.373 | 98 | 11/3/2026 |
| 11.0.372 | 103 | 11/3/2026 |
| 11.0.371 | 100 | 11/3/2026 |
| 11.0.370 | 105 | 11/2/2026 |
| 11.0.369 | 114 | 11/2/2026 |
| 11.0.368 | 104 | 11/2/2026 |
| 11.0.367 | 111 | 10/31/2026 |
| 11.0.366 | 108 | 10/31/2026 |
| 11.0.365 | 105 | 10/31/2026 |
| 11.0.364 | 101 | 10/29/2026 |
| 11.0.363 | 119 | 10/28/2026 |
| 11.0.362 | 103 | 10/27/2026 |
| 11.0.361 | 95 | 10/27/2026 |
| 11.0.360 | 107 | 10/27/2026 |
| 11.0.359 | 109 | 10/27/2026 |
| 11.0.358 | 110 | 10/27/2026 |
Update dependency Soenneker.Loops.ClientUtil to 11.0.684 (#655)