HttpRequest_v3 Op

HttpRequest

Request a json file and output an object (ajax, url, json)



Edit Documentation

Full Name
  • Ops.Json.HttpRequest_v3
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch Weather API - Example

Makes a request to the MetaWeather API and displays the current temperature.
We use a CORS-proxy here to overcome security-problems between HTTP and HTTPS.

To change the city run this in your browser: https://www.metaweather.com/api/location/search/?query=berlin, change the last part (city) and copy the woeid from the response to `Location ID.

Open In Editor

INPUT PORTS


URL (String)
headers (Object)

a key/value-object of additional headers to send

body (String)

an optional body to send (for POST/PATCH/PUT)

HTTP Method index (Number:integer )

the http method to use

Content-Type (String)

the content type of the body sent (if any)

Content index (Number:integer )
Auto request (Number:boolean )

trigger the request on any value change (or on pagereload)

reload (Trigger)

refresh data from remote (overrides an inactive "auto request")

OUTPUT PORTS


Response Json Object (Object)
Response String (String)
Response Data Url (String)
Duration MS (Number)
Status Code (Number)
Is Loading (boolean Number)

currently loading

Loaded (Trigger)

triggers when finished


Patches using HttpRequest_v3

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.pandur.AjaxRequest2 renamed to Ops.Json.AjaxRequest_v2user avatarpandur - 2019-07-10 15:51
bugfixfix multiple requests loadingstatususer avatarstephan - 2023-05-19 11:53
cloned op from Ops.Json.AjaxRequest_v2user avatarpandur - 2023-10-06 11:44
renameOps.Patch.Pox_n4I.AjaxRequest_v3 renamed to Ops.Json.AjaxRequest_v3user avatarpandur - 2023-10-06 12:04
renameOps.Json.AjaxRequest_v3 renamed to Ops.Json.HttpRequest_v3user avatarpandur - 2023-11-08 08:29