pd login
in your terminalNOTE: See the CLI reference for detailed usage and examples beyond those covered below.
hello world!
actionstring
propaxios
npm packageoctokit
npm packagehello world!
as the return value for the step.
.js
file (e.g., action.js
) and run the following CLI command:
action_demo
. The key must be unique across all components in your account (sources and actions). If it’s not unique, the existing component with the matching key will be updated.
The CLI output should look similar to this:
Click on the My Actions button to show all of your privately published actions
hello world!
returned as the value for steps.action_demo.$return_value
.
image-20210411165443563
string
prop called name
to the component.
run()
function to reference this.name
in the return value.
0.0.2
. If you fail to update the version, the CLI will throw an error.
pd publish
command again to update the action in your account.
action_demo
. You should see something like this:
image-20210411164514490
Name
input (e.g., foo
).
image-20210411165053922
hello foo!
(or the value you entered for Name
) as the value returned by the step.
axios
npm package. To use the axios
package, just import
it.
import
or require
them — there is no package.json
or npm install
required.run()
method to:
https://swapi.dev/api/people/1/
name
field of the payload returned by the APIname
prop since we’re no longer using it.
0.0.3
. If you fail to update the version, the CLI will throw an error.
pd publish
command again to update the action in your account.
action_demo
. You should see something like this:
hello Luke Skywalker!
as the return value for the step.
axios
and clear the run()
function from the last example. Your code should look like this:
octokit
npm package
app
property is the name slug for the app in Pipedream. This is not currently discoverable, but it will be in the near future on app pages in the Pipedream Marketplace. For the time being, if you want to know how to reference an app, please please reach out.run()
method to get a repo from Github and return it. For this example, we’ll pass static values to get the pipedreamhq/pipedream
repo. Notice that we’re passing the oauth_access_token
in the authorization header by referencing the $auth
property of the app prop — this.github.$auth.oauth_access_token
. You can discover how to reference auth tokens in the Authentication Strategy section for each app in the Pipedream Marketplace.
$summary
(read more about exporting data using $.export
).
0.0.4
. If you fail to update the version, the CLI will throw an error.
pd publish
command again to update the action in your account.
action_demo
. You should see something like this:
image-20210411114410883
image-20210411114522610