0.9.11 • Published 6 years ago

@factern/factern-client v0.9.11

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@factern/factern-client

Build Status

Javascript Client for Factern API

API version: 2.0.0

Installation

npm

npm install @factern/factern-client --save

Getting Started

Once you've installed the client, you can get started with this snippet:

var FacternApi = require('@factern/factern-client');

var defaultClient = FacternApi.ApiClient.instance;

var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = "YOUR ACCESS TOKEN";

var api = new FacternApi.FactsApi();

// Example usage of the client to create a named entity
api.addEntity({
    login: "Your login ID",
    representing: "Your representing ID",
    body: new FacternApi.CreateEntityRequest({
        name: "example-entity"
    })
}).then(function(response) {
    console.log(`Node ID: ${response.data.nodeId}`);
}, function(error) {
    console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://api.factern.com/v2

ClassMethodHTTP requestDescription
FacternApi.FactsApiaddMemberPOST /creatememberCreate Member
FacternApi.FactsApibidPOST /createbidCreate Bid
FacternApi.FactsApicallDeletePOST /deleteDeleting
FacternApi.FactsApicreateAliasPOST /createaliasCreate Alias
FacternApi.FactsApicreateApplicationPOST /createapplicationCreate Application
FacternApi.FactsApicreateDomainPOST /createdomainCreate Domain
FacternApi.FactsApicreateEntityPOST /createentityCreate Entity
FacternApi.FactsApicreateFieldPOST /createfieldCreate Field
FacternApi.FactsApicreateFilterPOST /createfilterCreate Filter
FacternApi.FactsApicreateGroupPOST /creategroupCreate Group
FacternApi.FactsApicreateInformationPOST /createinformationCreate Information
FacternApi.FactsApicreateInterfacePOST /createinterfaceCreate Interface
FacternApi.FactsApicreateLabelListPOST /createlabellistCreate Label List
FacternApi.FactsApicreateLoginPOST /createloginCreate Login
FacternApi.FactsApicreateMirrorPOST /createmirrorCreate Mirror
FacternApi.FactsApicreatePricePOST /createpriceCreate Price
FacternApi.FactsApicreateScopePOST /createscopeCreate Scope
FacternApi.FactsApicreateStatementPOST /createstatementCreate Statement
FacternApi.FactsApicreateTemplatePOST /createtemplateCreate Template
FacternApi.FactsApideleteNodePOST /deletenodeDelete Node
FacternApi.FactsApidescribePOST /describeDescribe
FacternApi.FactsApihistoryPOST /historyHistory
FacternApi.FactsApilabelPOST /labelLabel a Node
FacternApi.FactsApiobliteratePOST /obliterateObliterating Information Nodes
FacternApi.FactsApipermissionPOST /permissionCreate Permission
FacternApi.FactsApireadPOST /readReading
FacternApi.FactsApireadInformationPOST /readinformationRead Information
FacternApi.FactsApireplaceInformationPOST /replaceinformationReplace
FacternApi.FactsApirequestPermissionPOST /requestpermissionRequest Permission
FacternApi.FactsApiresetLoginPOST /resetloginChanging Login Password
FacternApi.FactsApisearchAliasPOST /searchaliasSearch For Alias
FacternApi.FactsApisearchEntityPOST /searchentitySearch For Entity
FacternApi.FactsApisettleAccountPOST /settleaccountSettle Account
FacternApi.FactsApiupdateApplicationPOST /updateapplicationResetting Application Secret
FacternApi.FactsApiupdateStatusPOST /updatestatusEnabling/Disabling Nodes
FacternApi.FactsApiwatchPOST /watchCreate Watch Trigger
FacternApi.FactsApiwritePOST /writeWriting by Template

Documentation for Models

Documentation for Authorization

OAuth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://factern-test.eu.auth0.com/oauth/token
  • Scopes:
    • profile: Grants read and write access to administrative information
    • openid: Grants read and write access to administrative information
    • email: Grants read and write access to administrative information
    • phone: Grants write access
    • address: Grants read access

License

MIT License

Copyright (c) 2018 Factern

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.9.11

6 years ago

0.9.10

6 years ago

0.9.9

6 years ago

0.9.8

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago