Commit dcfe887c authored by adcpm's avatar adcpm

Add example for broadcast a post

parent 04fc58e5
......@@ -41,6 +41,23 @@
}
);
/** Broadcast a post */
var permlink = new Date().toISOString().replace(/[^a-zA-Z0-9]+/g, '').toLowerCase();
steem.broadcast.comment(
postingWif,
'', // Leave parent author empty
'photography', // Main tag
username, // Author
permlink + '-post', // Permlink
'This is just a test!', // Title
'Nothing to see here', // Body
{ tags: ['test'], app: 'steemjs/examples' }, // Json Metadata
function(err, result) {
console.log(err, result);
}
);
/** Follow an user */
var follower = username; // Your username
var following = 'steemjs'; // User to follow
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment