package reddit_api_async

  1. Overview
  2. Docs
Async connection and utility functions for Reddit's API

Install

Dune Dependency

Authors

Maintainers

Sources

reddit_api_async-0.2.1.tbz
sha256=50ed16b67568e3407e3b4e5f51f6fef9d99e190d7f5e53354c94df469c207a19
sha512=8f6a3d370d6fc8f20aa8a69940de263eabdd16925dcde2125807863e1b66db79f5e7164f7116cc643149bac2481ea93744d53408213ddadd13e9c6c4d4eb2260

CHANGES.md.html

0.2.1

Removed

  • A comment in the reddit_api_kernel opam file.

0.2.0

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. See Connection.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 and Retry_manager to distinguish errors in fetching an access token.

  • Bump Connection.Remote protocol to version 2.

  • Rename Api to Endpoint and Api.Api_error to Api.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 (2020-12-30)

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 a Thing.Comment.t for inbox endpoints.

Removed

  • Remove unused optional subreddit parameter from Api.info.

  • Remove Bounded_set from the public interface of reddit_api_async.

OCaml

Innovation. Community. Security.