Writing Diary Entries
Advance preparation
In Mobage, users can write diary entries and share them with other users. An API is provided in the Mobage open platform that allows this feature to be used from applications. If the API is used, a pop-up window for creating a diary entry appears on the user's screen.
The mbga feature specifications must be declared under Required Elements in Gadget XML in order to use this API.
Creating a diary entry
The following is sample code for creating a diary entry.
- Create a Diary object with the mbga.newCreateDiary() method.
- Request the creation of a diary entry with the mbga.requestCreateDiary() method.
- If the request is successful, an mbga.Diary object is stored and returned in the DataResponse.
The following is sample code for specifying a default title, contents, and image.
Revision History
- 12/2010
- Initial Release.