Plugin Author
berkux
(@berkux)
Hallo Daniel,
mit
http://api.presseportal.de/api/article/all/?api_key=…&format=json
hatte ich mal eine Anfrage.
Damals ging das:
[jsoncontentimporter url=”http://api.presseportal.de/api/article/keyword/bundesliga?api_key=…&format=json” basenode=”content”]
{subloop-array:story:-1}{story.title}
{subloop:story.media:-1}uuuuuuu{/subloop:story.media}
<hr>{/subloop-array:story}
[/jsoncontentimporter]
Ob das heute noch geht weis ich nicht.
Unter
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
wäre es denkbar, den APIKey vertraulich zu posten (bitte nicht hier).
Gruß
Bernhard
-
This reply was modified 6 years, 7 months ago by
berkux.
Guten Tag,
ich habe das gleiche Problem. Ich benutze den ersten Shortcode aus dem Backend des Plugins. Wenn ich dann folgende URL einsetzte (API entfernt)
https://api.presseportal.de/api/v2/stories/police/federalstate/rheinland-pfalz/image?api_key=XXXXXXXXX&format=json&limit=10&teaser=1
bekomme ich die Fehlermeldung
“Either we got not JSON from the API. Or the basenode parameter is not OK.
Wenn ich die URL in die Adresszeile meines Browser eingebe erhalte ich eine Ausgabe. Was mache ich falsch?
Dankeschön.
Shortcode
[jsoncontentimporter
url=”http://…json”
urlgettimeout=”number: who many seconds for loading url till timeout?”
numberofdisplayeditems=”number: how many items of level 1 should be displayed? display all: leave empty”
basenode=”starting point of datasets, tha base-node in the JSON-Feed where the data is?”
oneofthesewordsmustbein=”default empty, if not empty keywords spearated by ‘,’. At least one of these keywords must be in the created text (here: text=code without html-tags)”
oneofthesewordsmustbeindepth=”default: 1, number:where in the JSON-tree oneofthesewordsmustbein must be?”
oneofthesewordsmustnotbein=”default empty, if not empty keywords spearated by ‘,’. If one of these keywords is in the created text, this textblock is igonred (here: text=code without html-tags)”
oneofthesewordsmustnotbeindepth=”default: 1, number:where in the JSON-tree oneofthesewordsmustnotbein must be?”
]
-
This reply was modified 6 years, 4 months ago by
tm86.
Das ist meine Fehlermeldung.
DEBUG: Cache is NOT active
DEBUG: try to retieve this url: https://api.presseportal.de/api/v2/stories/police/federalstate/rheinland-pfalz/image?api_key=XXXXXX&format=json&limit=10&teaser=1
DEBUG: wp_remote_get to https://api.presseportal.de/api/v2/stories/police/federalstate/rheinland-pfalz/image?api_key=XXXXXXXXX&format=json&limit=10&teaser=1
DEBUG: arguments: Array ( [timeout] => 5 [user-agent] => JCI WordPress-Plugin – free Version )
DEBUG: success getting URL
DEBUG: 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):
INHALT WIRD AUSGEGEBEN……………..
DEBUG: basenode: starting point of datasets, tha base-node in the JSON-Feed where the data is?
DEBUG: template:
Plugin Author
berkux
(@berkux)
Hallo,
ich bitte auf
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
zu wechseln und dort die URL oder den JSON zu posten.
Gruß
Bernhard