public class Api extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
YhsdResponse |
delete(String path)
http delete请求
|
YhsdResponse |
get(String path)
http get请求
|
YhsdResponse |
get(String path,
Map<String,String> params)
http get请求
|
protected static Api |
getInstance(String token,
String apiHost,
String httpProtocol) |
YhsdResponse |
post(String path,
String json)
http post请求
|
YhsdResponse |
put(String path,
String json)
http put请求
|
public YhsdResponse get(String path)
path - 请求的路径public YhsdResponse get(String path, Map<String,String> params)
path - 请求的路径params - 请求的参数public YhsdResponse post(String path, String json)
path - 请求的路径json - 请求的jsonpublic YhsdResponse put(String path, String json)
path - 请求的路径json - 请求的jsonpublic YhsdResponse delete(String path)
path - 请求的路径Copyright © 2016. All rights reserved.