Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

9bic/TypetalkSharp

Repository files navigation

TypetalkSharp - Typetalk API Client for CSharp

TypetalkSharp is a client library of Typetalk API for .NET 4.5.1~

Examples

Get Messages with TypetalkSharp

using TypetalkSharp;

var typetalk = new TypetalkClient("CLIENT_ID", "CLIENT_SECRET");
var topicId = await typetalk.Topics.All().First(x => x.Name == "TARGET_TOPICS").Topic.Id;
var messages = typetalk.Topics.Messages.Get(topicId);

Post message with TypetalkSharp

using TypetalkSharp;

var typetalk = new TypetalkClient("CLIENT_ID", "CLIENT_SECRET");
var topics = await typetalk.Topics.All();
var result = typetalk.Topics.Messages.Post(
					topics.First(x => x.Name == "TARGET_TOPICS").Topic.Id,
					new NewMessage("message from TypetalkSharp!"));

Bot Examples

TypetalkSharp has features for Typetalk Bot API Access From TypetalkBot Class are limited

using TypetalkSharp.Bot;

var typetalkBot = new TypetalkBot("YOUR_TYPETALK_TOKEN");
var topicId = 0;
var result = await typetalk.Topics.Messages.Post(topicId, new NewMessage("from TypetalkSharp!"));

Getting Started

TypetalkSharp and TypetalkSharp.bot is available on NuGet

Install-Package TypetalkSharp
Install-Package TypetalkSharp.Bot

License

Licensed under the MIT License

About

Typetalk Client Library for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages