5 ms·
Snippet supplied in the article: function get($urlPath, $queryParams=null, $ouputFormat='xml'){ // if(!authenticateAsOwner($queryParams)) // { // hea
by alexwasserman 5y ago
Snippet supplied in the article:
function get($urlPath, $queryParams=null, $ouputFormat='xml'){
// if(!authenticateAsOwner($queryParams))
// {
// header("HTTP/1.0 401 Unauthorized");
// return;
// }
That if statement is checking for authentication before running the rest of the function. Just the if check is commented out.
Assuming here the rest of that function would come below it, with a closing brace.
ie:
function get($urlPath, $queryParams=null, $ouputFormat='xml'){
// if(!authenticateAsOwner($queryParams))
// {
// header("HTTP/1.0 401 Unauthorized");
// return;
// }
do;
something;
here;
then;
}