Get all Ticket Properties from Private API call

Astroraf
Membre

I am trying to get all the properties given by the tickets created by my company.

 

Specifically, I am trying to get the status of the ticket, and the specific codes we used to identify agents in our company. 

 

My code goes as follows: 

Ticket_info = api_client.crm.tickets.get_all(properties=['ticket_status'])
 
but the property does not get filled in. I assume this is not how it is called in the API so is there a way to get a dictionary of all the attributes of the tickets made for my specific company? 
 
Also, is there documentation for python coders using hubspot API's?

 

0 Votes
1 Solution acceptée
Astroraf
Solution
Membre

Looking at the Properties part of HubSpot gives you all the properties your company uses. If you click or search for a property you need to intake into that the dataframe you create, it will give you the value on how it will be when asking for it in the properties keyword argument for get_all() function. 

 

Code goes as follows: 

 

Ticket_info = api_client.crm.tickets.get_all(properties=['Content', 'aff_code', 'arcid__including_this_expedites_your_service_'])
 
This is obviously pertaining to my company but this is how to get the values you specifically want in the properties key. 

Voir la solution dans l'envoi d'origine

0 Votes
1 Réponse 1
Astroraf
Solution
Membre

Looking at the Properties part of HubSpot gives you all the properties your company uses. If you click or search for a property you need to intake into that the dataframe you create, it will give you the value on how it will be when asking for it in the properties keyword argument for get_all() function. 

 

Code goes as follows: 

 

Ticket_info = api_client.crm.tickets.get_all(properties=['Content', 'aff_code', 'arcid__including_this_expedites_your_service_'])
 
This is obviously pertaining to my company but this is how to get the values you specifically want in the properties key. 
0 Votes