🎮FortniteShop

Classes

FortniteShop

Functions

setToken(value)FortniteShop

Set the Fortnite API token

setText(value)FortniteShop

Set the text for the Fortnite Shop card

build([font])Promise.<Buffer>

Build the Fortnite Shop card

FortniteShop

Kind: global class

new FortniteShop()

Fortnite Shop card creator

PREVIEW

To obtain a Fortnite API token, visit fortnite-api.com

Example

const shop = new canvacard.FortniteShop()
  .setToken("f4a26b940ef54a9a4238cef040bd08fa9001cd6c")
  .setText("footer", "ESP CUSTOMS X FORTNITE")

const FortniteShopImage = await shop.build("Luckiest Guy");
canvacard.write(FortniteShopImage, "./fortnite_shop.png");

setToken(value) ⇒ 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

Param
Type
Description

value

string

Fortnite API token

setText(value) ⇒ 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

Param
Type
Description

value

string

Text to set for the card

build([font]) ⇒ 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
Default
Description

[font]

string

"&quot;Arial&quot;"

Font to use for the card

Last updated