Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-gubskiy/x.bluesky
Client for Bluesky
https://github.com/a-gubskiy/x.bluesky
bluesky social-network
Last synced: about 2 months ago
JSON representation
Client for Bluesky
- Host: GitHub
- URL: https://github.com/a-gubskiy/x.bluesky
- Owner: a-gubskiy
- License: mit
- Created: 2024-02-04T23:05:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T09:43:17.000Z (3 months ago)
- Last Synced: 2024-10-01T16:41:54.419Z (3 months ago)
- Topics: bluesky, social-network
- Language: C#
- Homepage: https://nuget.org/packages/X.Bluesky
- Size: 80.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# X.Bluesky
[![NuGet Version](http://img.shields.io/nuget/v/X.Bluesky.svg?style=flat)](https://www.nuget.org/packages/X.Bluesky/)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/andrew_gubskiy.svg?style=social&label=Follow%20me!)](https://twitter.com/intent/user?screen_name=andrew_gubskiy)The X.Bluesky is a .NET library designed to make it easy for developers to post messages to Bluesky, a decentralized social network.
By leveraging the Bluesky API, this project allows for straightforward integration into .NET applications, enabling posts to be made programmatically.
## Features
- Post messages directly to Bluesky
- Attach links to posts, allowing for page previews within the Bluesky feed
- Authenticate with Bluesky using an identifier and password
- Automatically generate tags, mentions and url cards## Getting Started
### Prerequisites
- .NET SDK (compatible with the version used by the project)
- An account on Bluesky with an identifier and password### Installation
To use the X.Bluesky library in your project, include it as a dependency in your project's file (e.g., `csproj`). Documentation on how to do this will be provided based on the package hosting solution used (e.g., NuGet).
### Usage
```csharp
var identifier = "your.bluesky.identifier";
var password = "your-password-here";IBlueskyClient client = new BlueskyClient(identifier, password);
await client.Post($"Read this post from #devdigest: https://yourlink.com/post/123");
await client.Post($"Read this post!", new Uri("https://yourlink.com/post/123");
```