Skip to content

Commit a237e87

Browse files
committed
2 parents 7fe3766 + 2074df0 commit a237e87

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

docs/api/woql.js.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,16 +1356,3 @@ Creates a pattern matching rule for a quad [Subject, Predicate, Object, Graph] o
13561356
| object | <code>string</code> | The IRI of a node or a variable, or a literal |
13571357
| [graphRef] | <code>typedef.GraphRef</code> | specify a graph type, default is instance schema|instance |
13581358

1359-
1360-
### libs
1361-
#### WOQL.libs(libs, parent, graph, prefix)
1362-
Called to load Terminus Predefined libraries:
1363-
1364-
1365-
| Param | Type | Description |
1366-
| --- | --- | --- |
1367-
| libs | <code>\*</code> | xsd,xdd,box |
1368-
| parent | <code>\*</code> | |
1369-
| graph | <code>\*</code> | -graph ref |
1370-
| prefix | <code>\*</code> | -prefix you want use |
1371-

lib/woqlClient.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ WOQLClient.prototype.customHeaders = function(customHeaders) {
6565
else return this._customHeaders
6666
}
6767

68+
/**
69+
* set the api access token to connect to TerminusX Cloud
70+
* @param {string} accessToken
71+
*/
72+
73+
WOQLClient.prototype.setApiKey = function(accessToken) {
74+
this.localAuth({type: "jwt", key: accessToken} )
75+
}
76+
6877
WOQLClient.CONST = CONST
6978

7079
/**

0 commit comments

Comments
 (0)