HTTP/HTTPS GET/POST JSON
Last updated
Was this helpful?
Last updated
Was this helpful?
Query any HTTP/HTTPS GET/POST with or without JSON.
Overview / explanation of the different options, links to github code.
: https://ipfs.io/ipfs/Qmaisz6NMhDB51cCvNWa1GMS7LU1pAxdF4Ld6Ft9kZEP2a
- simply add the full URL path
: https+json://name/api.github.com/users/tmuskal
- prepend your uri with https+json
, then specify the key mapping path of your desired data point, in the example, the name
key is used as the requested data point. To request nested values beneath the first layer of keys, simple separate the desired data point with a .
, e.g., name.value
. Then add the path to your desired data point: api.github.com/users/tmuskal
. Note you may use http+json
or https+json
.
: https+post+json://timestamp/${body}/nodes.get-scatter.com:443/v1/chain/get_block
- where body is const body = Buffer.from('{"block_num_or_id":"36568000"}').toString('base64')
. In this example you specify the type of request: https+post+json
then the key mapping timestamp
then the body of the POST request, encoded in base64, then the URL path nodes.get-scatter.com:443/v1/chain/get_block
.