Skip to content

Commit ada26de

Browse files
committed
docs: use correct names in README example
1 parent 1344f16 commit ada26de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ This client only has a programmatic API at the moment (no CLI). You use it like
1414

1515
```ts
1616

17-
import { Configuration, PinsApi, Status } from '@ipfs-shipyard/pinning-service-client'
17+
import { Configuration, RemotePinningServiceClient, Status } from '@ipfs-shipyard/pinning-service-client'
1818
import type { PinsGetRequest, PinResults } from '@ipfs-shipyard/pinning-service-client'
1919

2020
const config = new Configuration({
21-
basePath, // the URI for your pinning provider, e.g. `http://localhost:3000`
21+
endpointUrl, // the URI for your pinning provider, e.g. `http://localhost:3000`
2222
accessToken, // the secret token/key given to you by your pinning provider
2323
// fetchApi: fetch, // You can pass your own fetchApi implementation, but we use fetch-ponyfill by default.
2424
})
2525

26-
const client = new PinsApi(config)
26+
const client = new RemotePinningServiceClient(config)
2727

2828
(async () => {
2929
// Get 10 failed Pins

0 commit comments

Comments
 (0)