public WeixinController(IBizMessageCryptService bizMessageCryptService, IConfiguration configuration, ILogger <WeixinController> logger, WeixinMpApi weixinMpApi) { _bizMessageCryptService = bizMessageCryptService; _configuration = configuration; _logger = logger; _weixinMpApi = weixinMpApi; }
public WeixinMpApiTest() { WeixinServiceRegister.Register() .AddMpService(); string appId = "wxa60caa8a4543d3fa"; string appSecret = "4f141b47bca5755a169d46584982186a"; WeixinMpApiContainer.Register(new MPAccount() { AppId = appId, AppSecret = appSecret, }); MpApi = WeixinMpApiContainer.GetInstance("default"); Console.WriteLine(MpApi.Token?.AccessToken); }
public DataCubeApi(WeixinMpApi api) { _api = api; }
public MediaApi(WeixinMpApi api) { _api = api; }
public AccountApi(WeixinMpApi api) { _api = api; }
public CommentApi(WeixinMpApi api) { _api = api; }
public MenuApi(WeixinMpApi api) { _api = api; }
public CommonApi(WeixinMpApi api) { _api = api; }
public UserApi(WeixinMpApi api) { _api = api; }