Class MyOpenSpace.DataRequest
Defined in: MyOpenSpace.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
An extension of opensocial.DataRequest, used to facilitate extended entity calls.
|
| Method Attributes | Method Name and Description |
|---|---|
|
add(request, opt_key)
|
|
|
newFetchActivitiesRequest(idSpec, opt_params)
|
|
| <static> |
MyOpenSpace.DataRequest.newFetchAlbumRequest(id, album_id, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchAlbumsRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchIndicatorsRequest(id, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchPeopleFriendshipRequest(id, key, opt_params)
Creates an object to be used when sending to the server
|
|
newFetchPeopleRequest(id, opt_params)
|
|
|
newFetchPersonAppDataRequest(id, keys, opt_params)
|
|
| <static> |
MyOpenSpace.DataRequest.newFetchPersonFriendshipRequest(id, key, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchPersonMoodRequest(id, opt_params)
Creates an object to be used when sending to the server
|
|
newFetchPersonRequest(id, opt_params)
|
|
| <static> |
MyOpenSpace.DataRequest.newFetchPersonStatusRequest(id, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchPhotoRequest(id, photo_id, opt_params)
Creates an object to be used when sending to the server.
|
| <static> |
MyOpenSpace.DataRequest.newFetchPhotosRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchVideoRequest(id, video_id, opt_params)
Creates an object to be used when sending to the server
|
| <static> |
MyOpenSpace.DataRequest.newFetchVideosRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
|
|
newRemovePersonAppDataRequest(id, keys)
|
|
|
newUpdatePersonAppDataRequest(id, key, value)
|
|
|
send(opt_callback)
|
Class Detail
MyOpenSpace.DataRequest()
An extension of opensocial.DataRequest, used to facilitate extended entity calls.
Method Detail
add(request, opt_key)
- Parameters:
- request
- opt_key
allRequestsCompleteCallback_()
getRequestObjects()
newFetchActivitiesRequest(idSpec, opt_params)
- Parameters:
- idSpec
- opt_params
<static>
{Object}
MyOpenSpace.DataRequest.newFetchAlbumRequest(id, album_id, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the album
- {Number} album_id
- The ID of the photo to fetch
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchAlbumsRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the albums
- {Map<opensocial.DataRequest.PeopleRequestFields.FIRST || opensocial.DataRequest.PeopleRequestFields.MAX>} opt_params
- Optional parameters specified when creating the albums.
- opt_params
- Returns:
- {Object} A request object
newFetchGlobalAppDataRequest()
<static>
{Object}
MyOpenSpace.DataRequest.newFetchIndicatorsRequest(id, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
newFetchInstanceAppDataRequest()
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPeopleFriendshipRequest(id, key, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person
- {Array} key
- The array of IDs of the people to verify friendship.
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
newFetchPeopleRequest(id, opt_params)
- Parameters:
- id
- opt_params
newFetchPersonAppDataRequest(id, keys, opt_params)
- Parameters:
- id
- keys
- opt_params
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPersonFriendshipRequest(id, key, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person
- {String} key
- The ID of the person to verify friendship
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPersonMoodRequest(id, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
newFetchPersonRequest(id, opt_params)
- Parameters:
- id
- opt_params
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPersonStatusRequest(id, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPhotoRequest(id, photo_id, opt_params)
Creates an object to be used when sending to the server.
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the photo
- {Number} photo_id
- The ID of the photo to fetch
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchPhotosRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the photos
- {Map<opensocial.DataRequest.PeopleRequestFields.FIRST || opensocial.DataRequest.PeopleRequestFields.MAX>} opt_params
- Optional parameters specified when creating the photos.
- opt_params
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchVideoRequest(id, video_id, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the album
- {Number} video_id
- The ID of the photo to fetch
- {undefined} opt_params
- Not used at this time.
- Returns:
- {Object} A request object
<static>
{Object}
MyOpenSpace.DataRequest.newFetchVideosRequest(id, opt_params, opt_params)
Creates an object to be used when sending to the server
- Parameters:
- {String} id
- The ID (VIEWER or OWNER) of the person who owns the albums
- {Map<opensocial.DataRequest.PeopleRequestFields.FIRST || opensocial.DataRequest.PeopleRequestFields.MAX>} opt_params
- Optional parameters specified when creating the videos.
- opt_params
- Returns:
- {Object} A request object
newRemovePersonAppDataRequest(id, keys)
- Parameters:
- id
- keys
newUpdateInstanceAppDataRequest()
newUpdatePersonAppDataRequest(id, key, value)
- Parameters:
- id
- key
- value
send(opt_callback)
- Parameters:
- opt_callback