How to read from influxdb using pyspark 3.0.0

how to read from influxdb using pyspark 3.0.0

Probably best to use the rest api

https://docs.influxdata.com/influxdb/v2.0/query-data/execute-queries/influx-api/