它不重复。提供的链接是旧链接。api23中的"http客户端"已删除
我想发送json对象:
{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
到网址:
http://10digimr.mobimedia.in/api/mobile_retailer/update_profile我该怎么做?通过post方法?
方法:
POST /api/mobile_retailer/update_profile
强制键:
{"emailId","address"}
请求JSON:
{"emailId":"ashish.bhatt@mobimedia.in","address":"Naya bans","city":"Noida","pincode":"201301","account_number":"91123546374208","bank_name":"Axis Bank","branch_name":"91123546374208","ifsc_code":"UTI0000879"}
回复:
{"message":"Mail Send","data":true,"status":200}
2条答案
按热度按时间bqjvbblv1#
定义一个类
AsyncT
,并使用以下命令在onCreate
方法中调用它:类别定义:
ilmyapht2#
@Sandip Subedi这是您从httpURLConnection获得响应的方式