From dcfe887c83a386eaaa449e84695fab8c2c7a44d5 Mon Sep 17 00:00:00 2001
From: adcpm <fabien@bonustrack.co>
Date: Fri, 2 Jun 2017 17:25:35 +0700
Subject: [PATCH] Add example for broadcast a post

---
 examples/broadcast.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/examples/broadcast.html b/examples/broadcast.html
index 3d4464b..170b652 100644
--- a/examples/broadcast.html
+++ b/examples/broadcast.html
@@ -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
-- 
GitLab