DEBUG: wp_remote_get to https://api.digitalmedia.hhs.gov/api/v2/resources/media/searchResults.json?q=mental
DEBUG: arguments: Array
(
[timeout] => 5
)
DEBUG: success getting URL
If you use WordPress without Gutenberg, you can use this Shortcode (copy with Strg+A, paste to TEXT-editor!):
api-answer:
Inspect JSON: Copypaste (click in box, Strg-A marks all, then insert into clipboard) the JSON from the following box to
https://jsoneditoronline.org):
template:
result:
Plugin-Settings (see Plugin options):Cache: disabled
oauth Bearer Accesskey:
http-Header default Useragent:
the real result:
Empty template: Add some text! For the example copypaste this to the right Template box:
start: {start}<br> {subloop-array:level2:-1} level2: {level2.key} <br>{subloop:level2.data:-1} id: {level2.data.id}, type: {level2.data.type}<br> {/subloop:level2.data} {/subloop-array:level2}