Skip to main content
GET
/
api
/
v1
/
users
/
summary
cURL
curl --request GET \
  --url https://api.drgreennft.com/api/v1/api/v1/users/summary \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-signature: <api-key>'
import requests

url = "https://api.drgreennft.com/api/v1/api/v1/users/summary"

headers = {
    "x-auth-apikey": "<api-key>",
    "x-auth-signature": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
  method: 'GET',
  headers: {'x-auth-apikey': '<api-key>', 'x-auth-signature': '<api-key>'}
};

fetch('https://api.drgreennft.com/api/v1/api/v1/users/summary', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.drgreennft.com/api/v1/api/v1/users/summary",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-apikey: <api-key>",
    "x-auth-signature: <api-key>"
  ],
]);

$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"
)

func main() {

	url := "https://api.drgreennft.com/api/v1/api/v1/users/summary"

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

	req.Header.Add("x-auth-apikey", "<api-key>")
	req.Header.Add("x-auth-signature", "<api-key>")

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

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

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.drgreennft.com/api/v1/api/v1/users/summary")
  .header("x-auth-apikey", "<api-key>")
  .header("x-auth-signature", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.drgreennft.com/api/v1/api/v1/users/summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-apikey"] = '<api-key>'
request["x-auth-signature"] = '<api-key>'

response = http.request(request)
puts response.read_body

Authorizations

x-auth-apikey
string
header
required

The holder's Base64-encoded PEM SPKI public key. Issued via POST /keys in the DAPP UI. See docs/02-authentication.md.

x-auth-signature
string
header
required

Base64-encoded ECDSA-SHA256 signature over the canonical payload. Curve: secp256k1. Canonical payload rules depend on HTTP method — POST/PATCH/PUT sign the JSON body; GET/DELETE with query sign urlencode(query); GET/DELETE with no query sign '{}'. See docs/02-authentication.md for the full spec.

Query Parameters

userType
string
required

Response

To get summary of users by userType