Example usage for org.json JSONObject JSONObject

List of usage examples for org.json JSONObject JSONObject

Introduction

In this page you can find the example usage for org.json JSONObject JSONObject.

Prototype

public JSONObject() 

Source Link

Document

Construct an empty JSONObject.

Usage

From source file:com.citrus.mobile.RESTclient.java

public RESTclient(String type, String base_url, JSONObject params, JSONObject headers) {

    this.params = params;
    this.headers = headers;
    this.type = type;
    urls = new JSONObject();

    try {//from   w  w w .ja v  a2  s  .c o  m
        urls.put("production", "https://admin.citruspay.com/");
        urls.put("oops", "https://oops.citruspay.com/");
        urls.put("sandbox", "https://sandboxadmin.citruspay.com/");
        urls.put("signup", "oauth/token");
        urls.put("bind", "service/v2/identity/bind");
        urls.put("signin", "oauth/token");
        urls.put("wallet", "service/v2/profile/me/payment");
        urls.put("struct", "service/moto/authorize/struct/payment");
        urls.put("prepaid", "prepaid/pg/_verify");
        urls.put("balance", "service/v2/mycard");
        urls.put("newbalance", "service/v2/mycard/balance");

        urls.put("password", "service/v2/identity/me/password");
        urls.put("specialbalance", "service/v2/prepayment/balance");
        urls.put("resetpassword", "service/v2/identity/passwords/reset");
        urls.put("prepaidbill", "service/v2/prepayment/load");
        urls.put("paymentoptions", "service/v1/merchant/pgsetting");
        urls.put("cashout", "service/v2/prepayment/cashout");
        urls.put("transfer", "service/v2/prepayment/transfer");
        urls.put("suspensetransfer", "service/v2/prepayment/transfer/extended");
    } catch (JSONException e) {
        return;
    }
    this.base_url = base_url;
}