Plugin Author
berkux
(@berkux)
Hi,
try
[jsoncontentimporter url=http://api.margocity.com/api/Event/All?token=xxx debugmode=10]
Id:{id}
Name:{name}
etc
[/jsoncontentimporter]
This should give you info on the request: Maybe no JSON is retrieved…
Bernhard
-
This reply was modified 8 years, 3 months ago by
berkux.
Hai Mr. Bernhard,
I’m sorry i was on another site duty, so i just tried today.
here is the debug tells me.
DEBUG: Cache is NOT active
DEBUG: try to retieve http://api.margocity.com/api/Event/All?token=xxx
DEBUG: wp_remote_get to http://api.margocity.com/api/Event/All?token=xxx
DEBUG: arguments: Array ( [timeout] => 5 )
Something went wrong fetching URL with JSON-data: cURL error 7: Failed to connect to api.margocity.com port 80: Connection refusedDEBUG: error getting URL: cURL error 7: Failed to connect to api.margocity.com port 80: Connection refused
error: get of json-data failed – plugin aborted: check url of json-feedDEBUG: no data received: check url of json-feed
DEBUG: api-answer:
DEBUG: basenode:
DEBUG: template:
<br />Id:{id}<br />Name:{name}<br />
please kindly to teach me, what i’m doing wrong or what do i need to show up the data.
thank you so much for your help Mr. Bernhard.
Hai Mr. Bernhard,
I’ve got it work.
like this
DEBUG: Cache is NOT active
DEBUG: try to retieve http://172.16.2.3:8123/api/Event/All?token=xxx
DEBUG: wp_remote_get to http://172.16.2.3:8123/api/Event/All?token=xxx
DEBUG: arguments: Array ( [timeout] => 5 )
DEBUG: success getting URL
DEBUG: api-answer:
{“Message”:”The requested resource does not support http method ‘GET’.”}
DEBUG: basenode:
DEBUG: template:
<br />Id:{id}<br />Name:{name}<br />
DEBUG: result:
<br />Id:<br />Name:<br />
but how do i change the method from GET to POST ?
kindly to teach me.
Thanks in advance.
Plugin Author
berkux
(@berkux)
post is not possible with the free version, this is a pro-feature