Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Grab or get the email address and given name.

$
0
0

This the output I am getting from yahoo contact API

How can I grab or get the email address and given name.

 

Please advise me.

Thank you for your help

 

OUTPUT

{
  "contacts": {
    "start": 0,
    "count": 5,
    "total": 5,
    "contact": [
      {
        "isConnection": false,
        "id": 3,
        "fields": [
          {
            "id": 6,
            "type": "yahooid",
            "value": "raji_kris09",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 7,
            "type": "guid",
            "value": "OEZYDW3EVJJPLQMU3ZFTLYZR7Y",
            "editedBy": "OWNER",
            "flags": [
              "Y360"
            ],
            "categories": [
             
            ],
            "isConnection": false
          },
          {
            "id": 5,
            "type": "name",
            "value": {
              "givenName": "Raji",
              "middleName": "",
              "familyName": "Krishnan",
              "prefix": "",
              "suffix": "",
              "givenNameSound": "",
              "familyNameSound": ""
            },
            "editedBy": "OWNER",
            "categories": [
             
            ]
          }
        ]
      },
      {
        "isConnection": false,
        "id": 16777218,
        "fields": [
          {
            "id": 16777220,
            "type": "yahooid",
            "value": "medhibhanu",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 16777219,
            "type": "name",
            "value": {
              "givenName": "Bhanu",
              "middleName": "",
              "familyName": "Medhi",
              "prefix": "",
              "suffix": "",
              "givenNameSound": "",
              "familyNameSound": ""
            },
            "editedBy": "OWNER",
            "categories": [
             
            ]
          }
        ]
      },
      {
        "isConnection": false,
        "id": 16777221,
        "fields": [
          {
            "id": 16777228,
            "type": "email",
            "value": ""emailaddress@rediffmail.com",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 16777227,
            "type": "name",
            "value": {
              "givenName": "bhanushri",
              "middleName": "",
              "familyName": "medhi",
              "prefix": "",
              "suffix": "",
              "givenNameSound": "",
              "familyNameSound": ""
            },
            "editedBy": "OWNER",
            "categories": [
             
            ]
          }
        ]
      },
      {
        "isConnection": false,
        "id": 1,
        "fields": [
          {
            "id": 1,
            "type": "yahooid",
            "value": "minu_n_2000",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 2,
            "type": "name",
            "value": {
              "givenName": "minu",
              "middleName": "",
              "familyName": "nair",
              "prefix": "",
              "suffix": "",
              "givenNameSound": "",
              "familyNameSound": ""
            },
            "editedBy": "OWNER",
            "categories": [
             
            ]
          }
        ]
      },
      {
        "isConnection": false,
        "id": 33554436,
        "fields": [
          {
            "id": 33554441,
            "type": "email",
            "value": ""emailaddress@ymail.com",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 16777226,
            "type": "yahooid",
            "value": "emailaddress@ymail.com",
            "editedBy": "OWNER",
            "categories": [
             
            ]
          },
          {
            "id": 33554440,
            "type": "name",
            "value": {
              "givenName": "rekha",
              "middleName": "",
              "familyName": "",
              "prefix": "",
              "suffix": "",
              "givenNameSound": "",
              "familyNameSound": ""
            },
            "editedBy": "OWNER",
            "categories": [
             
            ]
          }
        ]
      }
    ]
  }
}

 

 


Viewing all articles
Browse latest Browse all 13200

Trending Articles