Skip to content

Commit

Permalink
fix indentation for elixir syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
pbonney authored Jun 15, 2017
1 parent bd2e2f7 commit 278ffc4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ If [available in Hex](https://hex.pm/docs/publish), the package can be installed

1. Add `amplitude` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:amplitude, "~> 0.1.0"}]
end
```
```elixir
def deps do
[{:amplitude, "~> 0.1.0"}]
end
```

2. Ensure `amplitude` is started before your application:

```elixir
def application do
[applications: [:amplitude]]
end
```
```elixir
def application do
[applications: [:amplitude]]
end
```

3. Add an Amplitude API key to your application config file:

```elixir
config :amplitude, api_key: "<your_api_key>"
```
```elixir
config :amplitude, api_key: "<your_api_key>"
```

## Usage

1. Track events with the `Amplitude.track/4` function:

```elixir
iex> Amplitude.track("my_event", "jdoe_123", %{"ip" => "127.0.0.1"}, %{"cohort" => "Test A"})
{:ok, "success"}
```
```elixir
iex> Amplitude.track("my_event", "jdoe_123", %{"ip" => "127.0.0.1"}, %{"cohort" => "Test A"})
{:ok, "success"}
```

0 comments on commit 278ffc4

Please sign in to comment.