picacomic 1.0.7

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

// Install picacomic as a Cake Tool
#tool nuget:?package=picacomic&version=1.0.7                

picacomic-api

  • .net6.0

如何使用

  • NuGet

  • 所有api都在Picacomic.PicAcgReq,登陆成功以后调用Picacomic.Header.SetAuthorization("");保存好token以后就可以使用所有api

  • 所有返回的数据已经解析好对应类返回,错误信息会以异常抛出.

  • 个别几个api会返回空的类,没有数据供解析,没有异常就是正常post

  • 返回的数据绝大多数都已添加注释。不然自己隔两年用都要想一下

  • picacomic-api/picacomic/Http/Obsolete/下有一些兼容签到项目的脚本,之后的版本会逐渐删除,如果是clone git来使用时,可以手动删除这些脚本。不影响使用

示例

 //登录
 var login = await PicAcgReq.Login("username","password");
 //设置token,这个token有使用时长,不建议长期保存,可以运行程序时登录一次
 Header.SetAuthorization(login.Authorization);
 //获取热词
 Console.WriteLine( string.Join('\n', PicAcgReq.GetKeywords().Result.Keyword));

感谢

https://github.com/tonquer/picacg-windows

衍生项目

哔咔自动签到

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.7 393 7/1/2023
1.0.4 43,473 6/10/2021

规范命名,升级至6.0,重写部分逻辑