Skip to content

Commit

Permalink
Pass through errors, #37
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Mar 27, 2014
1 parent 31f01db commit fa49006
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/modules/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@
'me' : 'oauth2/v1/userinfo?alt=json',

// https://developers.google.com/+/api/latest/people/list
'me/friends' : '/plus/v1/people/me/people/visible?maxResults=@{limit|100}',
'me/friends' : 'plus/v1/people/me/people/visible?maxResults=@{limit|100}',
'me/following' : contacts_url,
'me/followers' : contacts_url,
'me/contacts' : contacts_url,
Expand Down Expand Up @@ -591,11 +591,13 @@
return o;
},
'me/friends' : function(o){
paging(o);
o.data = o.items;
delete o.items;
for(var i=0;i<o.data.length;i++){
formatPerson(o.data[i]);
if(o.items){
paging(o);
o.data = o.items;
delete o.items;
for(var i=0;i<o.data.length;i++){
formatPerson(o.data[i]);
}
}
return o;
},
Expand Down

0 comments on commit fa49006

Please sign in to comment.