Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
webhook example
Browse files Browse the repository at this point in the history
  • Loading branch information
jstep committed Oct 7, 2023
1 parent c8338e7 commit 1986796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/simple/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Defined } from "@definedfi/sdk";

import { CreatePriceWebhooksInput, Network } from "../../src/resources/graphql";
import { Network } from "../../src/resources/graphql";

const sdk = new Defined(process.env.DEFINED_API_KEY || "");

Expand Down Expand Up @@ -74,8 +74,6 @@ sdk.queries

sdk.queries
.webhooks({
priceWebhooksInput: {
webhooks: [{ name: "steveTheWebhook" }],
} as CreatePriceWebhooksInput,
webhookId: "1",
})
.then(console.log);
2 changes: 1 addition & 1 deletion examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"license": "ISC",
"description": "",
"dependencies": {
"@definedfi/sdk": "../../"
"@definedfi/sdk": "^0.3.0"
}
}

0 comments on commit 1986796

Please sign in to comment.