Api returns price as 0.00

day_tona2

Member
Trying to get resources information from the API but price returns 0.00 on every one.

Code:
<?php

$headers = array(
    'Content-type: application/json',
     'XF-Api-User: 2',
    'XF-Api-Key: MyAPIKEYHERE',
);

$url = 'https://www.MySite.xyz/api/resource-categories/2/resources';

$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
$json = curl_exec($ch);

curl_close($ch);

$data = json_decode($json, true);

var_dump($data);
?>
 
Back
Top Bottom