C# Класс Senparc.Weixin.MP.AppStore.AppStoreManager

Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyPassport ( string appKey, string appSecret, string url = DEFAULT_URL ) : void

申请新的通行证。 每次调用完毕前将有1秒左右的Thread.Sleep时间

GetApiContainer ( string appKey, string appSecret, string url = DEFAULT_URL ) : ApiContainer

获取appKey对应的接口集合。 调用此方法请确认此appKey已经成功使用SdkManager.Register(appKey, appSecret, appUrl)方法注册过。

GetPassportBag ( string appKey ) : PassportBag
RemovePassport ( string appKey ) : void

清除当前的通行证

Приватные методы

Метод Описание
Register ( string appKey, string secret, string url = DEFAULT_URL, bool getPassportImmediately = false ) : void

注册P2P应用基本信息(可以选择不立即载入Passport以节省系统启动时间)

Описание методов

ApplyPassport() публичный статический Метод

申请新的通行证。 每次调用完毕前将有1秒左右的Thread.Sleep时间
public static ApplyPassport ( string appKey, string appSecret, string url = DEFAULT_URL ) : void
appKey string
appSecret string
url string
Результат void

GetApiContainer() публичный статический Метод

获取appKey对应的接口集合。 调用此方法请确认此appKey已经成功使用SdkManager.Register(appKey, appSecret, appUrl)方法注册过。
public static GetApiContainer ( string appKey, string appSecret, string url = DEFAULT_URL ) : ApiContainer
appKey string
appSecret string
url string
Результат Senparc.Weixin.MP.AppStore.Api.ApiContainer

GetPassportBag() публичный статический Метод

public static GetPassportBag ( string appKey ) : PassportBag
appKey string
Результат PassportBag

RemovePassport() публичный статический Метод

清除当前的通行证
public static RemovePassport ( string appKey ) : void
appKey string
Результат void