Pebble App Framework: Phone API
    Preparing search index...

    Function fetchText

    • Fetches a URL's text, for a plugin that reads a whole document rather than a provider's JSON.

      Parameters

      • url: string

        The address to fetch.

      Returns Promise<string>

      The body of a 2xx answer.

      An Error whose message is HTTP <status> for any other answer, or the runtime's own error when the fetch fails. fetchFailure sorts either into a code to keep.