Simple Platform Template API Guide

User

Returns Function
ApiResult generateNonce()
ApiResult createUser(String identifier,String password)
ApiResult loginUser(String identifier,String password)
ApiResult getSession()
ApiResult logout()

Website

Returns Function
String getAdminLink()
String bind(String name)
String bind(String name,String defaultValue)

Messaging

Returns Function
String getTemplateInterfaceName()
ApiResult sendMessage(String to_user,String title,String body,String name,String email,String phone)

Blog

Returns Function
String getTemplateInterfaceName()
BlogPost getBlogPostById(String id)
BlogPost getBlogPostById(long id)
List getBlogComments(long id,int count)
boolean deleteBlogComment(String comment_id)
boolean deleteBlogComment(long id)
boolean postToBlog(String category,String title,String body)
boolean postComment(String id,String parentCommentId,String comment)
boolean postComment(long blogpost_id,String comment)
List getBlogPostsByCategory(String category,String order,String direction,int page,int take)
List getBlogPostsByCategory(String category,int page,int take)
List getBlogPostsByCategory(String category)
boolean likeBlogPost(long l_id)
boolean likeBlogPost(String id)
boolean likeComment(String id)
boolean likeComment(long l_id)
void processBlogPostsForInlineEditing(List posts,String category)
String bind(String name)

Hosting

Returns Function
String getTemplateInterfaceName()
boolean isDomainAvailable(String domain)
Website createWebsite(String domain,String password,String contact_email,String product_sku)
int getWebsiteCount()