We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 285e2a6 + 9e2975b commit 5e2db3aCopy full SHA for 5e2db3a
1 file changed
README.md
@@ -10,17 +10,16 @@ Add `posthog-rs` to your `Cargo.toml`.
10
11
```toml
12
[dependencies]
13
-posthog_rs = "0.2.0"
+posthog-rs = "0.2.0"
14
```
15
16
```rust
17
-let client = crate::client(env!("POSTHOG_API_KEY"));
+let client = posthog_rs::client(env!("POSTHOG_API_KEY"));
18
19
-let mut event = Event::new("test", "1234");
+let mut event = posthog_rs::Event::new("test", "1234");
20
event.insert_prop("key1", "value1").unwrap();
21
event.insert_prop("key2", vec!["a", "b"]).unwrap();
22
23
client.capture(event).unwrap();
24
-
25
26
0 commit comments