![]() |
Infohub JS API
|
Provides direct access to the COLNEO BCF 3.0 API.
Entry point of a resource-oriented client for the BCF 3.0 API: projects and project(projectId) return scoped resource objects (topics, comments, viewpoints, documents, ...) instead of exposing one flat method per endpoint. Every request resolves to an ApiResponse; transport and parsing failures are returned with status 500 instead of being thrown.
The methods above are only the entry points. Every other endpoint is a method or getter on one of the resource classes below, reached by chaining off projects/project() - open one to see its full method list:
Public Member Functions | |
| constructor (ctx) | |
| project (projectId) | |
| get | projects () |
| constructor | ( | ctx | ) |
Creates a BCF client bound to an infohub context.
| {Context} | ctx - Configured context that supplies the BCF service URL and access token. |
| project | ( | projectId | ) |
Selects one BCF project.
| {string} | projectId - BCF project identifier. |
| get projects | ( | ) |
Gets the collection of BCF projects visible to the authenticated user.