Update content/influxdb/cloud-serverless/reference/client-libraries/v3/java.md

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
pull/5529/head
Suyash Joshi 2024-07-24 11:40:32 +01:00 committed by GitHub
parent ee5c39f069
commit 9ae63dc6f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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