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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
picacomic-api
- .net6.0
如何使用
所有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 | Versions 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.
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
规范命名,升级至6.0,重写部分逻辑