On Wed, May 5, 2010 at 9:16 AM, David Recordon <record...@gmail.com> wrote: > As long as we spec that the response can only contain one parameter (either > "error" or "access_token") then the code to parse it in PHP is as follows: > > list($param, $value) = explode('=', $response, 2); > if ($param == 'access_token') { > } elseif ($param == 'error') { > } > > If it can contain more than one value, then parsing becomes more difficult > and JSON starts to make sense.
I's not that hard to convert the whole name/value pairs string to a hash. Parsing JSON by hand is much harder. Marius _______________________________________________ OAuth mailing list OAuth@ietf.org https://www.ietf.org/mailman/listinfo/oauth