This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
Releases: byjpr/ShopiexRL
Releases · byjpr/ShopiexRL
Super Simple v0.0.1
What does it look like?
The simplest method to track API requests with the Leaky Bucket algorithm, making sure not to overfill any bucket that you have access too.
Shopiex is geared towards working with Shopify, but by ignoring some naming conventions it could be used in other places that have implemented the Leaky Bucket algorithm.
Quick Start
Add Shopiexrl to your mix.exs. Currently only on GitHub:
def deps do
[{:Shopiexrl, github: "https://github.com/byjord/Shopiexrl", tag: "v0.0.1"}]
end
Fetching dependencies and running on elixir console:
$ mix deps.get
$ iex -S mix
Usage with Tesla
Tesla a HTTP client library for Elixir. In this example, we use my-shopify-subdomain.myshopify.com
as an example store URL.
Tesla.build_client([
{ShopiexRL.Tesla.Middleware, name: "my-shopify-subdomain"}
])