Consultar convite de grupo
curl --request GET \
--url https://api.zapperhub.com/{instanceId}/groups/invite-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.zapperhub.com/{instanceId}/groups/invite-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.zapperhub.com/{instanceId}/groups/invite-info', 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.zapperhub.com/{instanceId}/groups/invite-info",
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-api-key: <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.zapperhub.com/{instanceId}/groups/invite-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.zapperhub.com/{instanceId}/groups/invite-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapperhub.com/{instanceId}/groups/invite-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"group": {
"id": "<string>",
"subject": "<string>",
"owner": "<string>",
"subjectOwner": "<string>",
"subjectOwnerPn": "<string>",
"subjectTime": 123,
"creation": 123,
"desc": "<string>",
"descOwner": "<string>",
"descId": "<string>",
"linkedParent": "<string>",
"restrict": true,
"announce": true,
"memberAddMode": "<string>",
"joinApprovalMode": true,
"isCommunity": true,
"isCommunityAnnounce": true,
"size": 123,
"participants": [
{
"id": "<string>",
"isAdmin": true,
"isSuperAdmin": true,
"phoneNumber": "<string>",
"admin": "admin"
}
],
"ephemeralDuration": 123,
"inviteCode": "<string>",
"author": "<string>"
}
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}Grupos
Consultar convite de grupo
Mostra os dados do grupo de um link de convite, sem entrar no grupo. Disponível só para instâncias conectadas por QR Code.
GET
/
{instanceId}
/
groups
/
invite-info
Consultar convite de grupo
curl --request GET \
--url https://api.zapperhub.com/{instanceId}/groups/invite-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.zapperhub.com/{instanceId}/groups/invite-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.zapperhub.com/{instanceId}/groups/invite-info', 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.zapperhub.com/{instanceId}/groups/invite-info",
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-api-key: <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.zapperhub.com/{instanceId}/groups/invite-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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.zapperhub.com/{instanceId}/groups/invite-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapperhub.com/{instanceId}/groups/invite-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"group": {
"id": "<string>",
"subject": "<string>",
"owner": "<string>",
"subjectOwner": "<string>",
"subjectOwnerPn": "<string>",
"subjectTime": 123,
"creation": 123,
"desc": "<string>",
"descOwner": "<string>",
"descId": "<string>",
"linkedParent": "<string>",
"restrict": true,
"announce": true,
"memberAddMode": "<string>",
"joinApprovalMode": true,
"isCommunity": true,
"isCommunityAnnounce": true,
"size": 123,
"participants": [
{
"id": "<string>",
"isAdmin": true,
"isSuperAdmin": true,
"phoneNumber": "<string>",
"admin": "admin"
}
],
"ephemeralDuration": 123,
"inviteCode": "<string>",
"author": "<string>"
}
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}{
"message": "<string>",
"error": "<string>",
"statusCode": 0,
"code": "<string>",
"detail": "<string>",
"meta": {
"code": 123,
"subcode": 123,
"title": "<string>",
"message": "<string>"
},
"localizedMessage": "<string>",
"data": {},
"validation": [
{
"keyword": "<string>",
"instancePath": "<string>",
"schemaPath": "<string>",
"message": "<string>",
"params": {}
}
]
}