Mega-Java icon indicating copy to clipboard operation
Mega-Java copied to clipboard

[actually not an issue] json fields

Open A7F opened this issue 7 years ago • 1 comments

where did you get documentation about the fields a json request should contain? as instance, here

public String add_user(String email) {
		JSONObject json = new JSONObject();
		try {
			json.put("a", "ur");
			json.put("u", email);
			json.put("l", 1);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return api_request(json.toString());
}

how do you know those "a","u","l" ? Is there a website or something? also, I do not need the whole functions from the official sdk; do you think is still possible to send POST and GET requests to them?

A7F avatar May 17 '17 10:05 A7F

For this specific case I just added an user on the website and then analyzed the flow of request/response through the chrome dev tool (something like fiddler, charles, burp, etc. should also work). For the concern about POST and GET requests I think that you can still do that, maybe you can have some headcache with the encryption things..

Ale46 avatar May 17 '17 11:05 Ale46