Spond.API 2.0.0

dotnet add package Spond.API --version 2.0.0
                    
NuGet\Install-Package Spond.API -Version 2.0.0
                    
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="Spond.API" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spond.API" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Spond.API" />
                    
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 Spond.API --version 2.0.0
                    
#r "nuget: Spond.API, 2.0.0"
                    
#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 Spond.API@2.0.0
                    
#: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=Spond.API&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Spond.API&version=2.0.0
                    
Install as a Cake Tool

Spond.API

A user-friendly C# interface for the Spond API, providing easy access to Spond's group management, event scheduling, and member information features.

🚀 Features

  • Simple Authentication: Login with email or phone number
  • Group Management: Retrieve and manage group information
  • Event Handling: Query events with flexible filtering options
  • Member Information: Access user profiles and member details
  • Strongly Typed Models: Full C# model support with IntelliSense
  • XML Documentation: Complete API documentation included

📦 Installation

Install via NuGet Package Manager:

dotnet add package Spond.API

Or via Package Manager Console:

Install-Package Spond.API

🔧 Quick Start

Basic Usage

using Spond.API.Services;
using Microsoft.Extensions.Logging;

// Create a client instance
var client = new SpondClient();

// Login with email
bool success = await client.LoginWithEmail("your@email.com", "yourpassword");

if (success)
{
    // Get all groups
    var groups = await client.GetGroups();
    
    // Get current user profile
    var profile = await client.GetCurrentUser();
    
    // Get events for a specific time range
    var events = await client.GetEvents(
        DateTime.Now,
        DateTime.Now.AddMonths(1)
    );
}

With Dependency Injection and Logging

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

var services = new ServiceCollection();
services.AddLogging(builder => builder.AddConsole());

var serviceProvider = services.BuildServiceProvider();
var logger = serviceProvider.GetService<ILogger<SpondClient>>();

var client = new SpondClient(logger: logger);

📚 Core API Methods

Authentication

  • LoginWithEmail(string email, string password) - Authenticate using email
  • LoginWithPhoneNumber(string phoneNumber, string password) - Authenticate using phone number

Data Retrieval

  • GetGroups() - Retrieve all groups
  • GetCurrentUser() - Get the current user's profile
  • GetEvents(...) - Retrieve events with various filtering options
    • Filter by time range
    • Filter by group or subgroup
    • Include/exclude comments, hidden events
    • Sort ascending or descending

🛠️ Advanced Usage

Filtering Events

using static Spond.API.Enums;

// Get events for a specific group
var group = groups.First();
var groupEvents = await client.GetEvents(
    group, 
    DateTime.Now, 
    DateTime.Now.AddDays(14),
    max: 50,
    order: Order.Descending,
    includeComments: true
);

// Get events for a subgroup
var subGroup = group.SubGroups.First();
var subGroupEvents = await client.GetEvents(
    group,
    subGroup,
    DateTime.Now,
    DateTime.Now.AddMonths(1)
);

📖 Documentation

  • User Guide - Detailed usage examples and scenarios
  • Developer Guide - Architecture, contribution guidelines, and API details
  • XML Documentation - Full IntelliSense support with method descriptions

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

This is an unofficial API client. Use at your own risk. The Spond API is not officially documented and may change without notice.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 94 5/4/2026
1.2.0 121 1/27/2026
1.1.0 110 1/22/2026