0.0.0-27 • Published 4 years ago

fw-form-builder v0.0.0-27

Weekly downloads
44
License
PARTICLE
Repository
-
Last release
4 years ago

fw-form-builder

FwFormBuilder - JavaScript client for fw-form-builder FormBuilder API This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.0.0-10
  • Build package: org.openapitools.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 fw-form-builder --save

Finally, you need to build the module:

npm run build
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

To use the link you just defined in your project, switch to the directory you want to use your fw-form-builder from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

Client Initialization:

To start using the sync SDK the client must be initialised. The client initialisation requires the following:

The Server domain. The domain varies depending on whether the app is for staging or prod.

The product in which the app is created. This can take the following values:

  • FRESHDESK
  • FRESHSALES
  • FRESHTEAM
  • FRESHSERVICE

The account_id of the account in which the app is installed.

const FwFormBuilder = require('fw-form-builder');
FwFormBuilder.ApiClient.instance.setBasePath('http://localhost')
FwFormBuilder.ApiClient.instance.setProduct('FRESHDESK');
FwFormBuilder.ApiClient.instance.setAccountId(payload.account_id);

Getting Started

Please follow the installation and initialization(#client initialization) instruction and execute the following JS code:

const FwFormBuilder = require('fw-form-builder');


var api = new FwFormBuilder.ConfigsApi()
api.getConfig().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
FwFormBuilder.ConfigsApigetConfigGET /configsFetch configs for the account
FwFormBuilder.ConfigsApisaveConfigPOST /configsStore configs for an app
FwFormBuilder.FormApicreateFormPOST /formsCreate Form
FwFormBuilder.FormApideleteFormDELETE /forms/{uuid}Delete a form
FwFormBuilder.FormApigetFormGET /forms/{uuid}Fetch details of a Form
FwFormBuilder.FormApigetFormsGET /formsFetch list of forms for the account
FwFormBuilder.FormApiupdateFormPUT /forms/{uuid}Upadte details of a Form
FwFormBuilder.RatingCountsResponseApigetRatingCountsForFormGET /forms/{uuid}/ratingsFetch ratings count for a form
FwFormBuilder.ResponseApigetAllResponsesGET /forms/{uuid}/responsesFetch all responses for a form
FwFormBuilder.ResponseApigetResponseCountPOST /forms/{uuid}/responses/countGet response count for form
FwFormBuilder.ResponseApisaveResponsePOST /forms/{uuid}/responsesAdd a response for a form
FwFormBuilder.ResponseApisearchResponsePOST /forms/{uuid}/responses/searchsearchResponse
FwFormBuilder.ResponseApisendMessagePOST /messagessendMessage
FwFormBuilder.ScheduleApischeduleSurveyPOST /forms/{uuid}/schedulesCreate a survey schedule for a form

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

0.0.0-19

4 years ago

0.0.0-20

4 years ago

0.0.0-22

4 years ago

0.0.0-21

4 years ago

0.0.0-24

4 years ago

0.0.0-23

4 years ago

0.0.0-26

4 years ago

0.0.0-25

4 years ago

0.0.0-27

4 years ago

0.0.0-18

4 years ago

0.0.0-17

4 years ago

0.0.0-15

4 years ago

0.0.0-14

4 years ago

0.0.0-16

4 years ago

0.0.0-13

4 years ago

0.0.0-12

4 years ago

0.0.0-11

5 years ago

0.0.0-10

5 years ago

0.0.0-8

5 years ago

0.0.0-7

5 years ago

0.0.0-6

5 years ago

0.0.0-5

5 years ago

0.0.0-9

5 years ago

0.0.0-4

5 years ago

0.0.0-3

5 years ago

0.0.0-2

5 years ago

0.0.0-1

5 years ago