-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7006726
commit 661d7f5
Showing
6 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/*! | ||
* BuyMeACoffeeJS - https://github.com/WarenGonzaga/buymeacoffee.js#readme | ||
* A simple and lightweight but powerful Node.js client for Buy Me A Coffee API | ||
* Version: 1.0.8-beta.1 | ||
* Version: 1.2.0 | ||
* Github: https://github.com/WarenGonzaga/buymeacoffee.js | ||
* Licensed Under The MIT License: http://opensource.org/licenses/MIT | ||
* Copyright (c) 2020 Waren Gonzaga | ||
* Copyright (c) 2021 Waren Gonzaga | ||
* | ||
* Facebook: @warengonzagaofficial | ||
* Twitter: @warengonzaga | ||
* Github: @warengonzaga | ||
* Website: warengonzaga.com | ||
*/ | ||
|
||
const requester=require("./requester");class BMC{constructor(e){this.access_token=e}Supporters(e){this._sendRequest("supporters",e)}Subscriptions(e){this._sendRequest("subscriptions",e)}Extras(e){this._sendRequest("extras",e)}async _sendRequest(e,s){s((await requester.get(e,{headers:{Authorization:"Bearer "+this.access_token}})).data)}}module.exports=BMC; | ||
const requester=require("./requester");class BMC{constructor(e){this.access_token=e}Supporters(){return this._sendRequest("supporters")}Subscriptions(){return this._sendRequest("subscriptions")}Extras(){return this._sendRequest("extras")}async _sendRequest(e){return(await requester.get(e,{headers:{Authorization:"Bearer "+this.access_token},validateStatus:function(e){return e>=200&&e<300}})).data}}module.exports=BMC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters