import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cogmento: {
type: "app",
app: "cogmento",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cogmento.com/api/1/auth/user/`,
headers: {
"accept": `application/json`,
"authorization": `Token ${this.cogmento.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a new contact is added in Cogmento. See the documentation
Emit new event when a new deal is created in Cogmento. See the documentation
Emit new event when a new task is created in Cogmento. See the documentation
Cogmento uses OAuth authentication. When you connect your Cogmento account, Pipedream will open a popup window where you can sign into Cogmento and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Cogmento API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.cogmento.com/api/1/auth/
accept: application/json
email={{custom_fields.email}}
&
password={{custom_fields.password}}
POST
https://api.cogmento.com/api/1/auth/
content-type: application/json
accept: application/json
email={{custom_fields.email}}
&
password={{custom_fields.password}}