1.0.10 • Published 6 years ago

lead_to_cash_api v1.0.10

Weekly downloads
45
License
License 1.0
Repository
-
Last release
6 years ago

lead_to_cash_api

LeadToCashApi - JavaScript client for lead_to_cash_api L2C API summary This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install lead_to_cash_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your lead_to_cash_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('lead_to_cash_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

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 LeadToCashApi = require('lead_to_cash_api');

var api = new LeadToCashApi.BusinessUnitApi()

var body = new LeadToCashApi.Body4(); // {Body4} Business Unit object that needs to be added to the l2c system


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addBusinessUnit(body, callback);

Documentation for API Endpoints

All URIs are relative to http://35.189.71.62:8000/weave-srl/L2C/1.0.0

ClassMethodHTTP requestDescription
LeadToCashApi.BusinessUnitApiaddBusinessUnitPOST /business-unitsAdd a new business unit to the l2c
LeadToCashApi.BusinessUnitApigetBusinessUnitListGET /business-unitsGet list of business units
LeadToCashApi.CustomerApiaddCustomerPOST /customersAdd a new customer to the l2c
LeadToCashApi.CustomerApigetCustomerByIdGET /customers/{customerId}Find customer by ID
LeadToCashApi.CustomerApigetCustomerListGET /customersGet list of customers
LeadToCashApi.CustomerApipartiallyUpdateCustomerPATCH /customers/{customerId}Updates a customer in the l2c system
LeadToCashApi.CustomerApiupdateCustomerPUT /customers/{customerId}Updates a customer in the l2c system
LeadToCashApi.LeadApiaddLeadPOST /leadsAdd a new lead to the l2c
LeadToCashApi.LeadApigetLeadByIdGET /leads/{leadId}Find lead by ID
LeadToCashApi.LeadApigetLeadListGET /leadsGet list of leads
LeadToCashApi.LeadApipartiallyUpdateLeadPATCH /leads/{leadId}Updates a lead in the l2c system
LeadToCashApi.LeadApiupdateLeadPUT /leads/{leadId}Updates a lead in the l2c system
LeadToCashApi.PersonApiaddPersonPOST /peopleAdd a new person to the l2c
LeadToCashApi.PersonApigetPeopleListGET /peopleGet list of people
LeadToCashApi.ProposalApiaddProposalPOST /proposalsAdd a new proposal to the l2c
LeadToCashApi.ProposalApigetProposalByIdGET /proposals/{proposalId}Find proposal by ID
LeadToCashApi.ProposalApigetProposalListGET /proposalsGet list of proposals
LeadToCashApi.ProposalApipartiallyUupdateProposalPATCH /proposals/{proposalId}Updates a proposal in the l2c system
LeadToCashApi.ProposalApiupdateProposalPUT /proposals/{proposalId}Updates a proposal in the l2c system
LeadToCashApi.TopicApiaddTopicPOST /topicsAdd a new topic unit to the l2c
LeadToCashApi.TopicApigetTopicListGET /topicsGet list of topic
LeadToCashApi.UserApicreateUserPOST /usersCreates a new user
LeadToCashApi.UserApigetUserGET /users/{id}Gets a user
LeadToCashApi.UserApigetUsersGET /usersGets all users
LeadToCashApi.UserApiremoveUserByIdDELETE /users/{id}
LeadToCashApi.UserApiupdateUserByIdPATCH /users/{id}Updates a single user by id

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago