import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
boldsign: {
type: "app",
app: "boldsign",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.boldsign.com/v1/users/list`,
headers: {
Authorization: `Bearer ${this.boldsign.$auth.oauth_access_token}`,
},
})
},
})
BoldSign uses OAuth authentication. When you connect your BoldSign account, Pipedream will open a popup window where you can sign into BoldSign and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any BoldSign API.
Pipedream requests the following authorization scopes when you connect your account:
offline_access
BoldSign.Users.Read
BoldSign.Documents.Write
BoldSign.Documents.Create
BoldSign.Templates.Read
BoldSign.Templates.Write
BoldSign.Templates.Create
BoldSign.SenderIdentity.Read
BoldSign.Documents.Read
BoldSign.Contacts.Read
GET
https://account.boldsign.com/connect/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
code_challenge={{oauth.state}}
&
code_challenge_method=S256
POST
https://account.boldsign.com/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
code_verifier: {{oauth.verifier}}
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://account.boldsign.com/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}