reddit/reddit — pull request #305 by buddydvd (2012-01-06 20:02:22+00:00)
Title: Make API calls more friendly to reddit developers.

API methods like `/api/new_captcha` and `/api/submit` currently only return data when `api_type=html`. This produces responses in the jqueryresponse format which is harder to parse and easier to break. The attached commits modifies these two API calls to return the expected data when `api_type=json`.

Also, `/api/subscribe` is modified to also accept the "sr_name" parameter so callers may subscribe to a subreddits by name (e.g. "funny") instead of "fullname" (e.g. "t5_2qh33").