File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 13
13
- [ Pull] ( api/woqlClient.js?id=pull )
14
14
- [ Push] ( api/woqlClient.js?id=push )
15
15
- [ Fetch] ( api/woqlClient.js?id=fetch )
16
+ - [ setApiKey] ( api/woqlClient.js?id=setApiKey )
16
17
- [ customHeaders] ( api/woqlClient.js?id=customHeaders )
18
+ - [ setApiKey] ( api/woqlClient.js?id=setApiKey )
17
19
- [ copy] ( api/woqlClient.js?id=copy )
18
20
- [ server] ( api/woqlClient.js?id=server )
19
21
- [ api] ( api/woqlClient.js?id=api )
156
158
- [ update_quad] ( api/woql.js?id=update_quad )
157
159
- [ value] ( api/woql.js?id=value )
158
160
- [ link] ( api/woql.js?id=link )
159
- - [ libs] ( api/woql.js?id=libs )
160
161
- [ DocParamsGet] ( api/typedef.js?id=DocParamsGet )
161
162
- [ DocParamsPost] ( api/typedef.js?id=DocParamsPost )
162
163
- [ DocParamsPut] ( api/typedef.js?id=DocParamsPut )
Original file line number Diff line number Diff line change @@ -1217,6 +1217,9 @@ const query = WOQL.lib().previousCommits('m8vpxewh2aovfauebfkbzwmj4qwr5lb')
1217
1217
// return the commits of a specific branch starting from the head
1218
1218
// if a timestamp is given, gets the commits before the specified timestamp
1219
1219
const query = WOQL .lib ().commits (' main' ,10 ,1630683082.9278786 )
1220
+
1221
+ // return the branches list with the timestamp and commits id
1222
+ const query = WOQL .lib ().branches ()
1220
1223
```
1221
1224
1222
1225
### string
Original file line number Diff line number Diff line change @@ -248,6 +248,14 @@ Use [#localAuth](#localAuth) instead.
248
248
Use [#remoteAuth](#remoteAuth) instead.
249
249
250
250
251
+ ### setApiKey
252
+ #### woqlClient.setApiKey(accessToken)
253
+
254
+ | Param | Type |
255
+ | --- | --- |
256
+ | accessToken | <code>string</code> |
257
+
258
+
251
259
### customHeaders
252
260
#### woqlClient.customHeaders(customHeaders) ⇒ <code>object</code>
253
261
add extra headers to your request
@@ -258,6 +266,16 @@ add extra headers to your request
258
266
| customHeaders | <code>object</code> |
259
267
260
268
269
+ ### setApiKey
270
+ #### woqlClient.setApiKey(accessToken)
271
+ set the api access token to connect to TerminusX Cloud
272
+
273
+
274
+ | Param | Type |
275
+ | --- | --- |
276
+ | accessToken | <code>string</code> |
277
+
278
+
261
279
### copy
262
280
#### woqlClient.copy() ⇒ [<code>WOQLClient</code>](#WOQLClient)
263
281
creates a copy of the client with identical internal state and context
You can’t perform that action at this time.
0 commit comments