Oauth2.got.text: def of bend-kit-oauth2@0.11.0.1 Import: import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2 Lines 100-108 of bend-kit-oauth2@0.11.0.1/oauth2.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-oauth2@0.11.0.1/oauth2.bend&start_line=100&end_line=108 import Base import bend-kit-json@0.7.0.0/json.bend as Json import bend-kit-encoding@0.5.0.0/encoding.bend as Enc import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # A string's text, or a number's, as some servers send expires_in as "3600". def got.text(v: Json.Val) -> String: match v: case Json.Str{s}: Enc.utf8.decode(s) case Json.Num{s}: Bytes.to_string(s) case other: "" Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=to_string https://jend.leeeet.dev/definition.txt?path=bend-kit-encoding@0.5.0.0/encoding.bend&name=utf8.decode https://jend.leeeet.dev/definition.txt?path=bend-kit-json@0.7.0.0/json.bend&name=Val