with Nextcloud and Snipe-IT?
Emit new event whenever a share is created in Nextcloud. See the documentation
Creates a new share link from the specified path in Nextcloud. See the documentation
Creates a new hardware asset in Snipe-IT. See the documentation
Creates a new user in Snipe-IT with profile information required for asset or license assignments. See the documentation
Retrieves a list of shares based on the specified criteria in Nextcloud. See the documentation
Nextcloud's API lets you tap into your self-hosted cloud storage and collaboration platform. With Pipedream, you can automate tasks like file management, user account operations, and accessing calendar and contacts. It's a treasure trove for creating workflows that sync, share, and manage data programmatically between Nextcloud and other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nextcloud: {
type: "app",
app: "nextcloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.nextcloud.$auth.url}/ocs/v2.php/apps/files_sharing/api/v1/shares`,
headers: {
"OCS-APIRequest": `true`,
},
auth: {
username: `${this.nextcloud.$auth.username}`,
password: `${this.nextcloud.$auth.password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
snipe_it: {
type: "app",
app: "snipe_it",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.snipe_it.$auth.api_url}/api/v1/users`,
headers: {
Authorization: `Bearer ${this.snipe_it.$auth.api_key}`,
"accept": `application/json`,
"content-type": `application/json`,
},
})
},
})