Package org.opensocial.models.myspace

Examples of org.opensocial.models.myspace.Notification


          new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));

      MediaItem mediaItem = new MediaItem();
      mediaItem.setUrl("http://api.myspace.com/v1/users/63129100");

      Notification notification = new Notification();
      notification.setContent("Hi ${recipient}, here's a notification from " +
          "${canvasUrl}");
      notification.addRecipient("495184236");
      notification.addMediaItem(mediaItem);

      Request request = NotificationsService.createNotification(notification);
      Response response = client.send(request);

      assertTrue(response.getStatusLink() != null);
View Full Code Here

TOP

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

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.