Mega-Java
Mega-Java copied to clipboard
[actually not an issue] json fields
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?
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..