sendgrid-objc icon indicating copy to clipboard operation
sendgrid-objc copied to clipboard

POST:parameters:constructingBodyWithBlock:success:failure:' is deprecated

Open abidullah opened this issue 9 years ago • 1 comments

  • (void)sendWithWeb:(SendGridEmail *)email successBlock:(void(^)(id responseObject))successBlock failureBlock:(void(^)(NSError *error))failureBlock

SendGrid.m:67:14: 'POST:parameters:constructingBodyWithBlock:success:failure:' is deprecated

i get this error i have migrated to AFNetworking 3.x, after this i get the error any help

abidullah avatar Jan 26 '16 06:01 abidullah

Use

- (NSURLSessionDataTask *)POST:(NSString *)URLString
                    parameters:(id)parameters
     constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block
                      progress:(nullable void (^)(NSProgress * _Nonnull))uploadProgress
                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure

BorisDeveloper avatar Sep 10 '16 14:09 BorisDeveloper