XG.XGBceDotNetSDK
1.2308.15
dotnet add package XG.XGBceDotNetSDK --version 1.2308.15
NuGet\Install-Package XG.XGBceDotNetSDK -Version 1.2308.15
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="XG.XGBceDotNetSDK" Version="1.2308.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XG.XGBceDotNetSDK --version 1.2308.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XG.XGBceDotNetSDK, 1.2308.15"
#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 XG.XGBceDotNetSDK as a Cake Addin #addin nuget:?package=XG.XGBceDotNetSDK&version=1.2308.15 // Install XG.XGBceDotNetSDK as a Cake Tool #tool nuget:?package=XG.XGBceDotNetSDK&version=1.2308.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XGBceDotNetSDK
百度智能云服务端API 第三方C#SDK
目前已集成简单消息服务SMS、媒体内容分析VCA、媒体内容审核VCR、物联网核心套件IoTCore、音视频处理MCP、音视频直播LSS,文档服务DOC,更多产品陆续完善中...
安装方法
支持最低版本:.NET Standard 2.0、.NET 5.0、.NET Core 2.0、.NET Framework 4.6.1
NuGet Package Manager: Install-Package XG.XGBceDotNetSDK
.NET CLI:dotnet add package XG.XGBceDotNetSDK
使用方法(以音视频处理MCP为例)
新建MediaClient
private static string access_key_id = "your-access-key-id";
private static string secret_access_key = "your-secret-access-key";
private static string endpoint = "http://media.bj.baidubce.com";
//初始化一个MediaClient
XGBceClientConfiguration bceClientConfiguration = new XGBceClientConfiguration()
{
Credentials = new XGBceDefaultBceCredentials(access_key_id, secret_access_key),
Endpoint=endpoint
};
XGMediaClient mediaClient = new XGMediaClient(bceClientConfiguration);
- access_key_id和secret_access_key是由系统分配给用户的,均为字符串,用于标识用户,为访问Media做签名验证。其中access_key_id对应控制台中的“Access Key ID”(AK),secret_access_key对应控制台中的“Access Key Secret”(SK),获取方式请参考获取 AK/SK。
- endpoint参数只能用产品指定的包含Region的域名来进行定义,例如:目前Media只提供北京一个Region,因此endpoint支持主域名http://media.bj.baidubce.com 和备域名 http://digitialmedia.bj.baidubce.com 随着Region的增加将会开放其他可以支持的域名。
调用MediaClient方法
public static void QueryTranscodingJob(XGMediaClient mediaClient)
{
try
{
XGMediaQueryTranscodingJobResponse response = mediaClient.QueryTranscodingJob("job-mm6i1ib3b6rrw4rw");
Console.WriteLine("查询指定视频转码任务成功:" + response);
}
catch (Exception ex)
{
Console.WriteLine("查询指定视频转码任务失败:" + ex.Message);
}
}
更多示例参见: XGBceDotNetSDKDemo.Example
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.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.
添加接口注释