r/redditdev • u/spladug • Aug 10 '11
Reddit API New tool for API developers: the reddit API console.
https://apigee.com/console/reddit
56
Upvotes
2
u/letseatlunch Aug 10 '11
this "Looks" really nice, although i keep getting "Invalid Test URL" no matter what i value(s) i put in.
1
0
Aug 10 '11
[deleted]
7
Aug 10 '11
Since those functions use AJAX you can just use firebug or something so see the API methods needed to do that
Adding someone to approved list:
/api/friend POST: action=add&container={SUBREDDIT ID}&type=contributor&name={USERNAME}&id=%23contributor&r={SUBREDDIT NAME}&uh={TOKEN}&renderstyle=htmlRemoving someone:
/api/unfriend POST: id={USER ID}&executed=removed&container={SUBREDDIT ID}&type=contributor&r={SUBREDDIT NAME}&uh={TOKEN}&renderstyle=html0
2
u/honestbleeps Aug 10 '11
Awesome! It would be nice to explain to noobs how to get their modhash, since that's necessary for the vast majority of these queries (as they require authentication)...