AppBlockList (AppBlockList v1.0.0)

Copy Markdown View Source

Elixir client for the AppBlockList App Lookup API (https://www.appblocklist.com).

{:ok, app} = AppBlockList.lookup("com.zhiliaoapp.musically")
app.filtering_categories
#=> ["Social Networking", "Streaming Media"]

See AppBlockList.Client for options, AppBlockList.Queue for a supervised, rate-limited lookup process, AppBlockList.App for the result struct and AppBlockList.Error for error reasons.

Summary

Functions

Looks up one app with a client built from opts (or the environment). Returns {:ok, %AppBlockList.App{}} or {:error, %AppBlockList.Error{}}.

Like lookup/2 but returns the app or raises.

Library version.

Functions

lookup(id, opts \\ [])

@spec lookup(String.t(), keyword()) ::
  {:ok, AppBlockList.App.t()} | {:error, AppBlockList.Error.t()}

Looks up one app with a client built from opts (or the environment). Returns {:ok, %AppBlockList.App{}} or {:error, %AppBlockList.Error{}}.

lookup!(id, opts \\ [])

@spec lookup!(String.t(), keyword()) :: AppBlockList.App.t()

Like lookup/2 but returns the app or raises.

version()

@spec version() :: String.t()

Library version.