with Amentum Aerospace and Formatting?
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.
The Amentum Aerospace API provides programmatic access to a suite of aerospace functionalities, such as satellite tracking, pass predictions, and atmospheric conditions. Leveraging this API, one can automate data collection for space-related projects, enhance satellite monitoring applications, or enrich educational platforms with real-time space data. Pipedream's serverless integration platform allows developers to connect the Amentum API with countless other services, creating custom workflows that can trigger actions, send notifications, or store data based on space events or conditions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
amentum_aerospace: {
type: "app",
app: "amentum_aerospace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.amentum_aerospace.$auth.subdomain}.amentum.io/gebco`,
headers: {
"Accept": `application/json`,
"API-Key": `${this.amentum_aerospace.$auth.api_key}`,
},
params: {
latitude: `-45`,
longitude: `45`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})