Class Api

The API class is used to get data from the API

Constructors

Properties

_url: string = "https://api.popcatdev.repl.co/"

Methods

  • Decodes the binary code to a text or a string

    Parameters

    • binaryCode: number

      Binary code you wish to decode (Example: 0100010100101)

    Returns Promise<any>

    Decoded text

  • Convert your text into the doublestruck font

    Parameters

    • text: string

      Text you wish to convert

    Returns Promise<any>

    Doublestruck text

  • Gets answers from an 8ball API

    Returns Promise<any>

    The answer

  • Encodes a string or word

    Parameters

    • text: string

      The text you wish to encode

    Returns Promise<any>

    Binary code

  • Gets the info on a color hex

    Parameters

    • colorHex: string

      Color hex | must start with "#" (Example: "#87ceeb")

    Returns Promise<any>

    Color hex info

  • Gets info of a song from iTunes

    Parameters

    • song: string

      Song you wish to search

    Returns Promise<any>

    Song info

  • Gives you a joke

    Returns Promise<any>

    A joke from the API

  • Gets info of a meme from Reddit

    Returns Promise<any>

    Meme in a JSON file

  • Gets info of an app from Playstore

    Parameters

    • app: string

      App you wish to search

    Returns Promise<any>

    App info

  • Gets the text and make it a mocked text

    Parameters

    • text: string

      The text you wish to mock

    Returns Promise<any>

    Mocked text (Example: "tHis ApI Is bAd")

  • Reverses the text given (Example: "Utilia" = "ailitU")

    Parameters

    • text: string

      Text you wish to reverse

    Returns Promise<any>

    Reversed text

  • Converts provided text to Morse code

    Parameters

    • text: string

      Text you wish to convert

    Returns Promise<any>

    Morse code

  • Gets a would you rather question and outputs 2 options

    Returns Promise<any>

    Two options

Generated using TypeDoc