remove url from docs
This commit is contained in:
@@ -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}',
|
||||||
|
|||||||
@@ -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}',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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}',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user