Simple Platform Template API Guide

User

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

Website

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

Messaging

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

Blog

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

Hosting

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