You are viewing a single comment's thread from:
RE: 0000000000001100 - Steemit Interface PoC - What Do Users Do With Their Steem?
Thanks for answering. I'm taking the /transfers_api/getTransfersByTypeFrom/transfer/oscarcc89
api and used this script to connect and try to display it 😄
This data appears in the browser console but I have not been able to show it in the table. I am using a bootstrap template with hmtl5.
Thanks my friend. If you prefer you can write to me on discord. oscarcc89#4887
You can see in the console the structure of the response. You have not built this structure into your code.
The response has an element
result
. And in it is the elementrow
. And it contains the transactions that you run through with your loop.It's often useful to have these discussions publicly so that others can see in the future who might have the same problem 🙂
To output the JSON object into a template, the first thing I did was convert the object to an Array and then navigate this Array instead.
PHP has a var_dump command which outputs the array into the browser - I'd recommend keeping your code away from the HTML template for now. Perhaps using document.write() or alert() as a starting point. If you can get a piece of data output like this, then it should make embedding it into a template easier.