You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-29Lines changed: 19 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Documentation can be be found at [https://hexdocs.pm/segment](https://hexdocs.pm
23
23
## Usage
24
24
25
25
Start the Segment agent with your write_key from Segment for a HTTP API Server Source
26
-
```
26
+
```elixir
27
27
Segment.start_link("YOUR_WRITE_KEY")
28
28
```
29
29
There are then two ways to call the different methods on the API.
@@ -36,11 +36,11 @@ queue and batch events to Segment.
36
36
The other way is to drop down lower and use `Segment.Http``send` and `batch` directly. This will require first creating a `client` with `Segment.Http.client/1`/`Segment.Http.client/2`
Copy file name to clipboardExpand all lines: lib/segment.ex
+19-29Lines changed: 19 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ defmodule Segment do
22
22
## Usage
23
23
24
24
Start the Segment agent with your write_key from Segment for a HTTP API Server Source
25
-
```
25
+
```elixir
26
26
Segment.start_link("YOUR_WRITE_KEY")
27
27
```
28
28
There are then two ways to call the different methods on the API.
@@ -35,11 +35,11 @@ defmodule Segment do
35
35
The other way is to drop down lower and use `Segment.Http` `send` and `batch` directly. This will require first creating a `client` with `Segment.Http.client/1`/`Segment.Http.client/2`
Copy file name to clipboardExpand all lines: lib/segment/analytics.ex
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ defmodule Segment.Analytics do
3
3
The `Segment.Analytics` module is the easiest way to send Segment events and provides convenience methods for `track`, `identify,` `screen`, `alias`, `group`, and `page` calls
4
4
5
5
The functions will then delegate the call to the configured service implementation which can be changed with:
0 commit comments