Skip to content

Commit

Permalink
Fix API/HTTP instructions json syntax (PostHog#3832)
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
  • Loading branch information
adrienbrault and paolodamico authored Apr 1, 2021
1 parent f103c8d commit 827b7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
There are many ways to contribute to PosHog. We want to help developers know exactly how users are interacting with their stuff, in a way that doesn't send data to 3rd parties.
There are many ways to contribute to PostHog. We want to help developers know exactly how users are interacting with their stuff, in a way that doesn't send data to 3rd parties.

# Creating a PR

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function APISnippet(): JSX.Element {
url +
'/capture/\nContent-Type: application/json\n\n{\n\t"api_key": "' +
user?.team?.api_token +
'",\n\t"event": "[event name]",\n\t"properties": {\n\t\t"distinct_id": "[your users\' distinct id]",\n\t\t"key1": "value1",\n\t\t"key2": "value2",\n\t},\n\t"timestamp": "[optional timestamp in ISO 8601 format]"\n}'}
'",\n\t"event": "[event name]",\n\t"properties": {\n\t\t"distinct_id": "[your users\' distinct id]",\n\t\t"key1": "value1",\n\t\t"key2": "value2"\n\t},\n\t"timestamp": "[optional timestamp in ISO 8601 format]"\n}'}
</CodeSnippet>
)
}
Expand Down

0 comments on commit 827b7fd

Please sign in to comment.