API Docs
users
Get your own user
code examples curl location '/users' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'authorization string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("authorization", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/users", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/users") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["authorization"] = "string" response = http request(request) puts response read body import requests import json url = "/users" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'authorization' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ok \[ { " id" "myuserid", "email" "myemail\@clemap ch", "isverified" false } ]// unauthorized { "name" "notauthenticated", "message" "not authenticated", "code" 401, "classname" "not authenticated", "errors" {} }