Skip to content

Commit d3ba0fa

Browse files
Merge pull request watson-developer-cloud#178 from g-may/master
add listGraphs to Concept Insights
2 parents ccc2b63 + 0dbe1e4 commit d3ba0fa

File tree

1 file changed

+15
-0
lines changed
  • services/concept_insights

1 file changed

+15
-0
lines changed

services/concept_insights/v2.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,21 @@ ConceptInsightsAccounts.prototype.getAccountsInfo = function(params, callback) {
8787
return requestFactory(parameters, callback);
8888
};
8989

90+
/**
91+
* Returns a list of graphs that the authenticated user has read access to
92+
*/
93+
ConceptInsightsGraphs.prototype.listGraphs = function(params, callback) {
94+
var parameters = {
95+
options: {
96+
url: '/v2/graphs',
97+
method: 'GET',
98+
json: true
99+
},
100+
defaultOptions: this._parent._options
101+
};
102+
return requestFactory(parameters, callback);
103+
};
104+
90105
/**
91106
* Retrieves the metadata for one concept
92107
*/

0 commit comments

Comments
 (0)