post 请求
public void post(String url, String mobile_brand, String token) {
RequestBody formBody = new FormBody.Builder()
.add("third_tag", "1")
.add("source", "2")
.add("user_id", "6")
.add("api_token", "$2y$10$miqu6h5wivsEeIMRxCZEuerbhsYJ/xa/cKF5gr3d59PR2nkz0Lozi")
.add("mobile_brand", mobile_brand)
.add("token", token)
.build();
OkHttpClient client = new OkHttpClient.Builder().readTimeout(5, TimeUnit.SECONDS).build();
Request request = new Request.Builder().url(url).post(formBody).build();
okhttp3.Call call = client.newCall(request);
call.enqueue(new Callback() {
@Override
public void onFailure(okhttp3.Call call, IOException e) {
e.printStackTrace();