Get all Ticket Properties from Private API call

Astroraf
メンバー

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 いいね!
1件の承認済みベストアンサー
Astroraf
解決策
メンバー

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 いいね!
1件の返信 1
Astroraf
解決策
メンバー

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 いいね!