Undefined property: stdClass::$analyzeResult
Unknown
1
Reputation point
I'm trying to pass the result id I got from POST method to the get method. It works fine when I just copy-pasted the whole id into the URL
"https://southeastasia.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/receipt/analyzeResults/3ad62c27-ceeb-45f3-b89f-f2280644d2bf"
in GET method but when I try to put into a variable from POST and pass it to GET method like this
"https://southeastasia.api.cognitive.microsoft.com/formrecognizer/v2.1/prebuilt/receipt/analyzeResults/".$result_id
it shows
fyi $result_id comes from POST method
global $result_id;
$result_id = $response->getHeader()['apim-request-id'];
Undefined property: stdClass::$analyzeResult
Sign in to answer