Hey, thanks! I’m trying to figure out the same thing.
How would we go about executing this code? I want to pull JSON feed from an external site. So I understand that I would then replace:
“url: ‘/api/get_nonce/?controller=posts&method=create_post’,”
with my external feed with API key? Or where do we place the source url?
And the other part, is with the data:
data: {nonce: data.nonce, status:’xxxx’,title:’xxxx’, content:’xxxx’},
Do we replace the ‘xxxx’ with JSON field names? And is it possible to add custom fields to the string?
Thanks and I know this is a lot but I’m really new to JSON and JQUERY, and I can kind of figure it out but just missing the right people to ask!