Access Response Data in Success callback

后端 未结 2 1230
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 08:35

Is there any way to access the response data in the success block for a request using the object manager?

[objectManager postObject:[User class] path:@\"/use         


        
2条回答
  •  臣服心动
    2021-01-04 09:35

    You can get this info from the RKObjectRequestOperation *operation

    operation.HTTPRequestOperation.response
    operation.HTTPRequestOperation.responseData
    operation.HTTPRequestOperation.responseString
    

提交回复
热议问题