Raw JSON data

You can include JSON data for your page by simply adding the following code.

User Profile

CODE:

<script language="Javascript">
    var returnFunction = function() {
        // Do something with the JSON
        var user = pownce.api.json.userprofile;
    };

    // Load the public notes list JSON
    pownce.api.user.profile({username:"dburka", onCallBack: returnFunction});

</script>
		

RESULT:

        

Public Notes List

CODE:

<script language="Javascript">
    var returnFunction = function() {
        // Do something with the JSON
        var json = pownce.api.json.publicnotelist;
    };

    // Load the public notes list JSON
    pownce.api.notes.publiclist({limit:1, onCallBack: returnFunction});

</script>
		

RESULT:

        

Public Note

CODE:

<script language="Javascript">
    var returnFunction = function() {
        // Do something with the JSON
        var note = pownce.api.json.publicnote;
    };

    // Load the public notes list JSON
    pownce.api.notes.publicnote({note_id:"1519078", onCallBack: returnFunction});

</script>
		

RESULT: