Update content/influxdb/cloud-serverless/reference/client-libraries/v3/java.md
Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>pull/5529/head
parent
ee5c39f069
commit
9ae63dc6f3
|
@ -49,7 +49,7 @@ The following example shows how to use `influxdb3-java` to write and query data
|
|||
```java
|
||||
public class HelloInfluxDB {
|
||||
private static final String HOST_URL = "https://{{< influxdb/host >}}";
|
||||
private static final String DATABASE = "java"; // Database name is the bucket name present in the cloud portal
|
||||
private static final String DATABASE = "java"; // your bucket in InfluxDB Cloud Serverless
|
||||
private static final char[] API_TOKEN = "API_TOKEN".toCharArray(); // Avoid hard-coding API_TOKEN in production. It is present in the cloud portal.
|
||||
|
||||
// Authenticate, Write and Query data from the serverless InfluxDB
|
||||
|
|
Loading…
Reference in New Issue