EasySeries.MiniProgram 3.3.0

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

// Install EasySeries.MiniProgram as a Cake Tool
#tool nuget:?package=EasySeries.MiniProgram&version=3.3.0                

EasySeries.MiniProgram

Easy小程序,Easy系列第四个应用,用于微信,抖音,快手,百度等小程序。

使用说明:全static方法直接调用即可


using EasySeries.MiniProgram.Models.Wechat;
using EasySeries.MiniProgram.Static;
using Microsoft.AspNetCore.Mvc;

namespace EasySeries.Simple.Controllers;

[Route("api/[controller]")]
[ApiController]
public class MiniProgramController : ControllerBase
{
    [HttpGet("")]
    public async Task<FileContentResult> QrCodeAsync()
    {
        var request = new WechatUnLimitQrCodeRequest
        {
            AccessToken = "xxx"
        };

        var buffer = await Wechat.GetUnLimitQrCodeAsync(request);
        if(buffer != null)
        {
            return new FileContentResult(buffer, "image/jpeg");
        }

        throw new Exception("content is null");
    }

    public async Task AllWechatAPIs()
    {
        //微信.
        await Wechat.GetSessionAsync("code", "appid", "secret");
        await Wechat.GetWechatAccessTokenAsync("appid", "secret");
        await Wechat.GetWechatUserMobileAsync("token", "code");
        await Wechat.GetUnLimitQrCodeAsync(new WechatUnLimitQrCodeRequest());
        await Wechat.GetLimitQrCodeAsync(new WechatLimitQrCodeRequest());
        await Wechat.GetUrlSchemeAsync(new WechatUrlSchemeRequest());
        await Wechat.SendSubscribeMessageAsync(new WechatSendSubMsgRequest());

        //抖音.
        await Douyin.GetSessionAsync("code", "anonymousCode", "appid", "secret");

        //快手.
        await Kuaishou.GetSessionAsync("code", "appid", "secret");


        //百度.
        await Baidu.GetSessionAsync("accessToken", "code");
        await Baidu.GetAccessTokenAsync("appkey", "secret");

        //抖音,快手.
        MobileData.Decrypt("encryptedData", "sessionkey", "iv");

        //百度.
        MobileData.DecryptForBaidu("encryptedData", "sessionkey", "iv");
    }
}

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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
3.3.0 16 1/14/2025