Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void create(String BASICURL, String LANG, String REFERENCE,int TERMINALID, String CURRENCY, String PLAYERID, String DATE1, int AMOUNT, String CHARACTERISTIC, String CATEGORY, String ORGANIZER) throws Exception
- {
- config = config().with().sslConfig(sslConfig().relaxedHTTPSValidation().and().allowAllHostnames());
- resp = given()
- .headers("Content-Type", "application/json")
- .queryParam("reference", REFERENCE)
- .queryParam("subreference", 1)
- .queryParam("amount", AMOUNT)
- .queryParam("currency", CURRENCY)
- .queryParam("lang", LANG)
- .queryParam("playerid", PLAYERID)
- .queryParam("sessiontoken", new JSONObject()
- .put("playerId", PLAYERID)
- .put("terminalId", TERMINALID).toString())
- .queryParam("bets", getJsonArray(DATE1, CHARACTERISTIC, CATEGORY, ORGANIZER).toString())
- .when().post(BASICURL + "wager");
- code = resp.jsonPath().getInt("code"); //parse code
- log1.info("playerid: " + PLAYERID + ", " +
- "reference: " + REFERENCE + ", " +
- "Code: " + code + ", " +
- "CHARACTERISTIC: " + CHARACTERISTIC + ", " +
- "CATEGORY: " + CATEGORY);
- }
Advertisement
Add Comment
Please, Sign In to add comment