}
header('HTTP/1.0 200 OK');
- header('Content-type: application/x-www-form-urlencoded');
- echo http_build_query(
+ header('Content-type: application/json');
+ echo json_encode(
array(
'me' => $me,
'client_id' => $client_id,
)
);
header('HTTP/1.0 200 OK');
- header('Content-type: application/x-www-form-urlencoded');
- echo http_build_query(
+ header('Content-type: application/json');
+ echo json_encode(
array(
'access_token' => $access_token,
+ 'token_type' => 'Bearer',
'me' => $me,
'scope' => $scope
)