0.3.22 • Published 6 months ago

echaloasuerte-js-sdk v0.3.22

Weekly downloads
10
License
Unlicense
Repository
-
Last release
6 months ago

echaloasuerte-js-sdk

EchaloasuerteJsSdk - JavaScript client for echaloasuerte-js-sdk No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • 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 echaloasuerte-js-sdk --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 echaloasuerte-js-sdk from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

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):

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 EchaloasuerteJsSdk = require('echaloasuerte-js-sdk');


var api = new EchaloasuerteJsSdk.CoinApi()
var coin = new EchaloasuerteJsSdk.Coin(); // {Coin} 
api.coinCreate(coin).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://raw.githubusercontent.com/should-be-overriden

ClassMethodHTTP requestDescription
EchaloasuerteJsSdk.CoinApicoinCreatePOST /coin/
EchaloasuerteJsSdk.CoinApicoinReadGET /coin/{id}/
EchaloasuerteJsSdk.CoinApicoinTossPOST /coin/{id}/toss/
EchaloasuerteJsSdk.GroupsApigroupsCreatePOST /groups/
EchaloasuerteJsSdk.GroupsApigroupsParticipantsAddPOST /groups/{id}/participants/
EchaloasuerteJsSdk.GroupsApigroupsReadGET /groups/{id}/
EchaloasuerteJsSdk.GroupsApigroupsTossPOST /groups/{id}/toss/
EchaloasuerteJsSdk.InstagramApiinstagramCreatePOST /instagram/
EchaloasuerteJsSdk.InstagramApiinstagramReadGET /instagram/{id}/
EchaloasuerteJsSdk.InstagramApiinstagramRetossPATCH /instagram/{id}/retoss/
EchaloasuerteJsSdk.InstagramApiinstagramTossPOST /instagram/{id}/toss/
EchaloasuerteJsSdk.LetterApiletterCreatePOST /letter/
EchaloasuerteJsSdk.LetterApiletterReadGET /letter/{id}/
EchaloasuerteJsSdk.LetterApiletterTossPOST /letter/{id}/toss/
EchaloasuerteJsSdk.LinkApilinkCreatePOST /link/
EchaloasuerteJsSdk.LinkApilinkReadGET /link/{id}/
EchaloasuerteJsSdk.LinkApilinkTossPOST /link/{id}/toss/
EchaloasuerteJsSdk.LotteryApilotteryCreatePOST /lottery/
EchaloasuerteJsSdk.LotteryApilotteryParticipantsAddPOST /lottery/{id}/participants/
EchaloasuerteJsSdk.LotteryApilotteryReadGET /lottery/{id}/
EchaloasuerteJsSdk.LotteryApilotteryTossPOST /lottery/{id}/toss/
EchaloasuerteJsSdk.PaypalApipaypalCreatePOST /paypal/create/
EchaloasuerteJsSdk.PaypalApiredeemPromoCodePOST /promo-code/redeem/
EchaloasuerteJsSdk.RaffleApiraffleCreatePOST /raffle/
EchaloasuerteJsSdk.RaffleApiraffleParticipantsAddPOST /raffle/{id}/participants/
EchaloasuerteJsSdk.RaffleApiraffleReadGET /raffle/{id}/
EchaloasuerteJsSdk.RaffleApiraffleTossPOST /raffle/{id}/toss/
EchaloasuerteJsSdk.RandomNumberApirandomNumberCreatePOST /random_number/
EchaloasuerteJsSdk.RandomNumberApirandomNumberReadGET /random_number/{id}/
EchaloasuerteJsSdk.RandomNumberApirandomNumberTossPOST /random_number/{id}/toss/
EchaloasuerteJsSdk.SecretSantaApisecretSantaCreatePOST /secret-santa/
EchaloasuerteJsSdk.SecretSantaApisecretSantaResultAdminGetGET /secret-santa-admin/{id}/
EchaloasuerteJsSdk.SecretSantaApisecretSantaResultAdminPostPOST /secret-santa-admin/{draw_id}/{result_id}/
EchaloasuerteJsSdk.SecretSantaApisecretSantaResultGetGET /secret-santa/{id}/
EchaloasuerteJsSdk.ShiftsApishiftsCreatePOST /shifts/
EchaloasuerteJsSdk.ShiftsApishiftsReadGET /shifts/{id}/
EchaloasuerteJsSdk.ShiftsApishiftsTossPOST /shifts/{id}/toss/
EchaloasuerteJsSdk.SpinnerApispinnerCreatePOST /spinner/
EchaloasuerteJsSdk.SpinnerApispinnerReadGET /spinner/{id}/
EchaloasuerteJsSdk.SpinnerApispinnerTossPOST /spinner/{id}/toss/
EchaloasuerteJsSdk.TournamentApitournamentCreatePOST /tournament/
EchaloasuerteJsSdk.TournamentApitournamentParticipantsAddPOST /tournament/{id}/participants/
EchaloasuerteJsSdk.TournamentApitournamentReadGET /tournament/{id}/
EchaloasuerteJsSdk.TournamentApitournamentTossPOST /tournament/{id}/toss/

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.

0.3.22

6 months ago

0.3.20

1 year ago

0.3.17

2 years ago

0.3.21

1 year ago

0.3.19

1 year ago

0.3.18

1 year ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

3 years ago

0.3.10

3 years ago

0.3.6

3 years ago

0.3.5

4 years ago

0.3.2

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago