This is the first version of the code, I think I'll add other features later:
- auto reauth whenever the authtoken gets invalid
- add some support for posting binary data, like images..
- replace those antislashed double quotes by simple quotes ;)
blogger_srv:init().
Call the 'auth' fun to obtain a valid 'AuthToken':
blogger_srv:auth("youremail@gmail.com", "yourpass").
Finally call the 'new/4' or 'new/5' fun to post a message:
blogger_srv:new(yourBlogId, Title, [Tags], <<Content>>).
blogger_srv:new(yourBlogId, Title, [Tags], <<Content>>, AuthorName, AuthorEmail).
When the post is successfull, 'new/4' or 'new/5' will returns:
{ok, NewPostId}
That's all for now !
No comments:
Post a Comment