Soenneker.Loops.OpenApiClient 4.0.188

Prefix Reserved
dotnet add package Soenneker.Loops.OpenApiClient --version 4.0.188
                    
NuGet\Install-Package Soenneker.Loops.OpenApiClient -Version 4.0.188
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Loops.OpenApiClient" Version="4.0.188" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Loops.OpenApiClient" Version="4.0.188" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Loops.OpenApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Loops.OpenApiClient --version 4.0.188
                    
#r "nuget: Soenneker.Loops.OpenApiClient, 4.0.188"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Loops.OpenApiClient@4.0.188
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Loops.OpenApiClient&version=4.0.188
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Loops.OpenApiClient&version=4.0.188
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.188 93 10/14/2026
4.0.187 41 10/14/2026
4.0.182 63 10/13/2026
4.0.181 81 10/13/2026
4.0.180 71 10/12/2026
4.0.179 188 10/11/2026
4.0.178 143 10/10/2026
4.0.177 209 10/7/2026
4.0.176 135 10/6/2026
4.0.175 133 10/1/2026
4.0.174 261 9/28/2026
4.0.173 275 9/24/2026
4.0.172 202 9/22/2026
4.0.171 144 9/21/2026
4.0.170 151 9/17/2026
4.0.169 310 9/15/2026
4.0.168 394 9/12/2026
4.0.167 358 9/8/2026
4.0.166 147 9/8/2026
4.0.165 161 9/8/2026
Loading failed

Update dependency dotnet-sdk to v10.0.402 (#709)