Package org.opensocial.models

Examples of org.opensocial.models.Activity


    "20ab52223e684594a8050a8bfd4b06693ba9c9183ee24e1987be87746b1b03f8";
  private static final String MYSPACE_ID = "495184236";

  @Test
  public void createMySpace() {
    Activity activity = new Activity();
    activity.setTitle("opensocial-java-client test activity at " +
        new Date().getTime());
    activity.setBody("opensocial-java-client test activity body");
    activity.setTitleId("test");

    try {
      Client client = new Client(new MySpaceProvider(),
          new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));
      Request request = ActivitiesService.createActivity(activity);
View Full Code Here


    }
  }

  @Test
  public void testActivitiesCreate() throws RequestException, IOException {
    Activity activity = new Activity();
    activity.setBody("activity body");
    activity.setTitleId("titleId");
    request = ActivitiesService.createActivity(activity);
    assertRequestValid(null, "activities.create", "POST");
    assertRequestComponent("@me", Request.GUID);
    assertRequestComponent("@self", Request.SELECTOR);
    assertRequestComponent("@app", Request.APP_ID);
View Full Code Here

TOP

Related Classes of org.opensocial.models.Activity

Copyright © 2018 www.massapicom. 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.