Export tickets via:native_messaging | Community
Skip to main content

Export tickets via:native_messaging

  • November 10, 2023
  • 1 reply
  • 0 views

Sergi

Hi, 

I'm trying to export all the tickets that come from via: native_messaging. I've created the following code with python: 

import pandas as pd
import requests

headers = {
  "Content-Type": "application/json",
}

response = requests.request(
  "GET",
  url,
  auth=('xxxxxxxx', 'xxxxxxxx'),
  headers=headers
)

data = response.json()  # Convierte la respuesta JSON en un diccionario de Python

# Crear un DataFrame a partir del diccionario de datos
df = pd.DataFrame(data['results'])

The code only returne me 100 rows. I have tried to iterate for each page but I get a 505 error. It is strange because this same iterate does work for me with other endpoints.  I'm trying /api/v2/search/export because I need more than 1000 rows. If anyone know how to iterate with this endpoint to get all the data it would be great.

Thank you!

 

1 reply

Hi Sergi,
 
Do you also encounter an error when including the page[size] parameter in order to use cursor-based pagination?