The Cliniko API allows developers to access content and features from the Cliniko platform. Using the API, developers can build applications that can do the following:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cliniko: {
type: "app",
app: "cliniko",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.cliniko.$auth.shard}.cliniko.com/v1/users`,
headers: {
"User-Agent": `Pipedream (support@pipedream.com)`,
"Accept": `application/json`,
},
auth: {
username: `${this.cliniko.$auth.api_key}`,
password: ``,
},
})
},
})
Cliniko uses API keys for authentication. When you connect your Cliniko account, Pipedream securely stores the keys so you can easily authenticate to Cliniko APIs in both code and no-code steps.
Each Cliniko user will have their own API Key(s) - these are used for authentication. The API Key will have the same permissions as the user it belongs to. See docs.
shard
is the Cliniko shard the account resides in. API keys have the shard appended to the end, e.g. MS0xLWl4SzYYYYdtR3V2HNOTAREALKEYwvNHdeW0pd-au2
is in the shard au2