import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onlyoffice_docspace: {
type: "app",
app: "onlyoffice_docspace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.onlyoffice_docspace.$auth.subdomain}.onlyoffice.com/api/2.0/people/@self`,
headers: {
"Authorization": `${this.onlyoffice_docspace.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a new file is created. See the documentation.
Emit new event when a new folder is createdr. See the documentation.
Emit new event when a new user is added. See the documentation.
Uploads a file to the specified room. See the documentation
ONLYOFFICE DocSpace uses OAuth authentication. When you connect your ONLYOFFICE DocSpace account, Pipedream will open a popup window where you can sign into ONLYOFFICE DocSpace and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ONLYOFFICE DocSpace API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.subdomain}}.onlyoffice.com/api/2.0/authentication
accept: application/json
UserName={{custom_fields.username}}
&
Password={{custom_fields.password}}
POST
https://{{custom_fields.subdomain}}.onlyoffice.com/api/2.0/authentication
accept: application/json
UserName={{custom_fields.username}}
&
Password={{custom_fields.password}}