Stroke points

Hi, I’m programming a script.
If I make a stroke with the gpencil, how can I get a list of points that compose the stroke?, I have to convert it to editable or something? :confused:
Thanks.