Webanizr Logo
Open / sluit menu
Module fetchPage

The callApi module retreives data from an external server. It calls the given url as a GET request. It can be used to retreive data from static sources or simple rest APIs.

syntax

webanizr.collect('fetchPage', parameters, callback)

parameters

The callApi module accepts one parameter:

url__page (required)

The url of the page that needs to be fetched.

callback

The page is deconstructed and all information, like title, body, css files and more are collected in a JSON object. This JSON object is passed as first argument to the callback function.

demo

https://cdn.cpmodules.webanizr.com/demo/fetch-page-info/index.html