Skip to content

Commit 11ced30

Browse files
committed
Update readme examples to API v2
1 parent 5213ea3 commit 11ced30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can retrieve the api_token from your existing Pipedrive account’s settings
3232

3333
```typescript
3434
import express from "express";
35-
import { Configuration, DealsApi } from "pipedrive/v1";
35+
import { Configuration, DealsApi } from "pipedrive/v2";
3636

3737
const app = express();
3838

@@ -73,7 +73,7 @@ To set up authentication in the API client, you need the following information.
7373
Next, initialize the API client as follows:
7474

7575
```typescript
76-
import { OAuth2Configuration, Configuration } from 'pipedrive/v1';
76+
import { OAuth2Configuration, Configuration } from 'pipedrive/v2';
7777

7878
// Configuration parameters and credentials
7979
const oauth2 = new OAuth2Configuration({
@@ -150,7 +150,7 @@ This code snippet stores the access token in a session for an express applicatio
150150
import express from "express";
151151
import cookieParse from "cookie-parser";
152152
import cookeSession from "cookie-session";
153-
import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1";
153+
import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v2";
154154

155155
const app = express();
156156

@@ -194,7 +194,7 @@ It then redirects back to the base endpoint for calling endpoints from the SDK.
194194
```typescript
195195

196196
import express from "express";
197-
import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1";
197+
import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v2";
198198
import cookieParser from "cookie-parser";
199199
import cookieSession from "cookie-session";
200200

0 commit comments

Comments
 (0)