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,
})
},
})
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.
Ikas uses OAuth authentication. When you connect your Ikas account, Pipedream will open a popup window where you can sign into Ikas and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Ikas API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.store_name}}.myikas.com/api/admin/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://{{custom_fields.store_name}}.myikas.com/api/admin/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials