import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudpresenter: {
type: "app",
app: "cloudpresenter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api2.cloudpresenter.com/v1/contacts`,
headers: {
Authorization: `Bearer ${this.cloudpresenter.$auth.oauth_access_token}`,
"origin": `${this.cloudpresenter.$auth.api_base_url}`,
"workspace": `${this.cloudpresenter.$auth.workspace_id}`,
},
})
},
})
Emit new event when a user adds a new contact in Cloudpresenter.
Creates a new contact within the Cloudpresenter application. See the documentation
Updates an existing contact within the Cloudpresenter application. See the documentation
Cloudpresenter uses OAuth authentication. When you connect your Cloudpresenter account, Pipedream will open a popup window where you can sign into Cloudpresenter and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Cloudpresenter API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api2.cloudpresenter.com/v1/auth/login
accept: application/json
origin: {{custom_fields.api_base_url}}
POST
https://api2.cloudpresenter.com/v1/auth/login
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}}