Examples of postMicroblogEntry()


Examples of com.ibm.sbt.services.client.connections.activitystreams.ActivityStreamService.postMicroblogEntry()

     
      ActivityStreamService svc = new ActivityStreamService(ep);
      JsonJavaObject postPayload = new JsonJavaObject();
      postPayload.put("content", "Notification message content");

    String entryID = svc.postMicroblogEntry(getEnvironment().getCurrentUserUuid(), null, null, postPayload);
    System.out.println("Created Notification Entry "+entryID);
      } finally {
        ((BasicEndpoint)ep).setUser(getEnvironment().getCurrentUsername());
        ((BasicEndpoint)ep).setPassword(getEnvironment().getCurrentUserPassword());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.