type.hash.value0.000001
Get the value of a key.
Arguments
keyrequired
The key to get the value for.Return Value
The value of the key in the given hash.something went wrong :(
Getting the value of a key
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.hash.value.call(
{one: 1, two: 2, three: 3}, key: "two"
)
client.type.hash.value.call(
{one: 1, two: 2, three: 3}, {key: "two"}
);
curl "https://proc.run/type/hash/value?key=two" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '{"one": 1, "two": 2, "three": 3}'
2
Stuck? Want to chat about an idea? Join the community on Discord.