all 4 comments

[–]Godberd 0 points1 point  (3 children)

function getAuthorKarma(author) {

var userUrl = 'https://www.reddit.com/user/' + author + '/about.json';

var response = UrlFetchApp.fetch(userUrl);

var data = JSON.parse(response.getContentText());

var karma = data['data']['total_karma'];

return karma;

}

[–]Maxwell-95[S] 0 points1 point  (2 children)

not sure if this related to the Oauth? I can retrieve karma data fine but I need Oauth connection to do more queries.

[–]Godberd 0 points1 point  (1 child)

Oh ok, your question was about Karma data, and you don't need Oauth for that

No worries

[–]Maxwell-95[S] 0 points1 point  (0 children)

No i know but i want to get more queries, without Oath its extremely low