From ce56077a1361fffbf190a5969b5397ee369adce9 Mon Sep 17 00:00:00 2001
From: yamadapc <tacla.yamada@gmail.com>
Date: Mon, 24 Oct 2016 10:34:36 -0200
Subject: [PATCH] Start a test-vote example

---
 examples/test-vote.js | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 examples/test-vote.js

diff --git a/examples/test-vote.js b/examples/test-vote.js
new file mode 100644
index 0000000..a47ba2a
--- /dev/null
+++ b/examples/test-vote.js
@@ -0,0 +1,19 @@
+const steemauth = require('steemauth');
+const steem = require('..');
+
+const username = process.env.STEEM_USERNAME;
+const password = process.env.STEEM_PASSWORD;
+const wif = steemauth.toWif(username, password, 'posting');
+
+steem
+  .broadcast
+  .upvote(
+    wif,
+    username,
+    'yamadapc',
+    'test-post-bop-1-2-3-4-5-6',
+    null,
+    function(err, result) {
+      console.log(err, result);
+    }
+  );
-- 
GitLab