Created
September 18, 2009 04:47
-
-
Save kawahara/188880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="hello world OSAPI"> | |
<Require feature="opensocial-0.8" /> | |
<Require feature="osapi" /> | |
<Require feature="dynamic-height" /> | |
</ModulePrefs> | |
<Content type="html"><![CDATA[ | |
こんにちはだよ!! | |
<script type="text/javascript"> | |
function init() | |
{ | |
gadgets.window.adjustHeight(); | |
osapi.people.getViewer().execute(function(result) { | |
alert('Your name is ' + result.displayName + '!'); | |
}); | |
} | |
gadgets.util.registerOnLoadHandler(init); | |
</script> | |
]]></Content> | |
</Module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment