With the Workboard API, you can easily build solutions that can help you automate parts of your organization's workflow. Here are a few examples of solutions you can create with the Workboard API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workboard: {
type: "app",
app: "workboard",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.myworkboard.com/wb/apis/user/`,
headers: {
Authorization: `Bearer ${this.workboard.$auth.oauth_access_token}`,
},
})
},
})
Workboard uses OAuth authentication. When you connect your Workboard account, Pipedream will open a popup window where you can sign into Workboard and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Workboard API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://www.myworkboard.com/wb/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://www.myworkboard.com/wb/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_hash={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
code={{oauth.code}}