Skip to content

Commit 3ccd021

Browse files
fix: Updating README.md sample
1 parent d8159c5 commit 3ccd021

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ Each namespace has its own authentication requirements and access patterns. Whil
1515
```java
1616
// Example of accessing Client namespace
1717
Glean glean = Glean.builder()
18-
.bearerAuth("client-token")
18+
.apiToken("client-token")
19+
.instance("instance-name")
1920
.build();
2021
glean.client().search().query()
2122
.searchRequest(SearchRequest.builder().query("search term").build())
2223
.call();
2324

2425
// Example of accessing Indexing namespace
2526
Glean glean = Glean.builder()
26-
.bearerAuth("indexing-token")
27+
.apiToken("indexing-token")
28+
.instance("instance-name")
2729
.build();
2830
glean.indexing().documents().index()
2931
.request(DocumentBulkIndexRequest.builder() /* document data */ .build())

0 commit comments

Comments
 (0)