YtPotion.Client (yt_potion v1.0.0)

Copy Markdown

The Req integration point: reads configuration, applies the configured YtPotion.Auth strategy, issues the request, and routes the response through YtPotion.Parser.

Summary

Functions

Issues a GET request against the given YouTube Data API path with params as the query string. req_options are merged into the underlying Req request (e.g. plug: {Req.Test, MyStub} in tests).

Functions

get(path, params, req_options \\ [])

@spec get(String.t(), map(), keyword()) ::
  {:ok, [map()]} | {:error, YtPotion.Error.t()}

Issues a GET request against the given YouTube Data API path with params as the query string. req_options are merged into the underlying Req request (e.g. plug: {Req.Test, MyStub} in tests).