Closed matthewTa127 closed 8 years ago
Steps I took to fix the same error:
See my PR for how I fixed the similar (same?) issue I had.
What are you responding to? On Dec 9, 2015 5:26 PM, "auctionsjeff" notifications@github.com wrote:
Steps I took to fix the same error:
- Log the $html variable as part of the "Could not parse" error log message
- Look in the log for the string "GALX".
- If it's there (was for me), update the RegEx to match the new string Google's ServiceLogin endpoint is producing now (it changed recently it seems).
See my PR https://github.com/aaronpk/Google-Voice-PHP-API/pull/21 for how I fixed the similar (same?) issue I had.
— Reply to this email directly or view it on GitHub https://github.com/aaronpk/Google-Voice-PHP-API/issues/20#issuecomment-163419866 .
Google changed their html order of name/type/value to type/name/value.
if (preg_match('/type="hidden"\s_name="GALX"\s_value="([^"]+)"/', $html, $match)) $GALX = $match[1];
I would make a pull request, but i can't figure out how. this is as good as it gets.
I not sure what to do to fix this