Mastodon API客户端库,用于C# 适用于C#的Mastodon API客户端库(PCL 4.5,配置文件111) 始终欢迎拉动需求! 主分支 发展分支 安装 Install-Package Mastodon.API 将应用程序注册到Mastodon实例 var authClient = new MastodonAuthClient ( new Uri ( " https://friends.nico " )); var redirectUri = new Uri ( " urn:ietf:wg:oauth:2.0:oob " ); var scope = OAuthAccessScope . of ( OAtuhAccessScopeType . Read ); var app = await authClient . CreateApp ( " client_name " , redirectUri , scope ); 已注册的OAuth应用程序被分配了唯一的客户端ID和客户端密钥。 用电子邮件地址和密码登录 不建议在服务中使用。 建议对应用程序使用授权码授予流程。
2021-02-03 01:05:43 55KB csharp mastodon MastodonC#
1