Get review
curl --request GET \
--url http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}import requests
url = "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}', 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 => "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}",
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 := "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}"
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("http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"__v": 0,
"_id": "63f62da70bf12b7f208998d1",
"comment": "Good product mate",
"created": "2023-02-22T14:58:47.131Z",
"email": "adeyinkabadmus@gmail.com",
"fullName": "Ademi deyinka",
"isApproved": false,
"product": {
"_id": "61a961741a113f7e13c45c3a",
"alwaysInStock": false,
"media": "https://ucarecdn.com/fd9510cd-6858-4afa-92b9-fefdd9400144/-/resize/800x/",
"media_type": "IMAGE",
"name": "Gift cardsss",
"price": 2500,
"sale_price": 0,
"sku": "gift-cardsss-e9541",
"slug": "gift-cardsss-0c9fd",
"stock": 76
},
"rate": 2,
"shop": "61a956d91a113f7e13c45c15",
"subject": "I like it",
"updated": "2023-02-22T14:58:47.131Z"
},
"msg": "Review found",
"success": true
}Shops - Reviews
Get review
GET
/
{shopId}
/
products
/
{productId}
/
reviews
/
{reviewId}
Get review
curl --request GET \
--url http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}import requests
url = "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}', 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 => "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}",
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 := "http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}"
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("http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"__v": 0,
"_id": "63f62da70bf12b7f208998d1",
"comment": "Good product mate",
"created": "2023-02-22T14:58:47.131Z",
"email": "adeyinkabadmus@gmail.com",
"fullName": "Ademi deyinka",
"isApproved": false,
"product": {
"_id": "61a961741a113f7e13c45c3a",
"alwaysInStock": false,
"media": "https://ucarecdn.com/fd9510cd-6858-4afa-92b9-fefdd9400144/-/resize/800x/",
"media_type": "IMAGE",
"name": "Gift cardsss",
"price": 2500,
"sale_price": 0,
"sku": "gift-cardsss-e9541",
"slug": "gift-cardsss-0c9fd",
"stock": 76
},
"rate": 2,
"shop": "61a956d91a113f7e13c45c15",
"subject": "I like it",
"updated": "2023-02-22T14:58:47.131Z"
},
"msg": "Review found",
"success": true
}Was this page helpful?
⌘I