Package org.opensocial.models.myspace

Examples of org.opensocial.models.myspace.Comment


      Client client = new Client(new MySpaceProvider(),
          new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));
      Request request = ProfileCommentsService.getComments();
      Response response = client.send(request);

      Comment comment = response.getEntry();
      assertTrue(comment.getId() != null);
      assertTrue(comment.getBody() != null);
      assertTrue(comment.getAuthorId() != null);
      assertTrue(comment.getPostedDate() != null);
    } catch (Exception e) {
      fail("Exception occurred while processing request");
    }
  }
View Full Code Here

TOP

Related Classes of org.opensocial.models.myspace.Comment

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.