You are viewing a single comment's thread from:

RE: Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?

in #steem5 years ago

UPDATE:

So I can call my JSON data here... https://steemit.com/@the-bitcoin-dood.json

I can get just about any info I don't need... Wallet balance, profile data... Does anyone know how I pull a list of posts? Say the last 5 things I posted? I found post_history :

"post_history":[

  ],

but when I pull it up in console.log I just get the brackets.

function steemIt() {
request({
url:"https://steemit.com/@the-bitcoin-dood.json",
json:true
}, function(error, response, body){
var getData = body.user.post_history;
console.log(getData);
})
}

result in node:

c:\Node_Projects\steemit>node steemit.js
[]

Sort:  

.

Thanks for all the help! I just added both links to my notes. I've got some reading and experimenting to do :)

Coin Marketplace

STEEM 0.19
TRX 0.16
JST 0.032
BTC 64166.71
ETH 2765.60
USDT 1.00
SBD 2.72