MySpace Open Platform

A Place For Developers

Welcome Developers!

Welcome!

Return to Developer Documentation.

Library: MyOpenSpace003.Core.v07.js
Overview
Interface for container and associated classes; everything needed to query/update MySpace API data via OpenSocial interface.
  • source: MyOpenSpace003.Core.v07.js
  • desc: Copyright 2007 Fox Interactive Media
  • author: mnewbould@myspace.com (Max Newbould)
  • author: crussell@myspace.com (Chad Russell)
Constructors
MyOpenSpace.MySpaceContainer()
The MySpace container class, extends opensocial.Container. Use opensocial.Container.get() to retrieve this singleton.
methods
  • postTo(os_token, message, opt_person, opt_callback)
Namespaces
MyOpenSpace.Person.Field
The fields for the extended MyOpenSpace.Person
properties
MyOpenSpace.View.Field
Enumerates the types of surfaces supported, extended version of gadgets.views.ViewType
properties
MyOpenSpace.Environment.ObjectType
properties
Functions
MyOpenSpace.MySpaceContainer.getMySpaceEnvironment()
Returns the container's MySpace environment object
returns
MyOpenSpace.Environment
MyOpenSpace.MySpaceContainer.newAlbum(opt_params)
Returns a new MyOpenSpace.Album instance
parameters
undefined opt_params Unused at this time.
returns
MyOpenSpace.Album The album object
MyOpenSpace.MySpaceContainer.newVideo(opt_params)
Returns a new MyOpenSpace.Video instance
parameters
undefined opt_params Unused at this time.
returns
MyOpenSpace.Video The album object
MyOpenSpace.MySpaceContainer.newPhoto(opt_params)
Returns a new MyOpenSpace.Photo instance
parameters
undefined opt_params Unused at this time.
returns
MyOpenSpace.Photo The photo object
MyOpenSpace.MySpaceContainer.postTo(os_token, message, opt_person, opt_callback)
Takes some content from the app and sends it up to the site to be posted.
parameters
String os_token The token, this gets passed up so we can verify who's sending the request.
opensocial.Message message The content to be posted, the message type refers to the target of the post.
opensocial.Person opt_person An optional opensocial.Person object, used when a recipient is required, e.g. when posting a comment, this person will get the comment.
Function opt_callback Callback function, right now just for success/fail.
Objects
A string representing a Person's city of residence.
A string representing a Person's state/province/region of residence.
A string representing a Person's zip/postal code.
A string representing a Person's country of residence.
A string representing a Person's city of birth.
A string representing a Person's locale.
A string representing a Person's headline or shoutout.
A string representing a Person's current job and job history.
A string representing a Person's zodiac sign.
A string representing a Person's current mood.
MyOpenSpace.Person.Field.MOOD_LAST_UPDATED
A string representing a the last tme a Person's mood was updated.
A string representing a list of people the Person would like to meet.
A string representing whether a person is currently online.
MyOpenSpace.Group.VIEWER_ALBUM
The idSpec for a viewer album.
MyOpenSpace.Group.OWNER_ALBUM
The idSpec for an owner album.
MyOpenSpace.Group.VIEWER_ALBUMS
The idSpec for viewer albums.
MyOpenSpace.Group.OWNER_ALBUMS
The idSpec for owner albums.
MyOpenSpace.Group.VIEWER_VIDEO
The idSpec for a viewer video.
MyOpenSpace.Group.OWNER_VIDEO
The idSpec for an owner video.
MyOpenSpace.Group.VIEWER_VIDEOS
The idSpec for viewer videos.
MyOpenSpace.Group.OWNER_VIDEOS
The idSpec for owner videos.
MyOpenSpace.Group.VIEWER_PHOTO
The idSpec for a viewer photo.
MyOpenSpace.Group.OWNER_PHOTO
The idSpec for an owner photo.
MyOpenSpace.Group.VIEWER_PHOTOS
The idSpec for viewer photos.
MyOpenSpace.Group.OWNER_PHOTOS
The idSpec for owner photos.
MyOpenSpace.Group.VIEWER_APP_DATA
The idSpec for viewer app data.
MyOpenSpace.Group.OWNER_APP_DATA
The idSpec for owner app data.
MyOpenSpace.Group.VIEWER_FRIENDS_APP_DATA
The idSpec for viewer friends app data.
MyOpenSpace.Group.OWNER_FRIENDS_APP_DATA
The idSpec for owner friends app data.
MyOpenSpace.Group.VIEWER_UPDATE_APP_DATA
The idSpec for viewer app data.
MyOpenSpace.Group.OWNER_UPDATE_APP_DATA
The idSpec for owner app data.
MyOpenSpace.Group.GLOBAL_APP_DATA
The idSpec for global app data.
MyOpenSpace.Group.GLOBAL_UPDATE_APP_DATA
The idSpec for global app data.
Defines an enum for a fetch person request.
Defines an enum for a fetch people request.
MyOpenSpace.RequestType.FETCH_GLOBAL_DATA
Defines an enum for a fetch global data request.
MyOpenSpace.RequestType.FETCH_INSTANCE_DATA
Defines an enum for a fetch instance data request.
MyOpenSpace.RequestType.UPDATE_INSTANCE_DATA
Defines an enum for an update instance data request.
MyOpenSpace.RequestType.FETCH_PERSON_DATA
Defines an enum for a fetch person data request.
MyOpenSpace.RequestType.UPDATE_PERSON_DATA
Defines an enum for an update person data request.
MyOpenSpace.RequestType.FETCH_ACTIVITIES
Defines an enum for a fetch activities request.
Defines an enum for a fetch albums request.
Defines an enum for a fetch album request.
Defines an enum for a fetch videos request.
Defines an enum for a fetch video request.
Defines an enum for a fetch photos request.
Defines an enum for a fetch photo request.
The canvas.
The left column on a profile page.
The right column on a profile page.
The home page.
The default view.
Generated by JsDoc Toolkit 1.4.0 on Fri, 04 Apr 2008 20:04:38 GMT.