Function to execute the request to get the links of the user
the result of the request as JSONObject
: whether to get only the links where the user is the owner