import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lightspeed_ecom_c_series: {
type: "app",
app: "lightspeed_ecom_c_series",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.lightspeed_ecom_c_series.$auth.cluster}.com/${this.lightspeed_ecom_c_series.$auth.lang}/account.json`,
auth: {
username: `${this.lightspeed_ecom_c_series.$auth.api_key}`,
password: `${this.lightspeed_ecom_c_series.$auth.api_secret}`,
},
})
},
})
Lightspeed eCom (C-Series) uses API keys for authentication. When you connect your Lightspeed eCom (C-Series) account, Pipedream securely stores the keys so you can easily authenticate to Lightspeed eCom (C-Series) APIs in both code and no-code steps.