Bitrix24 is a collaboration software with complete tools for management, collaboration, and communication. Bitrix24 gives you a unified platform for your files, projects, messages, tasks, and contacts.
Go to siteWith the bitrix24 API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitrix24: {
type: "app",
app: "bitrix24",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.bitrix24.$auth.domain}/rest/user.current`,
params: {
auth: `${this.bitrix24.$auth.oauth_access_token}`,
},
})
},
})
Bitrix24 uses OAuth authentication. When you connect your Bitrix24 account, Pipedream will open a popup window where you can sign into Bitrix24 and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Bitrix24 API.
Pipedream requests the following authorization scopes when you connect your account:
app
calendar
crm
disk
department
entity
im
imbot
lists
log
sonet_group
task
call
user
imopenlines
placement
messageservice
pay_system
landing
userconsent
GET
https://{{custom_fields.domain}}/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.comma_separated_scopes}}
POST
https://oauth.bitrix.info/oauth/token/
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://oauth.bitrix.info/oauth/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}}