how to get contacts on tickets records

question1:

Now I want to get contact information through api call. For example, through the https://api.hubapi.com/companies/v2/companies/:CompanyID/contacts interface, the contacts associated with companies can be obtained. The contacts associated with deals can be obtained through the interface of https://developers.hubspot.com/beta-docs/reference/API/CRM/Objects/Deals/V1. Is it feasible to construct a response in python code according to the information of the contacts? At present, there is still a problem. There are no tickets. I haven’t found any related interfaces. Which interface can get the contact information associated with Ticks?

question2:

At first, the developer account was not set with crm.objects.companies.read, crm.schemas.companies.read, tickets, crm.objects.deals.read, crm.schemas.deals.read, but only with crm.objects.contacts.read, Crm.objects.contacts.write. Later, I used the develop account to add these scopes under the app, but when testing on the web page, I always get an error prompt. Why? Isn’t the required scopes already set? Why do I still prompt for the lack of scopes?

Is it because I need to reset something after adding scopes? The access token used in the interface is directly obtained from our system waplus, and associating the contact with hubspot will bring the access token.

Hi @VElle,

Thank you for contacting the Community!

Allow me to consult a few HubSpot experts for some insights: Hello @mangelet , @Mike_Eastwood , @HubDoPete! Would you kindly share any recommendations for @VElle?

We deeply value your contributions!

Thanks,

Diana