Data as it pertains to VeeFriends.
$ dotnet add package VeeFriends.DirectMessage.SupportBotWelcome 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.
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:
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
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...
}
var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await whatNotMessages.SendMessageAsync("conversationId", "Hello from VeeFriends.DirectMessages!");
var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await foreach (var message in whatNotMessages.GetMessagesAsync())
{
Console.WriteLine($"Message: {message.Body}");
}
var whatNotMessages = serviceProvider.GetService<WhatNotDirectMessages>();
await whatNotMessages.MarkMessageAsReadAsync("messageId", "conversationId");
Currently, VeeFriends.DirectMessages supports the following platforms:
Coming soon:
VeeFriends.DirectMessages is designed for easy extension to new platforms. To add support for a new platform:
RemoteMessageProvider<TUser, TMessage>.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.
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!