Skip to content
Snippets Groups Projects
Commit dcfe887c authored by adcpm's avatar adcpm
Browse files

Add example for broadcast a post

parent 04fc58e5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment