We have a live example of all snippets on http://gorillaapi.hyves.nl/
(Our API-documentation friend ;) you will have to be in Sandbox mode to view these gadgets).
Example of displaying Adobe flash content.
To display different content in each viewport it is possible to recognize each view through content sections.
Example of getting the information of the skin that the Hyver is using, this way the application can blend in with the profile (Spec reference).
Getting data from Owner, Viewer, Hyver or Friends
To know who the viewer and the owner is. To get the owner friends or specific Hyvers (They are sorted and can be set with a amount of Hyvers you want each newFetchPeopleRequest.
You can add Google analytics tracking to a gadget. More information on the http://code.google.com/apis/gadgets/docs/legacy/tools.html#Analytics_Gadgets Google documentation.
Getting OWNER/VIEWER's number of friends
Person objects don't have a field with its number of friends.
Has app installed
Check if the viewer has the app installed. Also possible to check on owner or viewer friends.
Install Gadget button
Place a button inside the gadget where the user can install the gadget on his own profile.
MiniMessage (inside the Gadget)
Create messages that will appear to the user within the gadget.
Passing params to another view
Passing parameters when navigating to another view of the opensocial gadget.
Personalize a gadget using appParams and appData
You can use a combination of appParams and appData to create a personalized gadget.
Setting and fetching appdata
Storing of viewer data (you can store up to 10kb with each instance).
Example of doing a signed request with gadgets.io.makeRequest.
Example of using the tabs functionality within OpenSocial.
Send application message
Example of sending a message to one or more Hyvers. opensocial.requestSendMessage() will initiate a TellAfriend dialog where users can be preselected.
Share gadget with friends (appInvite)
With this function it's possible to invite a friend with a gadget. A gadget install request will stay open until the user responds.
Check if the Viewer is logged in and has the right permissions
The Viewer information is not always available. You need to check if this is needed.
WWWS on the map
Example of using a xml file with your public wwws that are displayed on a Google map.
Example of localizing your app. Most Hyvers are speaking and reading the Dutch language, but to be sure you can use the localization tools.
If you have an code snippet that you think is missing or u want to share on this page. Please let us know on hyves-api[at]hyves.nl.