app跳转到微信指定公众号
搞了大半天的巨坑微信开放平台应用要通过开发者资质认证,并且绑定指定要跳转的微信公众账号用到的接口:#pragma mark - JumpToBizProfileReq/* ! @brief 第三方通知微信,打开指定微信号profile页面** 第三方通知微信,打开指定微信号profile页面*/@interface JumpToBizProfileReq : BaseR
·
搞了大半天的巨坑
微信开放平台应用要通过开发者资质认证,并且绑定指定要跳转的微信公众账号
用到的接口:
#pragma mark - JumpToBizProfileReq
/* ! @brief 第三方通知微信,打开指定微信号profile页面
*
* 第三方通知微信,打开指定微信号profile页面
*/
@interface JumpToBizProfileReq : BaseReq
/** 跳转到该公众号的profile
* @attention 长度不能超过512字节
*/
@property (nonatomic, retain) NSString* username;
/** 如果用户加了该公众号为好友,extMsg会上传到服务器
* @attention 长度不能超过1024字节
*/
@property (nonatomic, retain) NSString* extMsg;
/**
* 跳转的公众号类型
* @see WXBizProfileType
*/
@property (nonatomic, assign) int profileType;
@end
发送请求:
JumpToBizProfileReq *req = [[JumpToBizProfileReq alloc]init];
req.username=@"gh_6b31b722a1e8";
req.extMsg = @"";
req.profileType =0;
[WXApi sendReq:req];
特别注意:
username 参数对应的是公众账号的原始ID,搞了大半天才知道的!
更多推荐
所有评论(0)