🎮FortniteShop
Last updated
Last updated
setToken(value) ⇒ FortniteShop
Set the Fortnite API token
Set the text for the Fortnite Shop card
build([font]) ⇒ Promise.<Buffer>
Build the Fortnite Shop card
Kind: global class
Fortnite Shop card creator
To obtain a Fortnite API token, visit fortnite-api.com
Example
FortniteShop
Set the Fortnite API token
Kind: global function
Returns: FortniteShop
- The current instance of FortniteShop
Throws:
APIError
If the value is not a string
FortniteShop
Set the text for the Fortnite Shop card
Kind: global function
Returns: FortniteShop
- The current instance of FortniteShop
Throws:
APIError
If the value is not a string
Promise.<Buffer>
Build the Fortnite Shop card
Kind: global function
Returns: Promise.<Buffer>
- Card image in buffer format
Throws:
APIError
If the token is not provided
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Default | Description |
---|---|---|---|
value
string
Fortnite API token
value
string
Text to set for the card
[font]
string
""Arial""
Font to use for the card