Skip to content

Commit

Permalink
Update README.md (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-zijdemans-vipps authored Feb 13, 2024
1 parent fd5fecc commit f6018be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Available on: [deno.land](https://deno.land/x/vipps_mobilepay_sdk) and
[NPM](https://www.npmjs.com/package/@vippsmobilepay/sdk)

```ts
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@1.1.0/mod.ts";
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@1.2.0/mod.ts";

// Create a client
const client = Client({
Expand All @@ -20,11 +20,7 @@ const client = Client({
});

// Grab a token
const accessToken = await client.auth.getToken({
clientId,
clientSecret,
subscriptionKey,
});
const accessToken = await client.auth.getToken(clientId, clientSecret);

// Check if the token was retrieved successfully
if (!accessToken.ok) {
Expand Down

0 comments on commit f6018be

Please sign in to comment.