with Turso and Snipe-IT?
Creates a new database in a group for the organization or user. See the documentation
Returns a list of databases belonging to the organization or user. See the documentation
Returns a list of groups belonging to the organization or user. See the documentation
Returns a list of organizations the authenticated user owns or is a member of. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
turso: {
type: "app",
app: "turso",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.turso.tech/v1/organizations`,
headers: {
Authorization: `Bearer ${this.turso.$auth.api_token}`,
},
})
},
})
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`,
},
})
},
})