File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 22
33Start of what will cover the whole Blizzard Battle.net API when its done.
44
5- Built for Deno 🦕
6-
75Link to the module on [ Deno Land] ( https://deno.land/x/blizzard_api )
6+ Link to the module on [ JSR] ( https://jsr.io/@pinta365/blizzard-api )
87
98## WORK IN PROGRESS
109
1110Let me know if you want certain APIs to be prioritized.
11+ Currently only supports client credentials flow but the plan is to implement authorization code flow also.
1212
1313### APIs implemented
1414
@@ -24,7 +24,7 @@ Let me know if you want certain APIs to be prioritized.
2424| | | |
2525| ** Hearthstone:** Game Data APIs | ✅ | |
2626| | | |
27- | ** Overwatch League:** Community APIs** | ✅ | Only seem to support US region and some data types are partially defined as Unknown |
27+ | ** Overwatch League:** Community APIs | ✅ | Only seem to support US region and some data types are partially defined as Unknown |
2828| | | |
2929| ** StarCraft II:** Community APIs | | |
3030| ** StarCraft II:** Game Data APIs | ✅ | |
Original file line number Diff line number Diff line change 11{
22 "tasks" : {
3- "dev " : " deno run --watch mod.ts "
3+ "publish_jsr " : " deno publish --config jsr.json "
44 },
55 "fmt" : {
66 "lineWidth" : 120 ,
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " @pinta365/blizzard-api" ,
3+ "version" : " 0.3.1" ,
4+ "exports" : " ./mod.ts"
5+ }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function getauthConfig(): AuthConfig {
1515 return authConfig ;
1616}
1717
18- export async function authenticate ( force = false ) {
18+ export async function authenticate ( force = false ) : Promise < string | true > {
1919 if ( ! getSetup ( ) . region ) {
2020 throw new MissingRegionError ( ) ;
2121 }
You can’t perform that action at this time.
0 commit comments