Pular para o conteúdo principal
GET
/
api
/
v1
/
users
/
{id}
Retorna um membro
curl --request GET \
  --url 'https://memberkit.com.br/api/v1/users/{id}?api_key='
import requests

url = "https://memberkit.com.br/api/v1/users/{id}?api_key="

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://memberkit.com.br/api/v1/users/{id}?api_key=', 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://memberkit.com.br/api/v1/users/{id}?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$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://memberkit.com.br/api/v1/users/{id}?api_key="

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

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://memberkit.com.br/api/v1/users/{id}?api_key=")
.asString();
require 'uri'
require 'net/http'

url = URI("https://memberkit.com.br/api/v1/users/{id}?api_key=")

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

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "full_name": "<string>",
  "email": "jsmith@example.com",
  "bio": "<string>",
  "profile_image_url": "<string>",
  "blocked": true,
  "unlimited": true,
  "sign_in_count": 123,
  "current_sign_in_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "metadata": {
    "cpf_cnpj": "<string>",
    "phone_local_code": "<string>",
    "phone_number": "<string>"
  },
  "enrollments": [
    {
      "id": 123,
      "course_id": 123,
      "classroom_id": 123,
      "expire_date": "2023-12-25"
    }
  ],
  "memberships": [
    {
      "id": 123,
      "membership_level_id": 123,
      "expire_date": "2023-11-07T05:31:56Z"
    }
  ]
}

Autorizações

api_key
string
query
obrigatório

Parâmetros de caminho

id
string
obrigatório

ID do membro.

Resposta

200 - application/json
id
integer
obrigatório
full_name
string
obrigatório
email
string<email>
obrigatório
bio
string | null
obrigatório
profile_image_url
string | null
obrigatório
blocked
boolean
obrigatório
unlimited
boolean
obrigatório
sign_in_count
integer
obrigatório
current_sign_in_at
string<date-time> | null
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
metadata
object
enrollments
object[]
memberships
object[]