Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Mar 27, 2021
1 parent 6186765 commit 88fd939
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ application list to start:
```elixir
def deps do
[
{:pumba, "~> 0.0.1"}
{:pumba, "~> 0.0.2"}
]
end
```
Expand All @@ -55,6 +55,23 @@ iex> Pumba.random()
Mozilla/5.0 (X11; Linux ppc64le; rv:75.0) Gecko/20100101 Firefox/75.0
```

### Check if user agents loaded

```ex
iex> Pumba.ready?("Firefox")
true
```

### Get user agents for browser

```ex
iex> Pumba.get("Firefox")
[
"Mozilla/5.0 (X11; Linux ppc64le; rv:75.0) Gecko/20100101 Firefox/75.0",
...
]
```

### Set custom client

Default client fetches user agents from http://www.useragentstring.com.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Pumba.MixProject do
def project do
[
app: :pumba,
version: "0.0.1",
version: "0.0.2",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit 88fd939

Please sign in to comment.