Loading...
Uploaded by
Ryan Ginsberg@ryan294
app
(read-only) getMarkets js was changed since the previous build
Built in 1s
1
1 [ Import axios for making HTTP requests 2 const axios require("axios") ; 3 const { getSessionCookie } require(" getSessionCookie' ) ; 4 5 Export the main function that retrieves market data 6 The function expects context object containing user information 7 exports.main async (context {}) => { 8 try { 9 11 First get the session cookie 10 const authResponse await getSessionCookie(context) ; 11 12 if ( !authResponse_ success I !authResponse.sessionCookie) { 13 throw new Error( ' Failed to get session cookie: authResponse.error I No session cookie returned' ) ) ; 14 15
app functions (changed)
createLineItemsjs
getAssetImagejs
getDigitalPostingsjs
getMarkets js (changed)
getMediaTypesjs
getSessionCookiejs