Dani, what's the cutoff date for RSS feeds?
90 days
is there also a maximum number of items returned
100 items
Additionally, in your RSS documentation 'threads' is missing from the article type list.
Will look into it.
http://www.daniweb.com/api/forums/31/ancestors?access_token=MYACCESSTOKEN
No valid data meets your criteria because you are trying to fetch the forum's ancestors and a top-level category (Web Development) that has no ancestors, so there is nothing to return.
http://www.daniweb.com/api/forums/31/ancestors?include_self=true&access_token=MYACCESSTOKEN
Here, you're again trying to fetch Web Development's ancestors, but this time you're saying to include itself also. It has no ancestors still, but the least it can do here is return itself.
http://www.daniweb.com/api/forums/31/ancestors?include_self=false&access_token=MYACCESSTOKEN
When you pass false in as a query string parameter in this manner, it is being treated as a literal string "false"
as opposed to the boolean value of false. Therefore, include_self evaluates to true because PHP defines any non-zero integer or string as true. You can do ?include_self=0
or you can pass false in through cURL as so:
$data = array(
'include_self' => false,
'access_token' => $mytoken
);
$request = curl_init('http://www.daniweb.com/api/forums/31/ancestors');
curl_setopt($request, CURLOPT_POSTFIELDS, $data);
Please note that passing in the query string parameter as you are doing is synonymous with doing this:
$data = array(
'include_self' => "false",
'access_token' => $mytoken
);
See the difference?