1.1.1 • Published 6 years ago

buy_borghi_services v1.1.1

Weekly downloads
-
License
Unlicense
Repository
-
Last release
6 years ago

buy_borghi_services

BuyBorghiServices - JavaScript client for buy_borghi_services BuyBorghi API This SDK is automatically generated by the Swagger Codegen project:

  • API version: ${project.version}
  • Package version: ${project.version}
  • 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 buy_borghi_services --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 buy_borghi_services from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('buy_borghi_services') 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/YOUR_USERNAME/buy_borghi_services then install it via:

    npm install YOUR_USERNAME/buy_borghi_services --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 BuyBorghiServices = require('buy_borghi_services');

var api = new BuyBorghiServices.CompaniesApi()

var townId = "townId_example"; // {String} A unique identifier used to identify the town.

var companyId = "companyId_example"; // {String} A unique identifier used to identify the company.


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

Documentation for API Endpoints

All URIs are relative to https://buyborghi.imolinfo.it/buyborghi-api/v1

ClassMethodHTTP requestDescription
BuyBorghiServices.CompaniesApitownsTownIdCompaniesCompanyIdCouponsGetGET /towns/{townId}/companies/{companyId}/couponsGet coupons made by the company
BuyBorghiServices.CompaniesApitownsTownIdCompaniesCompanyIdEventsGetGET /towns/{townId}/companies/{companyId}/eventsGet events organized by the company
BuyBorghiServices.CompaniesApitownsTownIdCompaniesCompanyIdGetGET /towns/{townId}/companies/{companyId}Get company's details
BuyBorghiServices.CompaniesApitownsTownIdCompaniesGetGET /towns/{townId}/companiesGet companies related to the town
BuyBorghiServices.CouponsApitownsTownIdCompaniesCompanyIdCouponsGetGET /towns/{townId}/companies/{companyId}/couponsGet coupons made by the company
BuyBorghiServices.CouponsApitownsTownIdCouponsCouponIdGetGET /towns/{townId}/coupons/{couponId}Get coupons's details
BuyBorghiServices.CouponsApitownsTownIdCouponsGetGET /towns/{townId}/couponsGet coupons related to the town
BuyBorghiServices.EventsApitownsTownIdCompaniesCompanyIdEventsGetGET /towns/{townId}/companies/{companyId}/eventsGet events organized by the company
BuyBorghiServices.EventsApitownsTownIdEventsEventIdGetGET /towns/{townId}/events/{eventId}Get event's details
BuyBorghiServices.EventsApitownsTownIdEventsGetGET /towns/{townId}/eventsGet events related to the town
BuyBorghiServices.InfoApihelpGetGET /helpSend general informations, contacts and FAQ
BuyBorghiServices.PlacesApitownsTownIdPlacesGetGET /towns/{townId}/placesGet places related to the town
BuyBorghiServices.PlacesApitownsTownIdPlacesPlaceIdGetGET /towns/{townId}/places/{placeId}Get event's details
BuyBorghiServices.PostApireportingsPostPOST /reportingsSend abuses and/or reports
BuyBorghiServices.PostApitownsPostPOST /towns/Add town Geo-coordinates
BuyBorghiServices.TownsApitownsGetGET /towns/Town list
BuyBorghiServices.TownsApitownsPostPOST /towns/Add town Geo-coordinates
BuyBorghiServices.TownsApitownsTownIdCompaniesCompanyIdCouponsGetGET /towns/{townId}/companies/{companyId}/couponsGet coupons made by the company
BuyBorghiServices.TownsApitownsTownIdCompaniesCompanyIdEventsGetGET /towns/{townId}/companies/{companyId}/eventsGet events organized by the company
BuyBorghiServices.TownsApitownsTownIdCompaniesCompanyIdGetGET /towns/{townId}/companies/{companyId}Get company's details
BuyBorghiServices.TownsApitownsTownIdCompaniesGetGET /towns/{townId}/companiesGet companies related to the town
BuyBorghiServices.TownsApitownsTownIdCouponsCouponIdGetGET /towns/{townId}/coupons/{couponId}Get coupons's details
BuyBorghiServices.TownsApitownsTownIdCouponsGetGET /towns/{townId}/couponsGet coupons related to the town
BuyBorghiServices.TownsApitownsTownIdElementsGetGET /towns/{townId}/elementsFind elements of any type
BuyBorghiServices.TownsApitownsTownIdEventsEventIdGetGET /towns/{townId}/events/{eventId}Get event's details
BuyBorghiServices.TownsApitownsTownIdEventsGetGET /towns/{townId}/eventsGet events related to the town
BuyBorghiServices.TownsApitownsTownIdGetGET /towns/{townId}Get town's details
BuyBorghiServices.TownsApitownsTownIdPlacesGetGET /towns/{townId}/placesGet places related to the town
BuyBorghiServices.TownsApitownsTownIdPlacesPlaceIdGetGET /towns/{townId}/places/{placeId}Get event's details
BuyBorghiServices.WelcomeApiwelcomeGetGET /welcome/Check if user is phisically in town

Documentation for Models

Documentation for Authorization

OAuth2