网站刚上线,教程还不完善,如需更多帮助,可邮件:zhangrou@chuma.cn,或者加QQ群参与讨论:11444444

使用方式1:HTTP API接口调用

接口地址:https://www.alphams.cn/API

请求方式:HTTP POST

请求格式:text/plain

返回格式:text/plain

请求参数说明

名称 类型 必填 说明
PMMAppSecret 字符串 微信永动机应用密钥
WechatMPAppID 字符串 微信公众号AppID
WechatMPAppSecret 字符串 微信公众号AppSecret

请求示例


{
    "APIName": "AlphaMS.PMM.CreateToken", 
    "Parameter": {
        "PMMAppSecret": "AAAAAAAAAAAAA", 
        "WechatMPAppID": "wx123456", 
        "WechatMPAppSecret": "88888888"
    }
}
                     

返回参数说明

名称 类型 必填 说明
ResultCode 字符串 结果代码
ResultMessage 字符串 结果信息
AccessToken 字符串 微信公众号AccessToken
AccessTokenExpireTime 字符串 微信公众号AccessToken过期时间
JSAPITicket 字符串 微信公众号JSAPITicket
JSAPITicketExpireTime 字符串 微信公众号JSAPITicket过期时间
WXCardAPITicket 字符串 微信公众号微信卡券APITicket
WXCardAPITicketExpireTime 字符串 微信公众号微信卡券APITicket过期时间

返回示例


{
    "ResultCode": 1,
    "ResultMessage": "获取成功",
    "WXCardAPITicketExpireTime": "2017年05月03日 09:49:02",
    "WXCardAPITicket": "IpK_1T69hDhZkLQTlwsAX84KIkFXK2v-Cf2AabGvpdRnAjT-wiN5pH2gVvy3WF68mnypXUTXp8EOtQG09Y20Nw",
    "JSAPITicketExpireTime": "2017年05月03日 09:49:02",
    "JSAPITicket": "kgt8ON7yVITDhtdwci0qeWLISOBCD3Z6w92Y8QyPh7IzRpOlvVReDpG7CF1WqDUz1yt2bohnC9JmFvDxELurIg",
    "AccessTokenExpireTime": "2017年05月03日 09:49:02",
    "AccessToken": "CQ-OV7nwK5t0QXLK1w4TD3mHDLvcq5PQiwzWG_n3ShLwh5EHzNdx12ea8LIooqxzwmUUWABXHjFNMz3_6wjxIg8R9KU7zdmztLuL5uxju6ZhAh7l5mwhgE-UmieONIsoSXDiAHAAFL"
}
                     

使用方式2:【Chuma.AlphaMS.Wechat】.NET微信开发辅助库

调用示例


    using Chuma.AlphaMS.Wechat.MP;

    var MyResponse = AlphaMSWechatMPHelper.GetPMMToken(new AlphaMSWechatMPGetPMMTokenRequest
    {
        PMMAppSecret = "954B3F06421A4A7C9DE90ACA",
        WechatMPAppID = "wx4382617f04d1b",
        WechatMPAppSecret = "e8d4bedd98846d1a67a3fde25"
    });

    var AccessToken = MyResponse.PMMTokenInfo.AccessToken;
    var AccessTokenExpireTime = MyResponse.PMMTokenInfo.AccessTokenExpireTime;