curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}', 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://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ProductGroupRef": "<string>",
"ActorRef": "<string>",
"ProductGroupID": 123,
"ActorID": 123,
"ProductGroupName": "<string>",
"ProductGroupCode": 123,
"ProductGroupSubCode": 123,
"ProductGroupCreatedBy": 123,
"ProductGroupCreationDate": "2023-11-07T05:31:56Z",
"ProductGroupUpdatedBy": 123,
"ProductGroupLastUpdated": "2023-11-07T05:31:56Z",
"ProductGroupPictureURL": "<string>",
"ProductGroupCategoryCode": "<string>"
}Get Product Group
Retrieves details of a specific product group identified by the ProductGroupID. The response includes information such as the product group name, code, and other related details.
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}', 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://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/productGroups/{ProductGroupID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ProductGroupRef": "<string>",
"ActorRef": "<string>",
"ProductGroupID": 123,
"ActorID": 123,
"ProductGroupName": "<string>",
"ProductGroupCode": 123,
"ProductGroupSubCode": 123,
"ProductGroupCreatedBy": 123,
"ProductGroupCreationDate": "2023-11-07T05:31:56Z",
"ProductGroupUpdatedBy": 123,
"ProductGroupLastUpdated": "2023-11-07T05:31:56Z",
"ProductGroupPictureURL": "<string>",
"ProductGroupCategoryCode": "<string>"
}授权
Enter your Bearer token. It's required to authenticate API requests.
路径参数
The unique identifier of the product group.
响应
The details of the specified product group.
A reference identifier for the product group.
A reference identifier for the actor associated with the product group.
The unique identifier of the product group.
The unique identifier of the actor associated with the product group.
The name of the product group.
The code associated with the product group.
A sub-code associated with the product group for further categorization.
The identifier of the user who created the product group.
The date and time when the product group was created.
The identifier of the user who last updated the product group.
The date and time when the product group was last updated.
The URL of the picture associated with the product group.
The category code associated with the product group.
此页面对您有帮助吗?