We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8159c5 commit 3ccd021Copy full SHA for 3ccd021
1 file changed
README.md
@@ -15,15 +15,17 @@ Each namespace has its own authentication requirements and access patterns. Whil
15
```java
16
// Example of accessing Client namespace
17
Glean glean = Glean.builder()
18
- .bearerAuth("client-token")
+ .apiToken("client-token")
19
+ .instance("instance-name")
20
.build();
21
glean.client().search().query()
22
.searchRequest(SearchRequest.builder().query("search term").build())
23
.call();
24
25
// Example of accessing Indexing namespace
26
- .bearerAuth("indexing-token")
27
+ .apiToken("indexing-token")
28
29
30
glean.indexing().documents().index()
31
.request(DocumentBulkIndexRequest.builder() /* document data */ .build())
0 commit comments