Since Reddit's API accepts form data as the body for most of its
endpoints, it made sense to me to make the default NewRequest method
set the request body as form data (if provided of course). The
NewJSONRequest method can accept a JSON body.
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
Now, instead of returning an object containing a list of results + the
anchors, we return just the list. The anchors are available in the
response object. Much cleaner this way in my opinion
go-github and godo do it this way too. They include some meta
information in the returned response objects
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>