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(long id)
BlogPost getBlogPostById(String id)
List getBlogPostsByCategory(String category,String order,String direction,int page,int take)
List getBlogPostsByCategory(String category,int page,int take)
List getBlogPostsByCategory(String category)
List getBlogComments(long id,int count)
boolean deleteBlogComment(long id)
boolean deleteBlogComment(String comment_id)
boolean postToBlog(String category,String title,String body)
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)
String bind(String name)

Hosting

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