#import "AFHTTPSessionManager.h"
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; [manager GET:@"http://ods5pg0qp.bkt.clouddn.com/mysqlconsole/mysqlconsole.json" parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) { }success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { NSLog(@"Here prints what to do if the request is successful%@",responseObject); NSDictionary *d = responseObject; NSLog(@"%@,%@",d[@"versionCode"],d[@"versionName"]); }failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { NSLog(@"%@",error); //Print error message here }];
Donate to developers
Driven by interest, I write 免费
something with joy and sweat. I hope you like my work and can support it at the same time. Of course, if you have money to support a money field (the love sign in the upper right corner, support Alipay and PayPal donations), if you have no money to support a personal field, thank you.
Thank you for your sponsorship, I will do better!