nucleus_api
v4.0.11
Published
Nucleus_text_analytics_APIs_from_SumUp_Analytics__Example_and_documentation_httpswww_sumup_aiapisnucleus_documentation
Downloads
14
Readme
nucleus_api
NucleusApi - JavaScript client for nucleus_api Nucleus text analytics APIs from SumUp Analytics. Example and documentation: https://www.sumup.ai/apis/#nucleus-documentation
- API version: v4.0.11
- Package version: v4.0.11 For more information, please visit https://www.sumup.ai
Installation
For Node.js
npm
Run the following command to install the latest version of the sdk:
npm install nucleus_api@latest --save --force
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var NucleusApi = require('nucleus_api');
var my_instance = new NucleusApi.ApiClient("http://localhost:5000", "YOUR_API_KEY")
var api = new NucleusApi.NucleusApi(my_instance)
api.postExampleJob("purple", 5, function (error, data, response) {
if (error) {console.log(error);return;}
console.log(data);
}, function(prog) {
console.log("Progress:", prog);
})
The legacy api's can be called using callLegacyApi
, as follows:
api.callLegacyApi("topic_spot_metrics_api.topic_spot_metrics_api",{dataset:"my_dataset"}, function (error, data, response) {
if (error) {console.log(error);return;}
console.log(data);
}, function(prog) {
console.log("Progress:", prog);
})
Documentation for API Endpoints
All URIs are relative to https://localhost:5000
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- NucleusApi.NucleusApi | getJob | GET /jobs | NucleusApi.NucleusApi | getListDatasets | GET /datasets | NucleusApi.NucleusApi | getListFilters | GET /filters | NucleusApi.NucleusApi | getListForensics | GET /forensics | NucleusApi.NucleusApi | getUser | GET /users | NucleusApi.NucleusApi | postAdminAddUser | POST /admin/add_user | NucleusApi.NucleusApi | postAdminDeleteUser | POST /admin/delete_user | NucleusApi.NucleusApi | postAdminList | POST /admin/list | NucleusApi.NucleusApi | postAdminManageDataset | POST /admin/manage_dataset | NucleusApi.NucleusApi | postAdminUpdateUser | POST /admin/update_user | NucleusApi.NucleusApi | postAppendJsonToDataset | POST /datasets/append_json_to_dataset | NucleusApi.NucleusApi | postAuthorConnectivityApi | POST /topics/author_connectivity | NucleusApi.NucleusApi | postAvailableSecFilings | POST /feeds/available_sec_filings | NucleusApi.NucleusApi | postBulkInsertJson | POST /datasets/bulk_insert_json | NucleusApi.NucleusApi | postCreateDatasetFromSecFilings | POST /feeds/create_dataset_from_sec_filings | NucleusApi.NucleusApi | postCustomTrackerApi | POST /dashboard/custom_tracker | NucleusApi.NucleusApi | postDatasetInfo | POST /datasets/dataset_info | NucleusApi.NucleusApi | postDatasetTagging | POST /datasets/dataset_tagging | NucleusApi.NucleusApi | postDeleteDataset | POST /datasets/delete_dataset | NucleusApi.NucleusApi | postDeleteDocument | POST /datasets/delete_document | NucleusApi.NucleusApi | postDeleteFilter | POST /filters/delete_filter | NucleusApi.NucleusApi | postDeleteForensic | POST /forensics/delete_forensic | NucleusApi.NucleusApi | postDocClassifyApi | POST /documents/document_classify | NucleusApi.NucleusApi | postDocDisplay | POST /documents/document_display | NucleusApi.NucleusApi | postDocInfo | POST /documents/document_info | NucleusApi.NucleusApi | postDocNewWordsApi | POST /documents/document_new_words | NucleusApi.NucleusApi | postDocNoveltyApi | POST /documents/document_novelty | NucleusApi.NucleusApi | postDocRecommendApi | POST /documents/document_recommend | NucleusApi.NucleusApi | postDocSentimentApi | POST /documents/document_sentiment | NucleusApi.NucleusApi | postDocSummaryApi | POST /documents/document_summary | NucleusApi.NucleusApi | postDocumentContrastSummaryApi | POST /documents/document_contrasted_summary | NucleusApi.NucleusApi | postExampleJob | POST /jobs/start_example_job | NucleusApi.NucleusApi | postKeyAuthorsApi | POST /dashboard/key_authors | NucleusApi.NucleusApi | postLegacy | POST /legacy | NucleusApi.NucleusApi | postMetadataAutocomplete | POST /datasets/metadata_autocomplete | NucleusApi.NucleusApi | postMetadataHistogram | POST /datasets/metadata_histogram | NucleusApi.NucleusApi | postRenameDataset | POST /datasets/rename_dataset | NucleusApi.NucleusApi | postSaveFilter | POST /filters/save_filter | NucleusApi.NucleusApi | postSaveForensic | POST /forensics/save_forensic | NucleusApi.NucleusApi | postSetupConnector | POST /connectors/setup_connector | NucleusApi.NucleusApi | postSmartAlertsApi | POST /dashboard/smart_alerts | NucleusApi.NucleusApi | postTopicApi | POST /topics/topics | NucleusApi.NucleusApi | postTopicConsensusApi | POST /topics/topic_consensus | NucleusApi.NucleusApi | postTopicConsensusTransferApi | POST /topics/topic_consensus_transfer | NucleusApi.NucleusApi | postTopicContrastApi | POST /topics/topic_contrast | NucleusApi.NucleusApi | postTopicDeltaApi | POST /topics/topic_delta | NucleusApi.NucleusApi | postTopicHistoricalAnalysisApi | POST /topics/topic_historical | NucleusApi.NucleusApi | postTopicSentimentApi | POST /topics/topic_sentiment | NucleusApi.NucleusApi | postTopicSentimentTransferApi | POST /topics/topic_sentiment_transfer | NucleusApi.NucleusApi | postTopicSummaryApi | POST /topics/topic_summary | NucleusApi.NucleusApi | postTopicTransferApi | POST /topics/topic_transfer | NucleusApi.NucleusApi | postUpdateDatasetMetadata | POST /datasets/update_dataset_metadata | NucleusApi.NucleusApi | postUpdateForensic | POST /forensics/update_forensic | NucleusApi.NucleusApi | postUploadFile | POST /datasets/upload_file | NucleusApi.NucleusApi | postUploadUrl | POST /datasets/upload_url |
Documentation for Models
- NucleusApi.AdminAddUserModel
- NucleusApi.AdminAddUserRespModel
- NucleusApi.AdminDeleteUserModel
- NucleusApi.AdminDeleteUserRespModel
- NucleusApi.AdminListModel
- NucleusApi.AdminListRespModel
- NucleusApi.AdminManageDatasetModel
- NucleusApi.AdminManageDatasetRespModel
- NucleusApi.AdminUpdateUserModel
- NucleusApi.AdminUpdateUserRespModel
- NucleusApi.ApiCall
- NucleusApi.AppendJsonRespModel
- NucleusApi.Appendjsonparams
- NucleusApi.AuthorConnectL1RespModel
- NucleusApi.AuthorConnectL2RespModel
- NucleusApi.AuthorConnectRespModel
- NucleusApi.AuthorConnection
- NucleusApi.AvailableFilingsResponseModel
- NucleusApi.BulkInsertParams
- NucleusApi.BulkInsertRespModel
- NucleusApi.CreateSecDatasetResponseModel
- NucleusApi.CustomTrackerL1RespModel
- NucleusApi.CustomTrackerModel
- NucleusApi.CustomTrackerRespModel
- NucleusApi.DatasetInfo
- NucleusApi.DatasetInfoModel
- NucleusApi.DatasetInfoRespModel
- NucleusApi.DatasetRespModel
- NucleusApi.DatasetTagging
- NucleusApi.DatasetTaggingL1RespModel
- NucleusApi.DatasetTaggingRespModel
- NucleusApi.DeleteDatasetModel
- NucleusApi.DeleteDatasetRespModel
- NucleusApi.DeleteDocumentModel
- NucleusApi.DeleteDocumentRespModel
- NucleusApi.DeleteFilterModel
- NucleusApi.DeleteFilterRespModel
- NucleusApi.DeleteForensicModel
- NucleusApi.DeleteForensicRespModel
- NucleusApi.DocClassifyL1RespModel
- NucleusApi.DocClassifyL2DRRespModel
- NucleusApi.DocClassifyL2PMRespModel
- NucleusApi.DocClassifyModel
- NucleusApi.DocClassifyRespModel
- NucleusApi.DocDisplay
- NucleusApi.DocDisplayL1RespModel
- NucleusApi.DocDisplayRespModel
- NucleusApi.DocInfo
- NucleusApi.DocInfoRespL1Model
- NucleusApi.DocInfoRespModel
- NucleusApi.Document
- NucleusApi.DocumentContrastSummaryL1Model
- NucleusApi.DocumentContrastSummaryL2Model
- NucleusApi.DocumentContrastSummaryModel
- NucleusApi.DocumentContrastSummaryRespModel
- NucleusApi.DocumentNewWordsL1Model
- NucleusApi.DocumentNewWordsModel
- NucleusApi.DocumentNewWordsRespModel
- NucleusApi.DocumentNoveltyL1Model
- NucleusApi.DocumentNoveltyModel
- NucleusApi.DocumentNoveltyRespModel
- NucleusApi.DocumentRecommendL1RespModel
- NucleusApi.DocumentRecommendL2RespModel
- NucleusApi.DocumentRecommendModel
- NucleusApi.DocumentRecommendRespModel
- NucleusApi.DocumentSentimentL1Model
- NucleusApi.DocumentSentimentModel
- NucleusApi.DocumentSentimentRespModel
- NucleusApi.DocumentSummaryL1Model
- NucleusApi.DocumentSummaryL2Model
- NucleusApi.DocumentSummaryModel
- NucleusApi.DocumentSummaryRespModel
- NucleusApi.EdgarAvailableFields
- NucleusApi.EdgarFields
- NucleusApi.EdgarQuery
- NucleusApi.ExampleJobInnerResponse
- NucleusApi.ExampleJobResponse
- NucleusApi.FilePropertyModel
- NucleusApi.FilterModel
- NucleusApi.ForensicModel
- NucleusApi.JobRespModel
- NucleusApi.JsonPropertyModel
- NucleusApi.KeyAuthorsL1RespModel
- NucleusApi.KeyAuthorsL2RespModel
- NucleusApi.KeyAuthorsModel
- NucleusApi.KeyAuthorsRespModel
- NucleusApi.LegacyResponseModel
- NucleusApi.ListDatasetsRespModel
- NucleusApi.ListFiltersModel
- NucleusApi.ListForensicsL1RespModel
- NucleusApi.ListForensicsRespModel
- NucleusApi.MetadataAutocomplete
- NucleusApi.MetadataAutocompleteRespModel
- NucleusApi.MetadataHistogram
- NucleusApi.MetadataHistogramRespModel
- NucleusApi.NestedTopicConsensusModel
- NucleusApi.NestedTopicConsensusTransferModel
- NucleusApi.NestedTopicSentimentTransferModel
- NucleusApi.RenameDatasetModel
- NucleusApi.RenameDatasetRespModel
- NucleusApi.SaveFilterModel
- NucleusApi.SaveFilterRespModel
- NucleusApi.SaveForensicRespModel
- NucleusApi.SetupConnectorModel
- NucleusApi.SetupConnectorRespModel
- NucleusApi.SmartAlertsL1RespModel
- NucleusApi.SmartAlertsL2RespModel
- NucleusApi.SmartAlertsModel
- NucleusApi.SmartAlertsRespModel
- NucleusApi.TopicConsensusModel
- NucleusApi.TopicConsensusRespModel
- NucleusApi.TopicConsensusTransferModel
- NucleusApi.TopicConsensusTransferRespModel
- NucleusApi.TopicContrastL1RespModel
- NucleusApi.TopicContrastL21RespModel
- NucleusApi.TopicContrastL22RespModel
- NucleusApi.TopicContrastModel
- NucleusApi.TopicContrastRespModel
- NucleusApi.TopicDeltaL1RespModel
- NucleusApi.TopicDeltaL2RespModel
- NucleusApi.TopicDeltaModel
- NucleusApi.TopicDeltaRespModel
- NucleusApi.TopicHistoryL1RespModel
- NucleusApi.TopicHistoryModel
- NucleusApi.TopicHistoryRespModel
- NucleusApi.TopicL1RespModel
- NucleusApi.TopicL2RespModel
- NucleusApi.TopicRespModel
- NucleusApi.TopicSentimentL1RespModel
- NucleusApi.TopicSentimentModel
- NucleusApi.TopicSentimentRespModel
- NucleusApi.TopicSentimentTransferModel
- NucleusApi.TopicSentimentTransferRespModel
- NucleusApi.TopicSummaryL1RespModel
- NucleusApi.TopicSummaryL2RespModel
- NucleusApi.TopicSummaryModel
- NucleusApi.TopicSummaryRespModel
- NucleusApi.TopicTransferL1RespModel
- NucleusApi.TopicTransferL2RespModel
- NucleusApi.TopicTransferModel
- NucleusApi.TopicTransferRespModel
- NucleusApi.Topics
- NucleusApi.UpdateDatasetMetadataModel
- NucleusApi.UpdateDatasetMetadataRespModel
- NucleusApi.UpdateForensicModel
- NucleusApi.UpdateForensicsL1RespModel
- NucleusApi.UploadFileRespModel
- NucleusApi.UploadURLModel
- NucleusApi.UploadUrlRespModel
- NucleusApi.UrlPropertyModel
- NucleusApi.UserModel
Documentation for Authorization
apikey
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Copyright 2019 SumUp Analytics, Inc