REVO8100GetRecipeAppv1 @iKGet Recipe App v1  U(Message),unicodeU(Text)U(Text),unicodeU Calibri BoldUCalibri Bold,unicode W (Message) cREVGeometryCache stackID cREVGeneral breakpointstates breakpointsbreakpointconditionsscripteditorselection0scripteditorvscroll scalefactor? Pon preOpenCard set the visible of control "spinnerWidget" to false set the filename of image id 1006 to default put "stew" into fld dish end preOpenCard :  cREVGeneral scripteditorvscrollscripteditorselection132cREVGeometryCacheIDs  1684194744306 1684185902596 1684184633238n 1684184633237% 1684184633236 1684184633235 1684184633234cREVGeometrycache totalorder  %n  recipeDisplay jpx  cREVGeneral  revUniqueID xBtablefalse cRevTable  cellFormatfalsemaxColumnCountcellEditfalse xStew is a hearty and comforting dish that is perfect for chilly evenings. Here's a basic recipe for a classic beef stew: ' ' Ingredients: ' 5- 2 lbs of beef stew meat, cut into bite-sized pieces 'j - 2 tablespoons of olive oil '8 - 1 large onion, diced ', - 3 cloves of garlic, minced '8 - 3 carrots, peeled and sliced '< - 2 celery stalks, sliced '2 - 2 potatoes, peeled and chopped '@ - 2 cups of beef broth ', - 1 tablespoon of tomato paste '< - 1 bay leaf ' - Salt and pepper, to taste '6 ' Instructions: ' 61. Heat the olive oil in a large pot over medium heat. 'l 42. Add the beef stew meat and brown it on all sides. 'h 13. Remove the meat from the pot and set it aside. 'b O4. Add the onion and garlic to the pot and cook until the onion is translucent. ' G5. Add the carrots, celery, and potatoes, and cook for about 5 minutes. ' 66. Stir in the beef broth, tomato paste, and bay leaf. 'l ?7. Add the beef back into the pot and bring the stew to a boil. '~ ]8. Reduce the heat to low and let the stew simmer for 2-3 hours, or until the beef is tender. ' )9. Season with salt and pepper, to taste. 'R ' Enjoy your delicious beef stew! '>g `hkimgFood `Sv[  cREVGeneral  revUniqueID0xB  dish)x~on returnInField -- automatically submit query click button 1 at the loc of button "SUBMIT" end returnInField A$ ~  cREVGeneral  revUniqueID@xBtablefalsescripteditorselection125debugEntryHandlerM,returnInFielddebugParametersscripteditorvscroll cRevTable  cellFormatfalsemaxColumnCountcellEditfalse  stew ' % Label Field  - 9  cREVGeneral  revUniqueIDPxBtablefalse cRevTable  cellFormatfalsemaxColumnCountcellEditfalse Dish: ' nSUBMITMyYon mouseUp local tUrl, tPostData, tHeaders, tError   put "" into tUrl put "{" & quote & "dish" & quote & ":" & quote & fld dish & quote & "}" into tPostData put "Content-Type: application/json" into tHeaders   set the filename of image id 1006 to default set the visible of control "spinnerWidget" to true put tsNetPost("2",tUrl,tHeaders,tPostData,"postResponse") into tError end mouseUp on postResponse pID, pStatus, pBytes, pResult local tError, tData, tResponse   if pResult is not 0 then -- If pResult is not 0, then a libcurl error occurred, call tsNetRetrError() to get more detail of the error put tsNetRetrError(pID) into tError answer "Error:" && tError && "while retrieving data for entry" & pID else if the first char of pStatus is not 2 then -- Successful HTTP transactions get a 2xx response code, so error if this is not the case answer "Received HTTP response code" && pStatus && "while retreiving data for entry" & pID else -- Otherwise we have a successful transaction, so retrieve any data that was returned put tsNetRetrData(pID, tError) into tData if tError is not empty then -- This should only happen if the external ran out of memory retrieving the data, or the connection was already closed answer "Error:" && tError && "while retrieving data for entry" & pID end if end if   -- Always close the connection to release any memory allocated to the connection tsNetCloseConn pID put jsonImport(tData) into temp //put the keys of temp set the visible of control "spinnerWidget" to false //put temp["imgLink"] set the filename of image id 1006 to temp["imgLink"] put temp["recipe"] into fld recipeDisplay //answer tData end postResponse 22]]U   cREVGeneral scripteditorselection1714 revUniqueID`xBdebugParameterspID, pStatus, pBytes, pResult,debugEntryHandlerM,postResponsescripteditorvscroll  spinnerWidget` X@qcom.livecode.widget.spinner  markerCount @ scaleMarkers  cREVGeneral  revUniqueID@xBHelpEp-- Sent when the mouse is released after clicking -- pMouseButton specifies which mouse button was pressed on mouseUp pMouseButton answer "Type the name of a food dish into 'Dish' field and either type a return or click the submit button to query a receipe API" end mouseUp CR  cREVGeneral scripteditorvscrollscripteditorselection182 revUniqueID ExB revOnline | RunRev