Skip to content

Commit 8ff38e2

Browse files
committed
Package/app adjustments
1 parent d704991 commit 8ff38e2

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

components/the_magic_drip/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
1518
}

components/the_magic_drip/the_magic_drip.app.mjs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,23 @@ export default {
3636
},
3737
},
3838
methods: {
39-
authKeys() {
40-
console.log(Object.keys(this.$auth));
41-
},
4239
_baseUrl() {
4340
return "https://api.themagicdrip.com/v1";
4441
},
45-
async _makeRequest(opts = {}) {
46-
const {
47-
$, method = "GET", path = "/", headers = {}, ...otherOpts
48-
} = opts;
42+
async _makeRequest({
43+
$, path, headers, ...otherOpts
44+
} = {}) {
4945
return axios($, {
5046
...otherOpts,
51-
method,
5247
url: this._baseUrl() + path,
5348
headers: {
5449
...headers,
55-
"Content-Type": "application/json",
5650
"x-api-key": this.$auth.api_key,
5751
},
5852
});
5953
},
6054
async listCampaigns(opts = {}) {
6155
return this._makeRequest({
62-
method: "GET",
6356
path: "/campaign",
6457
...opts,
6558
});
@@ -96,7 +89,6 @@ export default {
9689
},
9790
async listTemplates(opts = {}) {
9891
return this._makeRequest({
99-
method: "GET",
10092
path: "/templates",
10193
...opts,
10294
});

0 commit comments

Comments
 (0)