Skip to content

Commit

Permalink
add api key to the query string
Browse files Browse the repository at this point in the history
  • Loading branch information
reallybeard committed Aug 25, 2022
1 parent 75ae0a6 commit 0fb70a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ client.on("message", (message) => {
if (message.content === "!proposals") {
const resp = axios
.get(
`https://api.boardroom.info/v1/protocols/${process.env.DAO}/proposals?limit=50`
`https://api.boardroom.info/v1/protocols/${process.env.DAO}/proposals?limit=50?key=${process.env.API_KEY}`
)
.then((resp) => {
const data = resp.data.data;
Expand Down
1 change: 1 addition & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BOT_TOKEN=ENTER_BOT_TOKEN
API_KEY=https://f9hpzhbysnb.typeform.com/to/IL64W5dT?typeform-source=docs.boardroom.info
DISCORD_CHANNEL=["channelID", "channelID"]
DAO=example_project
PROP_TEMPLATE=https://example.com

0 comments on commit 0fb70a1

Please sign in to comment.