Introduction to interactive samples

One of the advantages of having a JavaScript client library is that it allows us to provide an interactive browser environment to render sample codes.

The ability to play with the code as you are going through sample code is a great way to learn a new client library. The following samples are completely interactive, you are able to modify and execute the code straight out of the source code textarea. Feel free to modify the source code to get a feel for how the different objects and properties are used. You can utilize the predefined PRINT() method which outputs the argument as a string in the output tab after you hit the "Run" button.

Caution: The samples below are structured to minimize the accidental update or deletion of your personal Blogger data. Any data inserted into your blog(s) is prefixed with "JS-Blogger-Client". In this way, the samples will prevent you from accidently updating or deleting a real post or comment in your blog. But caution should always be exercised, as you are able to change the code any which way you desire.


Managing Blogs:

Retrieve a list of blogs
Managing Blog Posts:

Retrieve a list of blog posts
Creating a new blog post
Retrieve a specific blog post
Update a blog post
Delete a blog post
Query for blog posts
Managing Post Comments:

Retrieve a list of comments
Create a comment
Delete a comment

Note: In order to execute the following interactive JavaScript samples, you must authenticate using your Google account credentials.