Skip to end of banner
Go to start of banner

getBlog

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

stringyes

Key of space to search in.

blogTitlestringyesTitle of the blog to search for.
postingDatestringyes

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

  • No labels