Skip to content

Commit

Permalink
fix person url
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelchavesfreitas committed Dec 12, 2014
1 parent a030d7f commit 8e7545a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logincidadaoStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function oauth2callback(){
* @return array Parsed JSON results
*/
private function userinfo($access_token){
$userinfo = $this->serverGet('https://meu.rs.gov.br/api/v1/person', array('access_token' => $access_token), null, $headers);
$userinfo = $this->serverGet('https://meu.rs.gov.br/api/v1/person.json', array('access_token' => $access_token), null, $headers);
if (!empty($userinfo)){
return $this->recursiveGetObjectVars(json_decode($userinfo));
}
Expand Down

0 comments on commit 8e7545a

Please sign in to comment.