RQHTTPService+NYAppleUserInfo.m 785 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQHTTPService+NYAppleUserInfo.m
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2023/10/24.
  6. // Copyright © 2023 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+NYAppleUserInfo.h"
  9. @implementation RQHTTPService (NYAppleUserInfo)
  10. - (RACSignal *)getAppleUserInfo:(NSString *)loginCode {
  11. /// 1. 配置参数
  12. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  13. subscript[@"logincode"] = loginCode;
  14. /// 2. 配置参数模型
  15. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path: RQ_GET_AppleUserInfo parameters:subscript.dictionary];
  16. /// 3.发起请求
  17. return [[[RQHTTPRequest requestWithParameters:paramters]
  18. enqueueResultClass:[RQUserModel class]]
  19. rq_parsedResults];
  20. }
  21. @end