Nightly Perpetrated Mischief


    1.0.0 • Public • Published


    BetaMondengeApi - JavaScript client for beta_mondenge_api Restful API Docs for the BetMondenge Congo DRC Android and Web Peer to Peer Waging Platform. Permission is Hereby Granted to Use this API for Commercial and Non Profit Uses Subject to the Creative Commons License Requiring you the end user to mention, credit and attribute this product and service with TralahTek LLC . COPYRIGHT: 2020 (All Rights Reserved).
    This SDK is automatically generated by the Swagger Codegen project:

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


    For Node.js


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

    Then install it via:

    npm install beta_mondenge_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 beta_mondenge_api from, and run:

    npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

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


    If the library is hosted at a git repository, e.g. 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 BetaMondengeApi = require('beta_mondenge_api');
    var defaultClient = BetaMondengeApi.ApiClient.instance;
    // Configure API key authorization: api_key
    var api_key = defaultClient.authentications['api_key'];
    api_key.apiKey = "YOUR API KEY"
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //api_key.apiKeyPrefix['Authorization'] = "Token"
    var api = new BetaMondengeApi.ApiApi()
    var callback = function(error, data, response) {
      if (error) {
      } else {
        console.log('API called successfully. Returned data: ' + data);

    Documentation for API Endpoints

    All URIs are relative to

    Class Method HTTP request Description
    BetaMondengeApi.ApiApi apiAccountsList GET /api/accounts/
    BetaMondengeApi.ApiApi apiAccountsRead GET /api/accounts/{id}/
    BetaMondengeApi.ApiApi apiAllusersList GET /api/allusers/
    BetaMondengeApi.ApiApi apiBetslipsAcceptWager POST /api/betslips/{id}/accept_wager/
    BetaMondengeApi.ApiApi apiBetslipsCreate POST /api/betslips/
    BetaMondengeApi.ApiApi apiBetslipsList GET /api/betslips/
    BetaMondengeApi.ApiApi apiBetslipsRead GET /api/betslips/{id}/
    BetaMondengeApi.ApiApi apiBetslipsReceivedInvites GET /api/betslips/received_invites/
    BetaMondengeApi.ApiApi apiBetslipsRejectWager POST /api/betslips/{id}/reject_wager/
    BetaMondengeApi.ApiApi apiBetslipsSentInvites GET /api/betslips/sent_invites/
    BetaMondengeApi.ApiApi apiDevicesCreate POST /api/devices/
    BetaMondengeApi.ApiApi apiDoB2cCreate POST /api/do_b2c/ Initiate Customer Payout for DRC's Vodacash Mpesa System Post the amount to withdrawal
    BetaMondengeApi.ApiApi apiDoC2bCreate POST /api/do_c2b/ Initiate Customer Deposit for DRC's Vodacash Mpesa System.
    BetaMondengeApi.ApiApi apiGamesGetThisMidweeks GET /api/games/get_this_midweeks/
    BetaMondengeApi.ApiApi apiGamesGetThisMidweeksUpcoming GET /api/games/get_this_midweeks_upcoming/
    BetaMondengeApi.ApiApi apiGamesGetThisMonths GET /api/games/get_this_months/
    BetaMondengeApi.ApiApi apiGamesGetThisMonthsUpcoming GET /api/games/get_this_months_upcoming/
    BetaMondengeApi.ApiApi apiGamesGetThisWeekends GET /api/games/get_this_weekends/
    BetaMondengeApi.ApiApi apiGamesGetThisWeekendsUpcoming GET /api/games/get_this_weekends_upcoming/
    BetaMondengeApi.ApiApi apiGamesList GET /api/games/
    BetaMondengeApi.ApiApi apiGamesRead GET /api/games/{game_id}/
    BetaMondengeApi.ApiApi apiGamesTodays GET /api/games/todays/
    BetaMondengeApi.ApiApi apiInviteCreate POST /api/invite/
    BetaMondengeApi.ApiApi apiLeaguesAllGames GET /api/leagues/{league_id}/all_games/
    BetaMondengeApi.ApiApi apiLeaguesList GET /api/leagues/
    BetaMondengeApi.ApiApi apiLeaguesRead GET /api/leagues/{league_id}/
    BetaMondengeApi.ApiApi apiLeaguesThisMonthsGames GET /api/leagues/{league_id}/this_months_games/
    BetaMondengeApi.ApiApi apiLeaguesThisMonthsUpcomingGames GET /api/leagues/{league_id}/this_months_upcoming_games/
    BetaMondengeApi.ApiApi apiLeaguesThisWeeksGames GET /api/leagues/{league_id}/this_weeks_games/
    BetaMondengeApi.ApiApi apiLeaguesThisWeeksUpcomingGames GET /api/leagues/{league_id}/this_weeks_upcoming_games/
    BetaMondengeApi.ApiApi apiLeaguesUpcomingGames GET /api/leagues/{league_id}/upcoming_games/
    BetaMondengeApi.ApiApi apiMpesaDoB2cCreate POST /api/mpesa_do_b2c/ Initiate Mpesa Customer Withdrawal for Kenya's MPESA System
    BetaMondengeApi.ApiApi apiMpesaDoC2bCreate POST /api/mpesa_do_c2b/ Initiate Mpesa Customer Deposit for Kenya's MPESA System
    BetaMondengeApi.ApiApi apiResultsList GET /api/results/
    BetaMondengeApi.ApiApi apiResultsRead GET /api/results/{game_id}/
    BetaMondengeApi.ApiApi apiResultsThisMonth GET /api/results/this_month/
    BetaMondengeApi.ApiApi apiResultsThisWeek GET /api/results/this_week/
    BetaMondengeApi.ApiApi apiResultsToday GET /api/results/today/
    BetaMondengeApi.ApiApi apiTeamsList GET /api/teams/
    BetaMondengeApi.ApiApi apiTeamsRead GET /api/teams/{team_id}/
    BetaMondengeApi.ApiApi apiTransactionsList GET /api/transactions/
    BetaMondengeApi.ApiApi apiTransactionsRead GET /api/transactions/{id}/
    BetaMondengeApi.ApiApi apiUsersCreate POST /api/users/
    BetaMondengeApi.ApiApi apiUsersList GET /api/users/
    BetaMondengeApi.ApiApi apiUsersRead GET /api/users/{phonenumber}/
    BetaMondengeApi.ApiApi apiUsersResetPassword POST /api/users/reset_password/
    BetaMondengeApi.ApiApi apiUsersSetPassword POST /api/users/{phonenumber}/set_password/
    BetaMondengeApi.ApiApi apiUsersWebcurrent GET /api/users/webcurrent/
    BetaMondengeApi.ApiTokenAuthApi apiTokenAuthCreate POST /api-token-auth

    Documentation for Models

    Documentation for Authorization


    • Type: API key
    • API key parameter name: Authorization
    • Location: HTTP header




    npm i beta_mondenge_api

    DownloadsWeekly Downloads






    Unpacked Size

    487 kB

    Total Files


    Last publish


    • tralahm