Soenneker.Loops.OpenApiClient
4.0.161
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Loops.OpenApiClient --version 4.0.161
NuGet\Install-Package Soenneker.Loops.OpenApiClient -Version 4.0.161
<PackageReference Include="Soenneker.Loops.OpenApiClient" Version="4.0.161" />
<PackageVersion Include="Soenneker.Loops.OpenApiClient" Version="4.0.161" />
<PackageReference Include="Soenneker.Loops.OpenApiClient" />
paket add Soenneker.Loops.OpenApiClient --version 4.0.161
#r "nuget: Soenneker.Loops.OpenApiClient, 4.0.161"
#:package Soenneker.Loops.OpenApiClient@4.0.161
#addin nuget:?package=Soenneker.Loops.OpenApiClient&version=4.0.161
#tool nuget:?package=Soenneker.Loops.OpenApiClient&version=4.0.161
Soenneker.Loops.OpenApiClient
Call Loops endpoints through a Kiota-generated client with typed request builders and models.
Install
dotnet add package Soenneker.Loops.OpenApiClient
Create a client
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Loops.OpenApiClient;
var httpClient = new HttpClient
{
BaseAddress = new Uri("https://app.loops.so/api/")
};
httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {apiKey}");
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new LoopsOpenApiClient(adapter);
Reuse the transport rather than constructing one per request, and dispose it with its owning application component. For application registration, lazy reuse, and coordinated ownership, use Soenneker.Loops.ClientUtil.
Create a contact
using Soenneker.Loops.OpenApiClient.Models;
var request = new ContactRequest
{
Email = "person@example.com",
FirstName = "Morgan",
Subscribed = true
};
ContactSuccessResponse? created = await client.V1.Contacts.Create.PostAsync(
request,
cancellationToken: cancellationToken);
Find a contact
List<Contact>? matches = await client.V1.Contacts.Find.GetAsync(
config => config.QueryParameters.Email = "person@example.com",
cancellationToken);
The generated surface begins at client.V1. Follow its request builders for contacts, events, transactional email, lists, campaigns, workflows, and other resources. HTTP failures are surfaced through Kiota exceptions; nullable results indicate no response body.
This repository contains generated code. Put reusable helpers and behavior changes in a separate package so regeneration does not overwrite them.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.0)
- Microsoft.Kiota.Serialization.Form (>= 2.1.1)
- Microsoft.Kiota.Serialization.Json (>= 2.1.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.1)
- Microsoft.Kiota.Serialization.Text (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Loops.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Loops.ClientUtil
Provides a lazily created Loops generated client over the shared authenticated transport |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.168 | 161 | 9/12/2026 |
| 4.0.167 | 265 | 9/8/2026 |
| 4.0.166 | 111 | 9/8/2026 |
| 4.0.165 | 123 | 9/8/2026 |
| 4.0.164 | 79 | 9/8/2026 |
| 4.0.163 | 414 | 9/4/2026 |
| 4.0.162 | 148 | 9/4/2026 |
| 4.0.161 | 109 | 9/4/2026 |
| 4.0.159 | 368 | 9/3/2026 |
| 4.0.157 | 91 | 9/2/2026 |
| 4.0.154 | 111 | 9/2/2026 |
| 4.0.153 | 131 | 9/1/2026 |
| 4.0.152 | 212 | 8/31/2026 |
| 4.0.151 | 232 | 8/31/2026 |
| 4.0.150 | 126 | 8/30/2026 |
| 4.0.149 | 338 | 8/29/2026 |
| 4.0.148 | 629 | 8/18/2026 |
| 4.0.147 | 186 | 8/15/2026 |
| 4.0.146 | 156 | 8/14/2026 |
| 4.0.145 | 596 | 8/5/2026 |
Update dependency Microsoft.Kiota.Serialization.Multipart to 2.1.1 (#643)