How to get Phone Number , First & LastName from Contacts JSON Return?

contacts
oauth

#1

How to get Phone Number, First & LastName from Contacts JSON Return?


#2

@Umar_Jamil are you requesting all the fields in your call to get the contacts? If so then you can parse the data object that is returned in the JSON block for the values.


#3

@pmanca Yes I’m requesting all the fields in my call to get the contacts. I do parse the data object that is returned in the JSON block for the values but they are not returning any Phone no !.. See the output in snapshot & also See the uri I’m sending for JSON Response “https://api.hubapi.com/contacts/v1/lists/all/contacts/all?access_token&hapikey=demo&count=1000


#4

@Umar_Jamil you did not ask for the phone number that is why. Take a look at the docs here on how to request additional fields


#5

@pmanca can you send me what uri should be sent to get the phone number also.


#6

@Umar_Jamil My apologies i should have linked this the first time. Here is the link to the docs.

Let me know if you run into anything.