tencent cloud

Feedback

Open APIs

Last updated: 2024-11-21 18:02:29
    The following methods of the Weixin mini program can be implemented through the proxy class, with the app implementing the specific logic and returning it to the mini program.
    Mini program methods:
    wx.login ;
    wx.getUserInfo ;
    wx.getUserProfile ;
    wx.checkSession ;
    wx.requestPayment ;
    wx.getPhoneNumber 。

    Related APIs in proxy class

    // Start payment - Request payment
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)requestPayment:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
    // login
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)login:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
    // checkSession
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)checkSession:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
    // getUserProfile
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getUserProfile:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
     
    // getPhoneNumber
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getPhoneNumber:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
     
    // getUserInfo
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getUserInfo:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;

    Instance code

    // Start payment - Request payment
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)requestPayment:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
    // login
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)login:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
    // checkSession
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)checkSession:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
    // getUserProfile
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getUserProfile:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
     
    // getPhoneNumber
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getPhoneNumber:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
     
     
     
     
    // getUserInfo
     
    // @param app Mini program/mini game instances - Mini program/mini game instance
     
    // @param params Parameters - parameters
     
    // @param completionHandler Callback results - Result callback
     
    - (void)getUserInfo:(TMFMiniAppInfo *)app params:(NSDictionary *)params completionHandler:(MACommonCallback)completionHandler;
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support