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
value
string
Fortnite API token
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
value
string
Text to set for the card
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
[font]
string
""Arial""
Font to use for the card