import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shipstation: {
type: "app",
app: "shipstation",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ssapi.shipstation.com/users/`,
auth: {
username: `${this.shipstation.$auth.api_key}`,
password: `${this.shipstation.$auth.api_secret}`,
},
})
},
})
ShipStation uses API keys for authentication. When you connect your ShipStation account, Pipedream securely stores the keys so you can easily authenticate to ShipStation APIs in both code and no-code steps.
The ShipStation API uses Basic HTTP authentication. Use your ShipStation API Key as the username and API Secret as the password. You can find your API Key under Settings.