public static void sendNote(String apiKey, String iden, String title,
			String body) {

		try {
			final SSLSocketFactory sslSocketFactory = (SSLSocketFactory) SSLSocketFactory
					.getDefault();
			URL url;
			url = new URL("https://api.pushbullet.com/api/pushes");
			final HttpsURLConnection connection = (HttpsURLConnection) url
					.openConnection();
			connection.setSSLSocketFactory(sslSocketFactory);

			final String authStr = apiKey + ":";
			final String authEncoded = Base64.encode(authStr.getBytes());
			connection.setRequestProperty("Authorization", "Basic "
					+ authEncoded);

			connection.setRequestProperty("Content-Type",
					"application/x-www-form-urlencoded;charset=UTF-8");
			connection.setRequestMethod("POST");

			connection.setUseCaches(false);
			connection.setDoInput(true);
			connection.setDoOutput(true);

			DataOutputStream wr = new DataOutputStream(
					connection.getOutputStream());

			String request = "device_iden=" + URLEncoder.encode(iden, "UTF-8")
					+ "&" + "type=note" + "&" + "title="
					+ URLEncoder.encode(title, "UTF-8") + "&" + "body="
					+ URLEncoder.encode(body, "UTF-8");
			wr.writeBytes(request);
			wr.flush();
			wr.close();

			// Get Response
			InputStream is = connection.getInputStream();
			BufferedReader rd = new BufferedReader(new InputStreamReader(is));
			String line;
			StringBuffer response = new StringBuffer();
			while ((line = rd.readLine()) != null) {
				response.append(line);
				response.append('\r');
			}
			rd.close();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}