user-1
(User 1)
March 22, 2024, 5:22pm
1
This topic was automatically generated from Slack. You can find the original thread here .
I have a connected account with my api key for WISE payments. I’m in the middle of going through the process of transfering money, but there is a missing a standard Pipedream action. I just want to create a simple http get request, but I can’t figure out how to access my api key in a connected account. Is there a param for getting credentials from a connected account?
user-1
(User 1)
March 22, 2024, 5:22pm
2
I can create another env variable in the workflow with the api key, but would prefer to reuse the key from the connected account if possible
user-1
(User 1)
March 22, 2024, 5:22pm
3
You just need to add an app
prop.
user-1
(User 1)
March 22, 2024, 5:22pm
4
And then you can access your credentials in this.app.$auth
.
user-1
(User 1)
March 22, 2024, 5:22pm
5
Something like this:
export default defineComponent({
props: {
tableau: {
type: "app",
app: "tableau",
},
},
async run({ steps, $ }) {
user-1
(User 1)
March 22, 2024, 5:22pm
6
But replace tableau
with your app name.
user-1
(User 1)
March 22, 2024, 5:22pm
7
right, so i couldn’t use the standard http request step, but a custom code step
user-1
(User 1)
March 22, 2024, 5:22pm
8
Yup exactly, you can add that code in your code step, and it will add a prop to the step.
user-1
(User 1)
March 22, 2024, 5:22pm
10
And then you can click this button to refresh the fields:
user-1
(User 1)
March 22, 2024, 5:22pm
11
It should become enabled when you make changes to the props.
user-1
(User 1)
March 22, 2024, 5:22pm
13
user-1
(User 1)
March 22, 2024, 5:22pm
14
user-1
(User 1)
March 22, 2024, 5:22pm
15
For anyone else reading this thread, here’s the docs that describe how to connect any account to any API endpoint using:
• The HTTP request builder
• Node.js code
• Python code
user-1
(User 1)
March 22, 2024, 5:22pm
16
Haha what a flurry of answers here love it
user-1
(User 1)
March 22, 2024, 5:22pm
17
Oh and don’t forget the ability to just ask AI to generate the code for you: