Hi,
Need to get VCARD response. Get address and telephone fields and display to a GUI (List).
(1) Any suggestion on how to MAP the response (VCARD) to an item or collapsible List? I am not clear about the syntax definition and how to map array.
(2) Where and how to inserting an javascript to parse the VCARD response, If auto-mapping cannot be done.
Thanks.
The automatically generated return format by Appery.io GUI for VCARD is as follows:
VCARD
VCARD
DownArrow
DownArrow
DownArrow
The following are the VCARD (W3C) response from a service end point.
{
"JCARD": [
"vcardstream",
[
"vcard",
[
[
"version",
{},
"text",
"4.0"
],
[
"n",
{},
"text",
[
"Gump",
"Forrest",
"",
"",
""
]
],
[
"fn",
{},
"text",
"Forrest Gump"
],
[
"org",
{},
"text",
"Bubba Gump Shrimp Co"
],
[
"title",
{},
"text",
"Shrimp Man"
],
[
"photo",
{
"mediatype": "image/gif"
},
"uri",
"http://www.example.com/dir_photos/my_..."
],
[
"tel",
{
"type": [
"work",
"voice"
]
},
"uri",
"tel:+1-111-555-1212"
],
[
"tel",
{
"type": [
"home",
"voice"
]
},
"uri",
"tel:+1-404-555-1212"
],
[
"adr",
{
"label": "100 Waters Edge\nBaytown, LA 30314\nUnited States of America",
"type": "work"
},
"text",
[
"",
"",
"100 Waters Edge",
"Baytown",
"LA",
"30314",
"United States of America"
]
],
[
"adr",
{
"label": "42 Plantation St.\nBaytown, LA 30314\nUnited States of America",
"type": "home"
},
"text",
[
"",
"",
"42 Plantation St.",
"Baytown",
"LA",
"30314",
"United States of America"
]
],
[
"email",
{},
"text",
"a href="mailto:forrestgump@example.com" rel="nofollow"forrestgump@example.com/a"
],
[
"rev",
{},
"timestamp",
"2008-04-24T19:52:43Z"
]
]
]
]
}