I have searched a lot but I am not getting any of the demo. How could I go about integrating it into my app?
I checked many sources like this answer or this site
I have searched a lot but I am not getting any of the demo. How could I go about integrating it into my app?
I checked many sources like this answer or this site
Hi I download the English version SDK from the link http://dev.wechat.com/wechatapi you provided. It turns out to be missing some methods. In the latest version 1.5 in Chinese(all the comments are Chinese) there are methods like
+(BOOL) sendAuthReq:(SendAuthReq*) req viewController : (UIViewController*) viewController delegate:(id<WXApiDelegate>) delegate;
and classes:
#pragma mark - SendAuthReq
@interface SendAuthReq : BaseReq
@property (nonatomic, retain) NSString* scope;
@property (nonatomic, retain) NSString* state;
@end
#pragma mark - SendAuthResp
@interface SendAuthResp : BaseResp
@property (nonatomic, retain) NSString* code;
@property (nonatomic, retain) NSString* state;
@property (nonatomic, retain) NSString* lang;
@property (nonatomic, retain) NSString* country;
@end
the request method sample:
-(void)sendAuthRequest
{
SendAuthReq* req =[[[SendAuthReq alloc ] init ] autorelease ];
req.scope = @"snsapi_userinfo" ;
req.state = @"123" ;
[WXApi sendReq:req];
}
Here is the Chinese version download link if you are interested