idunno.AtProto 0.2.0-prerelease

Prefix Reserved
This is a prerelease version of idunno.AtProto.
dotnet add package idunno.AtProto --version 0.2.0-prerelease                
NuGet\Install-Package idunno.AtProto -Version 0.2.0-prerelease                
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="idunno.AtProto" Version="0.2.0-prerelease" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add idunno.AtProto --version 0.2.0-prerelease                
#r "nuget: idunno.AtProto, 0.2.0-prerelease"                
#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.
// Install idunno.AtProto as a Cake Addin
#addin nuget:?package=idunno.AtProto&version=0.2.0-prerelease&prerelease

// Install idunno.AtProto as a Cake Tool
#tool nuget:?package=idunno.AtProto&version=0.2.0-prerelease&prerelease                

idunno.AtProto

About

.NET class libraries for AT Protocol.

Key Features

  • PDS authentication and session management
  • List, Create, Get, Put, Delete records
  • Blob uploads
  • Handle and PDS resolution

How to Use

AtProtoAgent agent = new(new Uri("https://bsky.social"));

var loginResult = await agent.Login(username, password);
if (loginResult.Succeeded)
{
    var did = await agent.ResolveHandle("blowdart.me", cancellationToken);

    if (did is not null)
    {
        var pds = await agent.ResolvePds(did);

        if (pds is not null)
        {
            var listRecordsResult = await agent.ListRecords<AtProtoRecord> (
                did,
                collection: "app.bsky.feed.post",
                service : pds);

            if (listRecordsResult.Succeeded)
            {
                // listRecords.Result contains a paged list of bluesky posts for blowdart.me
            }
        }
    }
}

Documentation

Documentation is available, including API references.

The API status page shows the current state of API support.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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 idunno.AtProto:

Package Downloads
idunno.Bluesky

.NET client for the Bluesky social network.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0-prerelease 50 12/27/2024
0.1.3-prerelease 50 12/23/2024
0.1.2-prerelease 79 12/19/2024
0.1.1-prerelease 91 12/14/2024
0.1.0-prerelease 60 12/12/2024