New Generation E-Commerce Platform
Emit new event when a customer account is created on ikas. You can only have one webhook of each type at the same time.
Emit new event when a new order is created on ikas. You can only have one webhook of each type at the same time.
Emit new event when a product is created on ikas. You can only have one webhook of each type at the same time.
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ikas: {
type: "app",
app: "ikas",
}
},
async run({steps, $}) {
const data = {
"query": `{me { id email }}`,
}
return await axios($, {
method: "post",
url: `https://api.myikas.com/api/v1/admin/graphql`,
headers: {
Authorization: `Bearer ${this.ikas.$auth.oauth_access_token}`,
},
data,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})