InfluxDB using an API token(perspective)

how to use the GET and POST methods in a script to process InfluxDB using an API token