remove url from docs

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-13 12:10:23 +01:00
parent 4b3ce772ba
commit 195a26794c
5 changed files with 0 additions and 5 deletions

View File

@@ -24,7 +24,6 @@ pnpm install @openpanel/sdk
import { OpenpanelSdk } from '@openpanel/sdk'; import { OpenpanelSdk } from '@openpanel/sdk';
const op = new OpenpanelSdk({ const op = new OpenpanelSdk({
url: 'https://api.openpanel.dev',
clientId: '{YOUR_CLIENT_ID}', clientId: '{YOUR_CLIENT_ID}',
// mostly for backend and apps that can't rely on CORS // mostly for backend and apps that can't rely on CORS
clientSecret: '{YOUR_CLIENT_SECRET}', clientSecret: '{YOUR_CLIENT_SECRET}',

View File

@@ -199,7 +199,6 @@ When using server events it's important to create a new client (with a secret).
import { OpenpanelSdk } from '@openpanel/nextjs'; import { OpenpanelSdk } from '@openpanel/nextjs';
const opServer = new OpenpanelSdk({ const opServer = new OpenpanelSdk({
url: 'https://api.openpanel.dev',
clientId: '{YOUR_CLIENT_ID}', clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}', clientSecret: '{YOUR_CLIENT_SECRET}',
}); });

View File

@@ -25,7 +25,6 @@ On native we use a clientSecret to authenticate the app.
```typescript ```typescript
const op = new Openpanel({ const op = new Openpanel({
url: 'https://api.openpanel.dev',
clientId: '{YOUR_CLIENT_ID}', clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}', clientSecret: '{YOUR_CLIENT_SECRET}',
}); });

View File

@@ -16,7 +16,6 @@ Just insert this snippet and replace `{YOUR_CLIENT_ID}` with your client id.
(window.op.q = window.op.q || []).push(args); (window.op.q = window.op.q || []).push(args);
}; };
window.op('ctor', { window.op('ctor', {
url: 'https://api.openpanel.dev',
clientId: '{YOUR_CLIENT_ID}', clientId: '{YOUR_CLIENT_ID}',
trackScreenViews: true, trackScreenViews: true,
// trackOutgoingLinks: true, // trackOutgoingLinks: true,

View File

@@ -24,7 +24,6 @@ pnpm install @openpanel/web
import { Openpanel } from '@openpanel/web'; import { Openpanel } from '@openpanel/web';
const op = new Openpanel({ const op = new Openpanel({
url: 'https://api.openpanel.dev',
clientId: '{YOUR_CLIENT_ID}', clientId: '{YOUR_CLIENT_ID}',
trackScreenViews: true, trackScreenViews: true,
// trackAttributes: true, // trackAttributes: true,