1.0.0 • Published 2 years ago

omgtaplounge_javascript_client v1.0.0

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

twitch_game_api

TwitchGameApi - JavaScript client for twitch_game_api 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.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.v3.generators.javascript.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 twitch_game_api --save

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 TwitchGameApi = require('twitch_game_api');

var api = new TwitchGameApi.CurrencyApi()
var card = "card_example"; // {String} 

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

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
TwitchGameApi.CurrencyApicurrencyCardCardPostPOST /Currency/Card/{card}
TwitchGameApi.CurrencyApicurrencyCardGetGET /Currency/Card
TwitchGameApi.CurrencyApicurrencyCardsGetGET /Currency/Cards
TwitchGameApi.CurrencyApicurrencyCreditsGetGET /Currency/Credits
TwitchGameApi.OutfitApioutfitChangePostPOST /Outfit/Change
TwitchGameApi.OutfitApioutfitClaimCosmeticIdPostPOST /Outfit/Claim/{cosmeticId}
TwitchGameApi.OutfitApioutfitCosmeticsUserIdGetGET /Outfit/Cosmetics/{userId}
TwitchGameApi.OutfitApioutfitUserIdGetGET /Outfit/{userId}
TwitchGameApi.OutfitApioutfitUsernameUsernameGetGET /Outfit/Username/{username}
TwitchGameApi.RewardsApirewardsGiftPostPOST /Rewards/Gift
TwitchGameApi.RewardsApirewardsOpenIdPostPOST /Rewards/Open/{id}
TwitchGameApi.RewardsApirewardsPickupsCoinDropPostPOST /Rewards/Pickups/CoinDrop
TwitchGameApi.RewardsApirewardsPickupsPostPOST /Rewards/Pickups
TwitchGameApi.RewardsApirewardsSummaryTwitchLoginGetGET /Rewards/Summary/{twitchLogin}
TwitchGameApi.RewardsApirewardsUserIdGetGET /Rewards/User/{id}
TwitchGameApi.RewardsApirewardsUserPickupPickupIdPostPOST /Rewards/User/Pickup/{pickupId}
TwitchGameApi.RewardsApirewardsUserPickupsGetGET /Rewards/User/Pickups
TwitchGameApi.ShopApishopItemsBuyItemIdPostPOST /Shop/Items/Buy/{itemId}
TwitchGameApi.ShopApishopItemsItemIdPatchPATCH /Shop/Items/{itemId}
TwitchGameApi.ShopApishopItemsPostPOST /Shop/Items
TwitchGameApi.ShopApishopItemsTypeGetGET /Shop/Items/{type}
TwitchGameApi.ShopApishopPayFastNotificationPostPOST /Shop/PayFastNotification
TwitchGameApi.ShopApishopSpinTheWheelTicketsGetGET /Shop/SpinTheWheelTickets
TwitchGameApi.ShopApishopTapTokensGetGET /Shop/TapTokens
TwitchGameApi.TournamentApitournamentAllGetGET /Tournament/All
TwitchGameApi.TournamentApitournamentDonateOrderIdGetGET /Tournament/donate/{orderId}
TwitchGameApi.TournamentApitournamentDonationsTournamentIdGetGET /Tournament/donations/{tournamentId}
TwitchGameApi.TournamentApitournamentGameModeDivisionsGameModeIdGetGET /Tournament/GameModeDivisions/{gameModeId}
TwitchGameApi.TournamentApitournamentGameModesAllGetGET /Tournament/GameModes/All
TwitchGameApi.TournamentApitournamentGameModesGameIdGetGET /Tournament/GameModes/{gameId}
TwitchGameApi.TournamentApitournamentGamesGetGET /Tournament/Games
TwitchGameApi.TournamentApitournamentIdGetGET /Tournament/{id}
TwitchGameApi.TournamentApitournamentIdPlayersGetGET /Tournament/{id}/players
TwitchGameApi.TournamentApitournamentIdTeamsGetGET /Tournament/{id}/teams
TwitchGameApi.TournamentApitournamentPastGetGET /Tournament/Past
TwitchGameApi.TournamentApitournamentPaymentsUpdateGetGET /Tournament/payments/update
TwitchGameApi.TournamentApitournamentScoresUpdateGetGET /Tournament/scores/update
TwitchGameApi.TournamentApitournamentSetTournamentDivisionsTournamentIdForceResetGetGET /Tournament/SetTournamentDivisions/{tournamentId}/{forceReset}
TwitchGameApi.TournamentApitournamentTeamAddScoresTeamIdPostPOST /Tournament/Team/AddScores/{teamId}
TwitchGameApi.TournamentApitournamentTeamRemovePlayerTeamUserIdDeleteDELETE /Tournament/Team/RemovePlayer/{teamUserId}
TwitchGameApi.TournamentApitournamentTeamRemoveScoreScoreIdDeleteDELETE /Tournament/Team/RemoveScore/{scoreId}
TwitchGameApi.TournamentApitournamentTeamRemoveTeamTeamIdDeleteDELETE /Tournament/Team/RemoveTeam/{teamId}
TwitchGameApi.TournamentApitournamentTeamTeamIdChangeCaptainNewCaptainIdPostPOST /Tournament/Team/{teamId}/ChangeCaptain/{newCaptainId}
TwitchGameApi.TournamentApitournamentTournamentAddScoresTournamentIdPostPOST /Tournament/Tournament/AddScores/{tournamentId}
TwitchGameApi.TournamentApitournamentTournamentIdEnterPostPOST /Tournament/{tournamentId}/enter
TwitchGameApi.TournamentApitournamentTournamentIdJoinPostPOST /Tournament/{tournamentId}/join
TwitchGameApi.TournamentApitournamentTournamentIdReservesAddPostPOST /Tournament/{tournamentId}/reserves/add
TwitchGameApi.TournamentApitournamentTournamentIdScoresGetGET /Tournament/{tournamentId}/scores
TwitchGameApi.TournamentApitournamentTournamentIdTeammemberStatusPostPOST /Tournament/{tournamentId}/teammember/status
TwitchGameApi.TournamentApitournamentTournamentIdUpdatePostPOST /Tournament/{tournamentId}/update
TwitchGameApi.TournamentApitournamentTournamentTeamScoresTeamIdGetGET /Tournament/TournamentTeamScores/{teamId}
TwitchGameApi.TournamentApitournamentTournamentTeamTeamIdGetGET /Tournament/TournamentTeam/{teamId}
TwitchGameApi.TournamentApitournamentTournamentsCreatePostPOST /Tournament/Tournaments/create
TwitchGameApi.TournamentApitournamentUpcomingGetGET /Tournament/Upcoming
TwitchGameApi.TournamentApitournamentUpdateKdTournamentTeamUserIdGetGET /Tournament/updateKd/{tournamentTeamUserId}
TwitchGameApi.TournamentApitournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGetGET /Tournament/UpdateTournamentTeamStats/{tournamentTeamId}/{forceReset}
TwitchGameApi.TournamentApitournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGetGET /Tournament/UpdateTournamentTeamUserStats/{tournamentTeamUserId}
TwitchGameApi.TournamentApitournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGetGET /Tournament/UpdateUnprocessedUserStatsInTournament/{tournamentId}/{maxUsers}
TwitchGameApi.UsersApiusersGetUserStatsGetGET /Users/GetUserStats
TwitchGameApi.UsersApiusersIdGetGET /Users/{id}
TwitchGameApi.UsersApiusersLoginTwitchCodeGetGET /Users/LoginTwitchCode
TwitchGameApi.UsersApiusersLoginTwitchCodeV2GetGET /Users/LoginTwitchCodeV2
TwitchGameApi.UsersApiusersLoginTwitchExtensionGetGET /Users/LoginTwitchExtension
TwitchGameApi.UsersApiusersLoginTwitchGetGET /Users/LoginTwitch
TwitchGameApi.UsersApiusersLoginWithoutTokenGetGET /Users/LoginWithoutToken
TwitchGameApi.UsersApiusersMeGetGET /Users/Me
TwitchGameApi.UsersApiusersOmgGetGET /Users/omg
TwitchGameApi.UsersApiusersOnlineUsersGetGET /Users/onlineUsers
TwitchGameApi.UsersApiusersSearchForUserPostPOST /Users/SearchForUser
TwitchGameApi.UsersApiusersStreamersFiltersGetGET /Users/streamers/filters
TwitchGameApi.UsersApiusersStreamersPostPOST /Users/streamers
TwitchGameApi.UsersApiusersSyncOnlineStreamsGetGET /Users/SyncOnlineStreams
TwitchGameApi.UsersApiusersSyncSubsGetGET /Users/SyncSubs
TwitchGameApi.UsersApiusersUserAccountAccountTypeIdDeleteDELETE /Users/UserAccount/{accountTypeId}
TwitchGameApi.UsersApiusersUserAccountIdGetGET /Users/UserAccount/{id}
TwitchGameApi.UsersApiusersUserAccountPostPOST /Users/UserAccount
TwitchGameApi.UsersApiusersUserAccountTypesGetGET /Users/UserAccount/types
TwitchGameApi.WeatherForecastApiweatherForecastGetGET /WeatherForecast

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.