Skip to main content
GET
/
users
/
{user_id}
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;

public class MDX_RealTime {
	private String BaseUrl, ClientId, ApiKey;

	public MDX_RealTime(String BaseUrl, String ClientId, String ApiKey) {
		this.BaseUrl = BaseUrl;
		this.ClientId = ClientId;
		this.ApiKey = ApiKey;
	}

	public static void main(String[] args) throws Exception {
		String base_url = "https://int-live.moneydesktop.com";
		String client_id = ":client_id";
		String api_key = ":api_key";

		MDX_RealTime mdx = new MDX_RealTime(base_url, client_id, api_key);

		/// Setup IDs
		String user_id = "U-39XBF8";

		mdx.ReadUser(user_id);
	}

	public void ReadUser(String user_id) {
		try {
			String uri = BaseUrl + "/" + ClientId + "/users/" + user_id + ".json";
			URL url = new URL(uri);
			
			HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
			con.setRequestMethod("GET");
			con.setRequestProperty("Accept", "application/vnd.moneydesktop.mdx.v5+json");
			con.setRequestProperty("MD-API-KEY", ApiKey);

			BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
			String inputLine;
			StringBuffer response = new StringBuffer();
			while ((inputLine = in.readLine()) != null) {
				response.append(inputLine);
			}
			in.close();
			con.disconnect();

			System.out.println(response.toString());
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
{
   "user": {
      "id": "U-39XBF7",
      "birthdate": "1959-07-17",
      "gender": "MALE",
      "first_name": "John",
      "guid": "USR-c4321d57a-9ae4-1fe3-6c4e-96a84fb92b50",
      "last_name": "Smith",
      "metadata": "Additional Information",
      "credit_score": 718,
      "email": "example@example.com",
      "phone": "(505) 555-1234",
      "zip_code": "87101",
      "is_disabled": false,
      "logged_in_at": null
   }
}

Path Parameters

user_id
string
required
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;

public class MDX_RealTime {
	private String BaseUrl, ClientId, ApiKey;

	public MDX_RealTime(String BaseUrl, String ClientId, String ApiKey) {
		this.BaseUrl = BaseUrl;
		this.ClientId = ClientId;
		this.ApiKey = ApiKey;
	}

	public static void main(String[] args) throws Exception {
		String base_url = "https://int-live.moneydesktop.com";
		String client_id = ":client_id";
		String api_key = ":api_key";

		MDX_RealTime mdx = new MDX_RealTime(base_url, client_id, api_key);

		/// Setup IDs
		String user_id = "U-39XBF8";

		mdx.ReadUser(user_id);
	}

	public void ReadUser(String user_id) {
		try {
			String uri = BaseUrl + "/" + ClientId + "/users/" + user_id + ".json";
			URL url = new URL(uri);
			
			HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
			con.setRequestMethod("GET");
			con.setRequestProperty("Accept", "application/vnd.moneydesktop.mdx.v5+json");
			con.setRequestProperty("MD-API-KEY", ApiKey);

			BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
			String inputLine;
			StringBuffer response = new StringBuffer();
			while ((inputLine = in.readLine()) != null) {
				response.append(inputLine);
			}
			in.close();
			con.disconnect();

			System.out.println(response.toString());
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
{
   "user": {
      "id": "U-39XBF7",
      "birthdate": "1959-07-17",
      "gender": "MALE",
      "first_name": "John",
      "guid": "USR-c4321d57a-9ae4-1fe3-6c4e-96a84fb92b50",
      "last_name": "Smith",
      "metadata": "Additional Information",
      "credit_score": 718,
      "email": "example@example.com",
      "phone": "(505) 555-1234",
      "zip_code": "87101",
      "is_disabled": false,
      "logged_in_at": null
   }
}