PRO-Plugin (add “[” at “insert_php]”, if putting this into the to-be-shown-code the displaying plugin get’s confused)
[jsoncontentimporterpro method=get url=https://api.bokun.io/activity.json/9354?currency=CAD&lang=EN header="Content-Type: application/json## insert_php] $secretkey = "..."; $accesskey = "..."; $dat = date("Y-m-d H:i:s"); $signatureRaw = $dat.$accesskey."GET"."/activity.json/9354?currency=CAD&lang=EN"; $signature = base64_encode(hash_hmac("sha1", $signatureRaw , $secretkey, TRUE)); echo "X-Bokun-AccessKey:".$accesskey."##"; echo "X-Bokun-Date:".$dat."##"; echo "X-Bokun-Signature:".$signature; [/insert_php]" parser=twig] title: {{title}} [/jsoncontentimporterpro]
PRO-Plugin Fetching URL failed: http-errorcode 400