Releases: leviroth/ocaml-reddit-api
Releases · leviroth/ocaml-reddit-api
0.2.1
0.2.0
CHANGES:
Added
- Add
Endpoint.user_trophies
to view trophies by user. - Add
Thing.Link.Contents.t
variant for distinguishing self and link
submissions. - Add
Thing.Comment.link_title
to view the title of the link for a comment in
the modqueue. - Add support for OAuth2 userless (app-only) flow. Both public clients and
confidential clients are supported. SeeConnection.Credentials.t
. - Add support for OAuth2 refresh token credentials.
- Add handling of failed access token requests.
- Add automatic retries when an endpoint request fails due to an expired access
token.
Changed
- Require dune >= 2.8.
- Require cohttp >= 5.0.0.
- Add a case to
Endpoint.Error
representing Reddit's JSON error responses. - Change
Connection.Credentials.t
from record to variant that supports
OAuth2 userless (app-only) flow, so if you serialize the variant,
a constructor name will be prepended to the sexp. - Restructure
Rate_limiter
and added expect tests. - Reorganize error types in
Connection
andRetry_manager
to distinguish
errors in fetching an access token. - Bump
Connection.Remote
protocol to version 2. - Rename
Api
toEndpoint
andApi.Api_error
toApi.Error
. - Remove
Endpoint.with_param_override
type.- This changes the type of each endpoint value.
- HTTP request parameters can instead be tweaked by simply editing the
Endpoint.request
field.
0.1.1
Added
- Add lots of documentation.
Changed
- Increase the minimum delay between HTTP requests from 10ms to 100ms.
- Return a special
Inbox_item.Comment.t
value instead of aThing.Comment.t
for inbox endpoints.
Removed
- Remove unused optional
subreddit
parameter fromApi.info
. - Remove
Bounded_set
from the public interface ofreddit_api_async
.