MinuteDock

Users

These are the Users inside the currently selected MinuteDock account.

Users Overview

{
  "id": 123,
Integer

Primary Key identifier for this User.

  "email": "joe@bloggs.com",
String

An email address for this User.

  "first_name": "Joe",
String

The User's first name.

  "last_name": "Bloggs",
String

The User's last name.

  "account_id": 123,
Integer

The User's currently selected account.

  "time_zone_id": "Europe/London",
String

A name for the User's currently selected time zone.

  "time_zone_offset": 0
Integer

The User's current time zone offset from GMT (in minutes)

}

List all users

Open in API Explorer
GET /users.json

Lists all users who are able to access the currently selected account

Example Request

Format:
curl --request GET \
  --url https://https//minutedock.com/api/v1/users.json \
  --header 'accept: application/json' \
  --header 'apikey: YOUR API KEY HERE' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001'
require 'uri'
require 'net/http'

url = URI("https://https//minutedock.com/api/v1/users.json")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'
request["accept"] = 'application/json'
request["apikey"] = 'YOUR API KEY HERE'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "https",
  "port": null,
  "path": "//minutedock.com/api/v1/users.json",
  "headers": {
    "content-type": "multipart/form-data; boundary=---011000010111000001101001",
    "accept": "application/json",
    "apikey": "YOUR API KEY HERE"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("https")

payload = ""

headers = {
    'content-type': "multipart/form-data; boundary=---011000010111000001101001",
    'accept': "application/json",
    'apikey': "YOUR API KEY HERE"
    }

conn.request("GET", "//minutedock.com/api/v1/users.json", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://https//minutedock.com/api/v1/users.json",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "apikey: YOUR API KEY HERE",
    "content-type: multipart/form-data; boundary=---011000010111000001101001"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://https//minutedock.com/api/v1/users.json"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
	req.Header.Add("accept", "application/json")
	req.Header.Add("apikey", "YOUR API KEY HERE")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Responses

200 Success Users List
[
  "id": 123,
Integer

Primary Key identifier for this User.

  "email": "joe@bloggs.com",
String

An email address for this User.

  "first_name": "Joe",
String

The User's first name.

  "last_name": "Bloggs",
String

The User's last name.

  "account_id": 123,
Integer

The User's currently selected account.

  "time_zone_id": "Europe/London",
String

A name for the User's currently selected time zone.

  "time_zone_offset": 0
Integer

The User's current time zone offset from GMT (in minutes)

]