with Upstash Redis and What Are Those?
Identifies sneakers from a size tag photo and returns sneaker name and details. See the documentation
Grades and authenticates sneakers using provided images. See the documentation
Identifies sneakers from an uploaded image and returns details such as name, links, images, prices, and confidence scores. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
upstash_redis: {
type: "app",
app: "upstash_redis",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.upstash_redis.$auth.upstash_redis_rest_url}/set/foo/bar`,
headers: {
Authorization: `Bearer ${this.upstash_redis.$auth.uptash_redis_rest_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
import request from "request";
export default defineComponent({
props: {
what_are_those: {
type: "app",
app: "what_are_those",
}
},
async run({steps, $}) {
const data = request("https://res.cloudinary.com/daiebfyiw/image/upload/v1735863877/what_those_are_sku_image_sample_nyhw4i.jpg");
let config = {
method: 'POST',
maxBodyLength: Infinity,
url: 'https://0blrzg7ahc.execute-api.us-east-1.amazonaws.com/Prod/skus',
headers: {
'Content-Type': 'image/jpeg',
'x-api-key': this.what_are_those.$auth.api_key
},
data
};
return await axios($,config);
},
})