Skip to content

Commit 427ac71

Browse files
committed
wip
1 parent 26bbe6a commit 427ac71

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

components/workday/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/workday",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream Workday Components",
55
"main": "workday.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.1.0"
1417
}
15-
}
18+
}

components/workday/workday.app.mjs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1+
import { axios } from "@pipedream/platform";
2+
13
export default {
24
type: "app",
35
app: "workday",
46
propDefinitions: {},
57
methods: {
6-
// this.$auth contains connected account data
7-
authKeys() {
8-
console.log(Object.keys(this.$auth));
8+
_baseUrl() {
9+
return `https://${this.$auth.domain}/ccx/api/v1/${this.$auth.tenant_id}`;
10+
},
11+
_makeRequest({
12+
$ = this, path, ...opts
13+
}) {
14+
return axios($, {
15+
url: `${this._baseUrl()}${path}`,
16+
headers: {
17+
Authorization: `Bearer ${this.$auth.oauth_access_token}`,
18+
},
19+
...opts,
20+
});
921
},
1022
},
11-
};
23+
};

0 commit comments

Comments
 (0)