Get refresh token

Hi,

i am trying to get refresh tokens for my python app according to the sparse information of the API doc, but i just can’t get it to work. How do you do it? Can we just get a code example?

Another user also suggested using auto refresh, but this doesn’t seem to work…