itemLookUp complete and addItem endpoint

This commit is contained in:
2024-03-21 15:18:06 -05:00
parent ab2b011580
commit 191164f4cc
7 changed files with 162 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
import fetch from "node-fetch";
import fetchEbayToken from "../utils/fetchEbayToken.js"; // Adjust the import path according to your project structure
import fetchEbayReadToken from "../utils/fetchEbayReadToken.js"; // Adjust the import path according to your project structure
export const itemLookup = async (req, res) => {
const productCode = req.query.productCode;
const oauthToken = await fetchEbayToken();
const oauthToken = await fetchEbayReadToken();
console.log(productCode);
try {
const response = await fetch(