Unlock your unstructured data with only a few lines of code.
import { axios } from "@pipedream/platform";
import FormData from "form-data";
import request from "request";
export default defineComponent({
props: {
aryn: {
type: "app",
app: "aryn",
}
},
async run({steps, $}) {
const data = new FormData();
data.append("pdf", request("https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf"));
return await axios($,{
method: "POST",
url: `https://api.aryn.cloud/v1/document/partition`,
headers: {
"Content-Type": `multipart/form-data`,
Authorization: `Bearer ${this.aryn.$auth.api_key}`,
},
data
});
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.