File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 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" : [
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+ }
Original file line number Diff line number Diff line change 1+ import { axios } from "@pipedream/platform" ;
2+
13export 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+ } ;
You can’t perform that action at this time.
0 commit comments