Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Calling JSON REST Services with FoxPro and wwJsonServiceClient

url: https://west-wind.com/wconnect/weblog/ShowEntry.blog?id=920
////

do wwhttp
do wwJsonSerializer

loProxy = CREATEOBJECT("wwJsonServiceClient")

*** Make the service call
loAlbums = loProxy.CallService("http://albumviewerswf.west-wind.com/api/albums",
                               "","GET")
? loProxy.cErrorMsg

lnCount = loAlbums.Count

* ? loAlbums.Item(1).Titl

FOR EACH loAlbum in loAlbums 
   ? loAlbum.Title  + ;
     " by " + loAlbum.Artist.ArtistName + ;
     " (" +  TRANSFORM(loAlbum.Tracks.Count) + " tracks)"
   FOR EACH loTrack IN loAlbum.Tracks
		? "  " + loTrack.SongName
   ENDFOR
ENDFOR

Comment

PREVIOUS NEXT
Code Example
Javascript :: This will give Iodoform reaction on the treatment with Na2CO3 and I2: 
Javascript :: install vaadin router 
Javascript :: js return vs break in for loop 
Javascript :: all callbacks and function for iCheck plugin 
Javascript :: uselazyquery refetch from child 
Javascript :: javascript leetcode solutions 
Javascript :: create serverless hello-world 
Javascript :: how to pop more then one element js 
Javascript :: bootstrap off canvas not working 
Javascript :: reactjs copytoclipboard box 
Javascript :: scenery 
Javascript :: how to remove tashkeel from arabic charactor 
Javascript :: Nodemon e criando o Servidor com express 
Javascript :: metodo para objeto donde el segundo le pasa un argumento sera un callback method y pasar al arra.filter 
Javascript :: tab in textarea javascript 
Javascript :: react-native local image not showing ios 
Javascript :: dynamodb json to normal json 
Javascript :: switch is not exported from react-router-dom 
Javascript :: how to read json in c# and insert into database 
Javascript :: what does the syntax () = {} mean 
Javascript :: javascript array get element by index 
Javascript :: javascript ejemplo de template literal anidados 
Javascript :: argument and parameter 
Javascript :: Cycle through a list to see if there is a match for the characters entered into an input box 
Javascript :: fcctest cdn reactjs setup 
Javascript :: Instead of creating a duplicate of the property each time, we can simply add the property to the prototype, since all instances have access to the prototype object. 
Javascript :: SharePoint Rest Api in Batch using PnP JS 
Javascript :: resolveAssetSource react-native-web 
Javascript :: nestjs pg heroku 
Javascript :: jq add variable 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =