APIs & Integrations

Not applicable

Error generating object using json coming de contacts/v1/lists/all/contacts/all?hapikey=54354355555

SOLVE

My next problem I need a data that I tried zapier.com but the API is limited and not available, it would be groups that only provide user information (contacts)
I decided to mount a solution in C #, but I encountered new difficulties, now I access the url, json but when I serialize I do not enter the node I want where the information I need, then everything is interrupted again.
I got the module:
contacts/v1/lists/all/contacts/all?hapikey=aaaaaaaa
result =

{
"addedAt": 1503388889043,
"vine": 8301,
"canonical-vid": 8301,
"mergers-vids": [],
"portal-id": 346288888,
"is contact": true
"Profile token": "AO_T-mMAKFGoK5k1MT_JTZegMnQ0sWYYY9nqwaXrNrofXFYbvOqcI1mxQymHCQ2f_n_yQNY5TKtm-bAddfkpmtJspHAdW3cduH88888xsRTsAwSgZlIaZLr0pxgteBA17S",
"Profile-url": "https://app.hubspot.com/contacts/3468888888/lists/public/contact/_AO_T-mMAKFGoK5k1MT_JTZegMnQ0sWYYY9..."
"properties": {
"name": {"value": "Sally"},
"lastmodifieddate": {"value": "1522354104207"},
"company": {"value": "Hook"},
"lastname": {"value": "Meo"}
}
"forms submissions": [
{
"conversion-id": "c9c5eeeeeeeeeeee",
"timestamp": 15055555101,
"form-id": "9644765765765765765e62",
"portal-id": 34777728,
"page-url": "http://www.nnnnnnnnnnnnnnnnnnnnnnnl.com",
"page-title": "site | mysite",
"page-id": "5765765765",
"title": "Form",
"form type": "HUBSPOT",
"meta-data": []
}
]
"identity profiles": [
{
"vine": 8301,
"saved on time": 15084444451,
"deleted-changed-timestamp": 0,
"identities": [
{
"type": "LEAD_GUID",
"value": "ecb43242343243206029",
timestamp: 150344442
}
{
"type": "EMAIL",
"value": "sally@hookdig.com",
"timestamp": 1504444101,
"is primary": true
}
]
}
{
"vineyard": 10951,
"save in timestamp": 154444451,
"deleted-changed-timestamp": 0,
"identities": []
}
{
"vid": 3008001,
"saved on time": 150444451,
"deleted-changed-timestamp": 0,
"identities": []
}
{
"vine": 444451,
"saved on time": 15044451,
"deleted-changed-timestamp": 0,
"identities": []
}
]
"merge-audits": []
}

My problem is entering the node "form submissions": [
And go to the field = "page-title": "site | mysite.",
But always the "form-submissions": [comes null and consequently the page title comes null and generates
Exception in C #
Does anyone have any idea where the problem is and how to solve it?
I'm using json_serializer.Deserialize (result);
To deserialize
And also with javascript, but the error was the same does not generate the field in the object correctly.

0 Upvotes
1 Accepted solution
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Error generating object using json coming de contacts/v1/lists/all/contacts/all?hapikey=54354355555

SOLVE

Hi @junior_bello,

Just to make sure that we're on the same page, you're getting the full correct response from HubSpot, but you're unable to access the values inside the form-submissions array?

View solution in original post

0 Upvotes
1 Reply 1
Derek_Gervais
Solution
HubSpot Alumni
HubSpot Alumni

Error generating object using json coming de contacts/v1/lists/all/contacts/all?hapikey=54354355555

SOLVE

Hi @junior_bello,

Just to make sure that we're on the same page, you're getting the full correct response from HubSpot, but you're unable to access the values inside the form-submissions array?

0 Upvotes