VeeFriends.DirectMessages 1.0.11

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

// Install VeeFriends.DirectMessages as a Cake Tool
#tool nuget:?package=VeeFriends.DirectMessages&version=1.0.11                

VeeFriends.DirectMessages 📨

NuGet Version

Welcome to VeeFriends.DirectMessages, a .NET library designed to simplify access to direct message data from various social media platforms. Currently supporting WhatNot, with plans to expand to TikTok, eBay, and Fanatics Live in the future.

Overview

VeeFriends.DirectMessages provides a unified interface for managing direct messages across different platforms. The library is built with extensibility in mind, allowing for easy integration of new platforms as they become available.

Key features:

  • Platform-agnostic message handling
  • Asynchronous operations for improved performance
  • Easy integration with dependency injection

Getting Started

Installation

To get started with VeeFriends.DirectMessages, install the main package and the WhatNot package from NuGet:

dotnet add package VeeFriends.DirectMessages
dotnet add package VeeFriends.DirectMessages.WhatNot

Setting Up Dependency Injection

To use VeeFriends.DirectMessages with dependency injection in your .NET application, configure your services in Startup.cs or Program.cs:

using VeeFriends.DirectMessages.WhatNot;

public void ConfigureServices(IServiceCollection services)
{
    services
        .AddDirectMessages()
        .AddWhatNotDirectMessages(x =>
        {
            x.SellerAccountSessionToken = "";
        })
        .AddFanaticsLiveDirectMessages(x =>
        {
            x.SellerAccountSessionToken = "";
        })
        .AddBotDirectMessages<WhatNotDirectMessages, WhatNotUser, WhatNotMessage>(x =>
        {
            x.OpenApiKey = "";
        });

    // Other service configurations...
}

Usage

Sending a Message

var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await whatNotMessages.SendMessageAsync("conversationId", "Hello from VeeFriends.DirectMessages!");

Retrieving Messages

var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await foreach (var message in whatNotMessages.GetMessagesAsync())
{
    Console.WriteLine($"Message: {message.Body}");
}

Marking a Message as Read

var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await whatNotMessages.MarkMessageAsReadAsync("messageId", "conversationId");

Supported Platforms

Currently, VeeFriends.DirectMessages supports the following platforms:

  • WhatNot (via VeeFriends.DirectMessages.WhatNot package)
  • Fanatics Live (via VeeFriends.DirectMessages.FanaticsLive package)

Coming soon:

  • TikTok
  • eBay

Extending the Library

VeeFriends.DirectMessages is designed for easy extension to new platforms. To add support for a new platform:

  1. Create a new class that inherits from RemoteMessageProvider<TUser, TMessage>.
  2. Implement the abstract methods for the new platform.
  3. Add the necessary configuration and dependency injection setup.

Contributing

Contributions are welcome! If you'd like to add support for a new platform or improve existing functionality, please open an issue to discuss your ideas before submitting a pull request.

About

VeeFriends.DirectMessages is maintained by VeeFriends. For more information about our projects and services, visit https://veefriends.com.


Thank you for using VeeFriends.DirectMessages. We look forward to your feedback and contributions!

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 (5)

Showing the top 5 NuGet packages that depend on VeeFriends.DirectMessages:

Package Downloads
VeeFriends.DirectMessages.WhatNot

Data as it pertains to VeeFriends.

VeeFriends.DirectMessage.SupportBot

Data as it pertains to VeeFriends.

VeeFriends.DirectMessages.FanaticsLive

Data as it pertains to VeeFriends.

VeeFriends.DirectMessages.EBay

Data as it pertains to VeeFriends.

VeeFriends.DirectMessages.TikTok

Data as it pertains to VeeFriends.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.11 115 10/17/2024
1.0.10 88 10/17/2024
1.0.9 86 10/17/2024
1.0.8 97 10/17/2024
1.0.7 102 10/16/2024
1.0.6 103 10/11/2024
1.0.5 103 10/11/2024
1.0.4 102 10/11/2024
1.0.3 95 10/11/2024