You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README for v2.1 public interface changes
- Replace deprecated credential key names in examples: clientID→clientId,
keyID→keyId, TokenURI→tokenUri
- Update Insert, Get, and Query response examples to use skyflowId (the SDK
has always returned skyflowId for Insert; Get/Query now return skyflowId
as the primary key)
- Add deprecation note after each affected response block: skyflow_id is
deprecated and will be removed in an upcoming release
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
> **Note:** The response key is `skyflowId`. The legacy `skyflow_id` key is deprecated and will be removed in an upcoming release.
303
+
302
304
# Vault
303
305
304
306
The [Vault](https://github.com/skyflowapi/skyflow-java/tree/main/samples/src/main/java/com/example/vault) module performs operations on the vault, including inserting records, detokenizing tokens, and retrieving tokens associated with a `skyflow_id`.
> **Note:** The response key is `skyflowId`. The legacy `skyflow_id` key is deprecated and will be removed in an upcoming release.
455
+
452
456
### Insert call example with `upsert` option
453
457
454
458
An upsert operation checks for a record based on a unique column's value. If a match exists, the record is updated; otherwise, a new record is inserted.
> **Note:** The response key is `skyflowId`. The legacy `skyflow_id` key is deprecated and will be removed in an upcoming release.
1516
+
1505
1517
## Upload File
1506
1518
1507
1519
To upload files to a Skyflow vault, use the `uploadFile` method. The `UploadFileRequest` class accepts parameters such as the file path, table name, and file name.
@@ -2829,10 +2841,10 @@ public class ChangeLogLevel {
2829
2841
// Step 3: Define additional Skyflow credentials (optional, if needed for credentials string)
2830
2842
// Create a JSON object to hold your Skyflow credentials
2831
2843
JsonObject credentialsObject =newJsonObject();
2832
-
credentialsObject.addProperty("clientID", "<YOUR_CLIENT_ID>"); // Replace with your client ID
2844
+
credentialsObject.addProperty("clientId", "<YOUR_CLIENT_ID>");// Replace with your client ID
2833
2845
credentialsObject.addProperty("clientName", "<YOUR_CLIENT_NAME>"); // Replace with your client name
2834
-
credentialsObject.addProperty("TokenURI", "<YOUR_TOKEN_URI>"); // Replace with your token URI
2835
-
credentialsObject.addProperty("keyID", "<YOUR_KEY_ID>"); // Replace with your key ID
2846
+
credentialsObject.addProperty("tokenUri", "<YOUR_TOKEN_URI>");// Replace with your token URI
2847
+
credentialsObject.addProperty("keyId", "<YOUR_KEY_ID>");// Replace with your key ID
2836
2848
credentialsObject.addProperty("privateKey", "<YOUR_PRIVATE_KEY>"); // Replace with your private key
2837
2849
2838
2850
// Convert the credentials object to a string format to be used for generating a Bearer Token
0 commit comments