add weixinapi
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// WeiIXinApiManager.h
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/8/27.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface WeiIXinApiManager : NSObject
|
||||
|
||||
/**
|
||||
微信授权成功后获取 access_token
|
||||
|
||||
@param url get access_token
|
||||
@param parameters 参数
|
||||
@param success 成功
|
||||
@param failure 失败
|
||||
*/
|
||||
+(void)weixinAccessTokeRequstUrl:(NSString *)url parameters:(NSDictionary *)parameters success:(void (^)(id response))success
|
||||
failure:(void (^)(NSError *err))failure;
|
||||
|
||||
/**
|
||||
获取微信用户信息
|
||||
|
||||
@param parameters 参数
|
||||
@param success 成功
|
||||
@param failure 失败
|
||||
*/
|
||||
+(void)getWeiXinUserInfoUrl:(NSString *)url parameters:(NSDictionary *)parameters
|
||||
success:(void (^)(id response))success
|
||||
failure:(void (^)(NSError *err))failure;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user