Skip to content

Commit

Permalink
fix: use <ph_app_host> for the API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
skoob13 committed Aug 15, 2024
1 parent d89e76d commit 1bfa0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/ApiEndpoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ curl ${item.httpVerb === 'delete' ? ' -X DELETE ' : item.httpVerb == 'patch' ? '
item.httpVerb === 'post' ? "\n -H 'Content-Type: application/json'" : ''
}\\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \\
https://app.posthog.com${path}${params.map((item) => `\\\n\t-d ${item[0]}=${JSON.stringify(item[1])}`)}
<ph_app_host>${path}${params.map((item) => `\\\n\t-d ${item[0]}=${JSON.stringify(item[1])}`)}
`,
},
{
Expand All @@ -381,7 +381,7 @@ curl ${item.httpVerb === 'delete' ? ' -X DELETE ' : item.httpVerb == 'patch' ? '
api_key = "[your personal api key]"
project_id = "[your project id]"
response = requests.${item.httpVerb}(
"https://app.posthog.com${item.pathName.replace('{id}', `{${object}_id}`)}".format(
"<ph_app_host>${item.pathName.replace('{id}', `{${object}_id}`)}".format(
project_id=project_id${item.pathName.includes('{id}') ? `,\n\t\t${object}_id="the ${object} id"` : ''}${
additionalPathParams.length > 0
? additionalPathParams.map(
Expand Down

0 comments on commit 1bfa0b4

Please sign in to comment.