How to use ldr4j

  1. try {
  2. LDRClient ldrClient = new LDRClient("livedoorId", "passowrd");
  3. Pin[] pins = ldrClient.getAllPins();
  4. for (Pin pin : pins) {
  5. System.out.print(pin.getTitle());
  6. System.out.print(" ");
  7. System.out.println(pin.getLink());
  8. }
  9. } catch (LDRException e) {
  10. e.printStackTrace();
  11. }