visiblethread
Module visiblethread
API
Definitions

ballerinax/visiblethread Ballerina library
Overview
This is a generated connector from VisibleThread API v1.0 OpenAPI specification.
The VisibleThread API provides services for analyzing or searching documents and web pages.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create a Visible Thread account
- Obtain API key by contacting support@visiblethread.com
Clients
visiblethread: Client
This is a generated connector for VisibleThread API v1.0 OpenAPI specification. The VisibleThread API provides services for analyzing or searching documents and web pages.
Constructor
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Contact support@visiblethread.com to request an API key.
init (ApiKeysConfig apiKeyConfig, ClientConfiguration clientConfig, string serviceUrl)
- apiKeyConfig ApiKeysConfig - API keys for authorization
- clientConfig ClientConfiguration {} - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.visiblethread.com/api/v1" - URL of the target service
getDocs
function getDocs() returns DocumentListSummary[]|error
Get your list of documents
Return Type
- DocumentListSummary[]|error - Successful response
getDocById
function getDocById(int docId) returns DocumentResponseDetailed|error
Get data from a previously submitted document
Parameters
- docId int - Id of document to fetch
Return Type
- DocumentResponseDetailed|error - document response contained readability details for the document
getDictionaries
Get your list of dictionaries
getSearchResults
Get your list of searches
runSearch
Run a search
Parameters
- payload Search - Run a search on document docId using dictionarydictId
getSearchResultsById
function getSearchResultsById(int docId, int dictionaryId, boolean matchingOnly) returns Response|error
Gets search results for a particular document/dictionary
Parameters
- docId int - Id of document
- dictionaryId int - Id of dictionary
- matchingOnly boolean - Only returning paragraphs containing a match
getScans
function getScans() returns ScanResponseSummary[]|error
Get your list of scans
Return Type
- ScanResponseSummary[]|error - Successful response
runScan
function runScan(NewScan payload) returns NewScanResponse|error
Run a new scan
Parameters
- payload NewScan - Scan title and webUrls to analyze
Return Type
- NewScanResponse|error - Successful response
getScanById
function getScanById(int scanId) returns ScanResponseDetailed|error
Get data from a previously run scan
Parameters
- scanId int - Id of scan to fetch
Return Type
- ScanResponseDetailed|error - scan response
getScanUrlById
function getScanUrlById(int scanId, int urlId) returns WebUrlDetail|error
Gets data for a particular scan/webUrl
Return Type
- WebUrlDetail|error - scan response
Records
visiblethread: AdverbsInner
Fields
- 'start int? -
- end int? -
- text string? -
visiblethread: Analysis
Fields
- title string? -
- stats Stats? -
visiblethread: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- apiKey string - All requests on the VisibleThread API needs to include an API key. The API key can be provided as part of the query string or as a request header. The name of the API key needs to be
apiKey
visiblethread: DocumentListSummary
Fields
- id int? -
- name string? -
visiblethread: DocumentResponseDetailed
Fields
- id int? -
- started string? -
- eta string? -
- completed string? -
- title string? -
- stats Stats? -
- scanSettings NewdocumentresponseScansettings? -
- paragraphs DocumentresponsedetailedParagraphs[]? -
visiblethread: DocumentresponsedetailedParagraphs
Fields
- text string? -
- paragraphIndex int? -
- paragraphCounter int? -
- stats DocumentresponsedetailedStats? -
visiblethread: DocumentresponsedetailedStats
Fields
- longSentences LongSentences[]? -
- passives Passives[]? -
- veryLongSentences VeryLongSentences[]? -
- hiddenVerbs HiddenVerbs[]? -
- adverbs Adverbs[]? -
visiblethread: DocumentResponseNotReady
Fields
- id int? -
- started string? -
- eta string? -
visiblethread: HiddenverbsInner
Fields
- 'start int? -
- end int? -
- noun string? -
- text string? -
visiblethread: LongsentencesInner
Fields
- 'start int? -
- end int? -
- wordCount int? -
visiblethread: NewDocumentResponse
Fields
- docId int -
- task string -
- scanSettings NewdocumentresponseScansettings -
visiblethread: NewdocumentresponseScansettings
Fields
- longSentenceWordCount int? -
- veryLongSentenceWordCount int? -
visiblethread: NewScan
Fields
- title string -
- webUrls NewscanWeburls[] -
- scanSettings NewscanScansettings? -
visiblethread: NewScanResponse
Fields
- id int -
- title string -
- webUrls NewscanresponseWeburls[] -
visiblethread: NewscanresponseWeburls
Fields
- url string -
- id int -
visiblethread: NewscanScansettings
Fields
- longSentenceWordCount int? -
- veryLongSentenceWordCount int? -
visiblethread: NewscanWeburls
Fields
- url string -
visiblethread: PassivesInner
Fields
- 'start int? -
- end int? -
- verb string? -
- passivePiece string? -
visiblethread: ScanDetailed
Fields
- title string -
- webUrls WebUrl[] -
- stats Stats -
visiblethread: ScanResponseDetailed
Fields
- id int? -
- started string? -
- eta string? -
- completed string? -
- scan ScanDetailed? -
visiblethread: ScanResponseSummary
Fields
- id int? -
- started string? -
- eta string? -
- completed string? -
- scan ScanSummary? -
visiblethread: ScanSummary
Fields
- title string -
- webUrls WebUrlHeader[] -
visiblethread: Search
Fields
- docId int -
- dictId int -
visiblethread: Stats
Fields
- avgSentenceLength int? -
- fleschReadingLevel int? -
- wordCount int? -
- sentenceCount int? -
- longSentenceCount int? -
- fleschKincaidGradeLevel float? -
- passiveSentenceCount int? -
visiblethread: VerylongsentencesInner
Fields
- 'start int? -
- end int? -
- wordCount int? -
visiblethread: WebResponseNotReady
Fields
- id int? -
- started string? -
- eta string? -
visiblethread: WebUrl
Fields
- Fields Included from *WebUrlHeader
- analysis Analysis -
visiblethread: WebUrlDetail
Fields
- title string -
- url string -
- stats Stats -
- paragraphs DocumentresponsedetailedParagraphs[]? -
visiblethread: WebUrlHeader
Fields
- id int -
- url string -
Import
import ballerinax/visiblethread;
Metadata
Released date: about 3 years ago
Version: 1.2.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.0.0
GraalVM compatible: Yes
Pull count
Total: 5
Current verison: 0
Weekly downloads
Keywords
Business Intelligence/Language Analysis
Cost/Paid
Contributors
Dependencies