You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zenpy has been extremely helpful in pulling data utilizing the Zendesk API. I was running some code last week that was working (end of August) however when trying to run the same code September 5th, 2023 it's raising an exception. Tried a few different methods to but encountering the same problem.
I'm trying to get the ticket_metrics for a specific ticket based on it's id. This code worked metrics = zenpy_client.ticket.metrics(ticket.id)
APIException: {"error": {"title": "Invalid attribute", "message": "You passed an invalid value for the page attribute. Invalid parameter: page must be an integer from api/v2/ticket_metrics/show"}}
I get this error when I change the code to metrics = zenpy_client.ticket.metrics(ticket=ticket.id) or metrics = zenpy_client.ticket.metrics(ticket=ticket)
The API endpoint I want to hit from Zendesk is /api/v2/tickets/{ticket_id}/metrics
Thank you!
The text was updated successfully, but these errors were encountered:
YOUCH! This could be an inadvertent result from an overly aggressive CBP campaign :)
On it. Give me a day or two....terribly sorry you got hit from this @rc-abodkins
Hey,
Zenpy has been extremely helpful in pulling data utilizing the Zendesk API. I was running some code last week that was working (end of August) however when trying to run the same code September 5th, 2023 it's raising an exception. Tried a few different methods to but encountering the same problem.
I'm trying to get the ticket_metrics for a specific ticket based on it's id. This code worked
metrics = zenpy_client.ticket.metrics(ticket.id)
However running it now I get the following error:
I get this error when I change the code to
metrics = zenpy_client.ticket.metrics(ticket=ticket.id)
ormetrics = zenpy_client.ticket.metrics(ticket=ticket)
The API endpoint I want to hit from Zendesk is
/api/v2/tickets/{ticket_id}/metrics
Thank you!
The text was updated successfully, but these errors were encountered: