We sent the following elements with our REQUEST:
- ArtistID - value was "42028", an example ID from an artist
- Fieldlist - the requested child elements were:
- ArtistName
- ArtistURL
- Website
- MusicalInfluence
- SoundsLike
- ArtistPictureExists
- FirstOnlineDate
- PostalCode
- City
- CountryID
- CountryCode
- CountryName
- ArtistGenreID
- ArtistGenreParentID
- ArtistGenreTopParentID
- ArtistGenreName
- ArtistParentGenreName
- ArtistTopParentGenreName
We got back the following array in RESPONSE:
array(2) {
["ArtistID"]=>
array(1) {
[0]=>
string(5) "41868"
}
["Artist"]=>
array(1) {
[0]=>
array(18) {
["ArtistName"]=>
string(12) "Thomas Regin"
["ArtistURL"]=>
string(11) "thomasregin"
["Website"]=>
string(27) "http://www.thomas-regin.com"
["MusicalInfluence"]=>
string(65) "Billy Joel, Elton John, Queen, Sting, Phil Collins, Leonard Cohen"
["SoundsLike"]=>
string(17) "All and no one.. "
["ArtistPictureExists"]=>
string(1) "1"
["FirstOnlineDate"]=>
string(19) "16.11.2003 00:46:07"
["PostalCode"]=>
string(4) "2200"
["City"]=>
string(12) "Copenhagen N"
["CountryID"]=>
string(2) "54"
["CountryCode"]=>
string(2) "DK"
["CountryName"]=>
string(7) "Denmark"
["ArtistGenreID"]=>
string(3) "103"
["ArtistGenreParentID"]=>
string(2) "98"
["ArtistGenreTopParentID"]=>
string(2) "98"
["ArtistGenreName"]=>
string(7) "PopRock"
["ArtistParentGenreName"]=>
string(3) "Pop"
["ArtistTopParentGenreName"]=>
string(3) "Pop"
}
}
}
We assign the array to seperate variables and OUTPUT these (without any design here):
- Artist ID: 41868
- Artist Name: Thomas Regin
- Artist URL: thomasregin
- Website: http://www.thomas-regin.com
- Musical Influence: Billy Joel, Elton John, Queen, Sting, Phil Collins, Leonard Cohen
- Sounds Like: All and no one..
- Artist Picture Exists: 1
- First Online Date: 16.11.2003 00:46:07
- Postal Code: 2200
- City: Copenhagen N
- Country ID: 54
- Country Code: DK
- Country Name: Denmark
- Artist Genre ID: 103
- Artist Genre Parent ID: 98
- Artist Genre Top Parent ID: 98
- Artist Genre Name: PopRock
- Artist Parent Genre Name: Pop
- Artist Top Parent Genre Name: Pop