BloggerApi.getBlog (blogid)
Utility function that retrieves a site-object

  • Parameter blogid:
    String
  • Returns
    site Object
Sourcecode in BloggerApi/bloggerAPI.js:
1:   function getBlog(blogid) {
2:      var blog = root.get (blogid.toString());
3:      if (!blog)
4:         throw("The site " + blogid + " doesn't exist on this server.");
5:      else if (blog.blocked)
6:         throw("The site " + blogid + " was disabled.");
7:      return blog;
8:   }