Common.YuQueSdk 0.0.1-beta2

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

// Install Common.YuQueSdk as a Cake Tool
#tool nuget:?package=Common.YuQueSdk&version=0.0.1-beta2&prerelease                

操作

注册

services.AddYuQueService(new YuQueConfig
{
    AuthToken = "xxxxxxxxxxx",
    UserAgent = "netcoresdk"
});

依赖注入

private readonly IYuQueHelper _yuQueHelper;

public TestController(IYuQueHelper yuQueHelper)
{
    _yuQueHelper = yuQueHelper;
}

// 注入扩展IYuQueExtensionHelper,可以获取目录列表以及仓库文档到指定目录

用户

//获取当个用户信息
var user = await _yuQueHelper.GetUsersAsync("userLoginName");

文档

//获取用户下知识库列表
var repList = await yuQueHelper.GetUserRepositoryListAsync("azrng1");

//获取知识库下文档列表
var docList = await yuQueHelper.GetRepositoryDocListAsync("10874512");

//获取文档详情
var docs = await _yuQueHelper.GetReposDocs("654324", "df2g127");
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
0.0.1-beta2 112 7/20/2023
0.0.1-beta1 149 1/8/2022

获取用户信息以及获取文档详情,逐步更新中