1.1.0 • Published 8 years ago

wedata v1.1.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
8 years ago

wedata

Wedata - JavaScript client for wedata No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.1.0
  • Package version: 1.1.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 wedata --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 wedata from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

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

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

var defaultClient = Wedata.ApiClient.instance;

// Configure HTTP basic authorization: HTTP_BASIC
var HTTP_BASIC = defaultClient.authentications['HTTP_BASIC'];
HTTP_BASIC.username = 'YOUR USERNAME'
HTTP_BASIC.password = 'YOUR PASSWORD'

var api = new Wedata.WeApi_DataApi()

var adsid = "adsid_example"; // {String} Identifier of the Ads


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteAdsesAdsid(adsid, callback);

Documentation for API Endpoints

All URIs are relative to https://wedata.restlet.net/v1

ClassMethodHTTP requestDescription
Wedata.WeApi_DataApideleteAdsesAdsidDELETE /adses/{adsid}
Wedata.WeApi_DataApideleteBuisnessesBuisnessidDELETE /buisnesses/{buisnessid}
Wedata.WeApi_DataApideleteJackpotBalancesJackpotBalanceidDELETE /jackpotBalances/{jackpotBalanceid}
Wedata.WeApi_DataApideleteJackpotsJackpotidDELETE /jackpots/{jackpotid}
Wedata.WeApi_DataApideleteMethodPaymentsMethodPaymentidDELETE /methodPayments/{methodPaymentid}
Wedata.WeApi_DataApideletePlaningEventsPlaningEventidDELETE /planingEvents/{planingEventid}
Wedata.WeApi_DataApideletePlaningsPlaningidDELETE /planings/{planingid}
Wedata.WeApi_DataApideleteProductCategoriesProductCategoryidDELETE /productCategories/{productCategoryid}
Wedata.WeApi_DataApideleteProductCustomisationsProductCustomisationidDELETE /productCustomisations/{productCustomisationid}
Wedata.WeApi_DataApideleteProductInStocksProductInStockidDELETE /productInStocks/{productInStockid}
Wedata.WeApi_DataApideleteProductProvidersProductProvideridDELETE /productProviders/{productProviderid}
Wedata.WeApi_DataApideleteProductsProductidDELETE /products/{productid}
Wedata.WeApi_DataApideleteProduitBrandsProduitBrandidDELETE /produitBrands/{produitBrandid}
Wedata.WeApi_DataApideleteRightLogsRightLogidDELETE /rightLogs/{rightLogid}
Wedata.WeApi_DataApideleteRightsRightidDELETE /rights/{rightid}
Wedata.WeApi_DataApideleteSectorActivitiesSectorActivityidDELETE /sectorActivities/{sectorActivityid}
Wedata.WeApi_DataApideleteStocksStockidDELETE /stocks/{stockid}
Wedata.WeApi_DataApideleteTicketElementsesTicketElementsidDELETE /ticketElementses/{ticketElementsid}
Wedata.WeApi_DataApideleteTicketsTicketidDELETE /tickets/{ticketid}
Wedata.WeApi_DataApideleteTvaTauxsTvaTauxidDELETE /tvaTauxs/{tvaTauxid}
Wedata.WeApi_DataApideleteUsersUseridDELETE /users/{userid}
Wedata.WeApi_DataApigetAdsesGET /adses/
Wedata.WeApi_DataApigetAdsesAdsidGET /adses/{adsid}
Wedata.WeApi_DataApigetBuisnessesGET /buisnesses/
Wedata.WeApi_DataApigetBuisnessesBuisnessidGET /buisnesses/{buisnessid}
Wedata.WeApi_DataApigetJackpotBalancesGET /jackpotBalances/
Wedata.WeApi_DataApigetJackpotBalancesJackpotBalanceidGET /jackpotBalances/{jackpotBalanceid}
Wedata.WeApi_DataApigetJackpotsGET /jackpots/
Wedata.WeApi_DataApigetJackpotsJackpotidGET /jackpots/{jackpotid}
Wedata.WeApi_DataApigetMethodPaymentsGET /methodPayments/
Wedata.WeApi_DataApigetMethodPaymentsMethodPaymentidGET /methodPayments/{methodPaymentid}
Wedata.WeApi_DataApigetPlaningEventsGET /planingEvents/
Wedata.WeApi_DataApigetPlaningEventsPlaningEventidGET /planingEvents/{planingEventid}
Wedata.WeApi_DataApigetPlaningsGET /planings/
Wedata.WeApi_DataApigetPlaningsPlaningidGET /planings/{planingid}
Wedata.WeApi_DataApigetProductCategoriesGET /productCategories/
Wedata.WeApi_DataApigetProductCategoriesProductCategoryidGET /productCategories/{productCategoryid}
Wedata.WeApi_DataApigetProductCustomisationsGET /productCustomisations/
Wedata.WeApi_DataApigetProductCustomisationsProductCustomisationidGET /productCustomisations/{productCustomisationid}
Wedata.WeApi_DataApigetProductInStocksGET /productInStocks/
Wedata.WeApi_DataApigetProductInStocksProductInStockidGET /productInStocks/{productInStockid}
Wedata.WeApi_DataApigetProductProvidersGET /productProviders/
Wedata.WeApi_DataApigetProductProvidersProductProvideridGET /productProviders/{productProviderid}
Wedata.WeApi_DataApigetProductsGET /products/
Wedata.WeApi_DataApigetProductsProductidGET /products/{productid}
Wedata.WeApi_DataApigetProduitBrandsGET /produitBrands/
Wedata.WeApi_DataApigetProduitBrandsProduitBrandidGET /produitBrands/{produitBrandid}
Wedata.WeApi_DataApigetRightLogsGET /rightLogs/
Wedata.WeApi_DataApigetRightLogsRightLogidGET /rightLogs/{rightLogid}
Wedata.WeApi_DataApigetRightsGET /rights/
Wedata.WeApi_DataApigetRightsRightidGET /rights/{rightid}
Wedata.WeApi_DataApigetSectorActivitiesGET /sectorActivities/
Wedata.WeApi_DataApigetSectorActivitiesSectorActivityidGET /sectorActivities/{sectorActivityid}
Wedata.WeApi_DataApigetStocksGET /stocks/
Wedata.WeApi_DataApigetStocksStockidGET /stocks/{stockid}
Wedata.WeApi_DataApigetTicketElementsesGET /ticketElementses/
Wedata.WeApi_DataApigetTicketElementsesTicketElementsidGET /ticketElementses/{ticketElementsid}
Wedata.WeApi_DataApigetTicketsGET /tickets/
Wedata.WeApi_DataApigetTicketsTicketidGET /tickets/{ticketid}
Wedata.WeApi_DataApigetTvaTauxsGET /tvaTauxs/
Wedata.WeApi_DataApigetTvaTauxsTvaTauxidGET /tvaTauxs/{tvaTauxid}
Wedata.WeApi_DataApigetUsersGET /users/
Wedata.WeApi_DataApigetUsersUseridGET /users/{userid}
Wedata.WeApi_DataApipostAdsesPOST /adses/
Wedata.WeApi_DataApipostBuisnessesPOST /buisnesses/
Wedata.WeApi_DataApipostJackpotBalancesPOST /jackpotBalances/
Wedata.WeApi_DataApipostJackpotsPOST /jackpots/
Wedata.WeApi_DataApipostMethodPaymentsPOST /methodPayments/
Wedata.WeApi_DataApipostPlaningEventsPOST /planingEvents/
Wedata.WeApi_DataApipostPlaningsPOST /planings/
Wedata.WeApi_DataApipostProductCategoriesPOST /productCategories/
Wedata.WeApi_DataApipostProductCustomisationsPOST /productCustomisations/
Wedata.WeApi_DataApipostProductInStocksPOST /productInStocks/
Wedata.WeApi_DataApipostProductProvidersPOST /productProviders/
Wedata.WeApi_DataApipostProductsPOST /products/
Wedata.WeApi_DataApipostProduitBrandsPOST /produitBrands/
Wedata.WeApi_DataApipostRightLogsPOST /rightLogs/
Wedata.WeApi_DataApipostRightsPOST /rights/
Wedata.WeApi_DataApipostSectorActivitiesPOST /sectorActivities/
Wedata.WeApi_DataApipostStocksPOST /stocks/
Wedata.WeApi_DataApipostTicketElementsesPOST /ticketElementses/
Wedata.WeApi_DataApipostTicketsPOST /tickets/
Wedata.WeApi_DataApipostTvaTauxsPOST /tvaTauxs/
Wedata.WeApi_DataApipostUsersPOST /users/
Wedata.WeApi_DataApiputAdsesAdsidPUT /adses/{adsid}
Wedata.WeApi_DataApiputBuisnessesBuisnessidPUT /buisnesses/{buisnessid}
Wedata.WeApi_DataApiputJackpotBalancesJackpotBalanceidPUT /jackpotBalances/{jackpotBalanceid}
Wedata.WeApi_DataApiputJackpotsJackpotidPUT /jackpots/{jackpotid}
Wedata.WeApi_DataApiputMethodPaymentsMethodPaymentidPUT /methodPayments/{methodPaymentid}
Wedata.WeApi_DataApiputPlaningEventsPlaningEventidPUT /planingEvents/{planingEventid}
Wedata.WeApi_DataApiputPlaningsPlaningidPUT /planings/{planingid}
Wedata.WeApi_DataApiputProductCategoriesProductCategoryidPUT /productCategories/{productCategoryid}
Wedata.WeApi_DataApiputProductCustomisationsProductCustomisationidPUT /productCustomisations/{productCustomisationid}
Wedata.WeApi_DataApiputProductInStocksProductInStockidPUT /productInStocks/{productInStockid}
Wedata.WeApi_DataApiputProductProvidersProductProvideridPUT /productProviders/{productProviderid}
Wedata.WeApi_DataApiputProductsProductidPUT /products/{productid}
Wedata.WeApi_DataApiputProduitBrandsProduitBrandidPUT /produitBrands/{produitBrandid}
Wedata.WeApi_DataApiputRightLogsRightLogidPUT /rightLogs/{rightLogid}
Wedata.WeApi_DataApiputRightsRightidPUT /rights/{rightid}
Wedata.WeApi_DataApiputSectorActivitiesSectorActivityidPUT /sectorActivities/{sectorActivityid}
Wedata.WeApi_DataApiputStocksStockidPUT /stocks/{stockid}
Wedata.WeApi_DataApiputTicketElementsesTicketElementsidPUT /ticketElementses/{ticketElementsid}
Wedata.WeApi_DataApiputTicketsTicketidPUT /tickets/{ticketid}
Wedata.WeApi_DataApiputTvaTauxsTvaTauxidPUT /tvaTauxs/{tvaTauxid}
Wedata.WeApi_DataApiputUsersUseridPUT /users/{userid}

Documentation for Models

Documentation for Authorization

HTTP_BASIC

  • Type: HTTP basic authentication