Hi All
To turn CAS into a marketplace, we need the capability to work with external data imports so that sellers can import their pricing into CAS.
Any convenient data format can be accepted as input, for example JSON.
The input script would take an array like this as input and produce ads CAS as output.
To turn CAS into a marketplace, we need the capability to work with external data imports so that sellers can import their pricing into CAS.
Any convenient data format can be accepted as input, for example JSON.
The input script would take an array like this as input and produce ads CAS as output.
Code:
[
{
"title": "Selling iPhone 12 Pro",
"message": "Selling an iPhone 12 Pro, 128 GB, in excellent condition. Used for less than a year, always kept in a case with a screen protector. Comes with the original box, charger, and headphones. Slightly negotiable.",
"ad_type": "sale",
"price": 700,
"currency": "usd",
"photos_urls": [
"https://example.com/photos/iphone12pro_front.jpg",
"https://example.com/photos/iphone12pro_back.jpg",
"https://example.com/photos/iphone12pro_side.jpg"
]
},
{
"title": "Dell XPS 15 Laptop",
"message": "Selling a Dell XPS 15 laptop, 2023 model, with 512 GB SSD, 16 GB RAM, and Intel Core i7 processor. The laptop is in excellent condition, used primarily for work and kept in a smoke-free environment. Comes with original charger and packaging. Great for both work and gaming.",
"ad_type": "sale",
"price": 1200,
"currency": "usd",
"photos_urls": [
"https://example.com/photos/dell_xps15_front.jpg",
"https://example.com/photos/dell_xps15_keyboard.jpg",
"https://example.com/photos/dell_xps15_side.jpg"
]
},
...
]
Last edited:
Upvote
0