I'm attempting to use PHP to get data from CallRail.com API via JSON.
However, I'm getting this error when previewing my PHP file directly in my browser: T_CONSTANT_ENCAPSED_STRING
My code:
curl -H "Authorization: Token token={my-token-id}" \
-X GET \
"https://api.callrail.com/v2/a/{my-account-id}/calls.json"
?>
So far I have:
- Read several articles related to the error without finding a solution or verifiably accurate explanation.
- I've manually retyped all of the code to ensure I didn't have any improperly encoded characters or invalid white spaces.
- I've also attempted to locate official documentation in the PHP docs but not found anything helpful.
- And I've tested this in a blank PHP file so the code is completely isolated.
I don't know how to further debug this issue and am hoping someone can either identify the problem or share the steps to debug this on my own from this point.
No comments:
Post a Comment