import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
orderspace: {
type: "app",
app: "orderspace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.orderspace.com/v1/customers`,
headers: {
Authorization: `Bearer ${this.orderspace.$auth.oauth_access_token}`,
},
params: {
limit: `20`,
},
})
},
})
Create a new customer. See the documentation
Create a new dispatch. See the documentation
Create a new order. See the documentation
List a list of customers. See the documentation
List a list of orders. See the documentation
Orderspace uses OAuth authentication. When you connect your Orderspace account, Pipedream will open a popup window where you can sign into Orderspace and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Orderspace API.
Pipedream requests the following authorization scopes when you connect your account:
POSThttps://identity.orderspace.com/oauth/tokenaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentialsPOSThttps://identity.orderspace.com/oauth/tokenaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentials