Syntax
getBlog(spaceKey, title, postingDate)
Description
Retrieves a blog ID by searching for space key, blog title and posting date. The routine will return a -1 if the blog is not found.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
spaceKey | string | yes | Key of space to search in. |
blogTitle | string | yes | Title of the blog to search for. |
postingDate | string | yes | Posting date of the blog to search for. Format: "yyyy-MM-dd". |
Return type
number
Examples
Example 1
number blog = getBlog("PSCONF", "Some Blog", "2010-01-20"); print("Return " + blog);
Print Return 323827648
Example 2
number page = getBlog("PSCONF", "Non-ExistantBlog", "2010-01-20"); print("Return " + blog);
Print Return -1
See also