Get Customer Wishlist
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlistimport requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist', 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/shops/{shopId}/customers/{userId}/wishlist",
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/shops/{shopId}/customers/{userId}/wishlist"
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/shops/{shopId}/customers/{userId}/wishlist")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": [
{
"_id": "<string>",
"shop": "<string>",
"product": {
"reviews": {
"rates": {
"1": 123,
"2": 123,
"3": 123,
"4": 123,
"5": 123
},
"count": 123
},
"_id": "<string>",
"tags": [
"<string>"
],
"additional_media": [
{
"media_type": "<string>",
"media": "<string>",
"_id": "<string>",
"uuid": "<string>"
}
],
"attributes": [
{
"name": {
"name": "<string>",
"_id": "<string>"
},
"options": [
{
"name": "<string>",
"label": "<string>",
"id": "<string>"
}
]
}
],
"variants": "<array>",
"stock": 123,
"digital": true,
"media": "<string>",
"media_type": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"shop": "<string>",
"created": "<string>",
"sale_price": 123,
"archived": true,
"__v": 123,
"digital_download": null,
"draft": true,
"numberOfPurchase": 123,
"onSale": true,
"slug": "<string>",
"alwaysInStock": true,
"categories": "<array>",
"costPrice": 123,
"isHero": true,
"type": "<string>",
"variantsInheritPrice": true,
"setAttributesForVariants": true,
"brand": "<string>",
"modified": "<string>",
"sku": "<string>",
"typeAttributes": {
"packaging": {
"weight": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>"
}
},
"dimension": {
"unit": "<string>",
"length": 123,
"width": 123,
"height": 123
},
"weight": {
"base": {
"unit": "<string>",
"value": 123
},
"unit": "<string>",
"value": 123
}
},
"user": {
"_id": "<string>",
"telephone": "<string>"
},
"profile": {
"campaigns": "<array>",
"_id": "<string>",
"shop": "<string>",
"user": "<string>",
"__v": 123,
"acceptanceToken": null,
"created_at": "<string>",
"email": "<string>",
"fullName": "<string>",
"isClaimed": true,
"notes": "<array>",
"notifyViaWhatsApp": true,
"numberOfOrders": 123,
"orderTotal": 123,
"password": "<string>",
"resetPassword": true,
"roles": [
"<string>"
],
"suspended": true,
"suspendedRoles": "<array>",
"telephone": "<string>",
"updated_at": "<string>",
"whatsAppNumber": "<string>"
},
"created": "<string>",
"__v": 123,
"variant": null
}
],
"success": true
}Wishlist
Get Customer Wishlist
Host: http://qshop.ng
GET
/
shops
/
{shopId}
/
customers
/
{userId}
/
wishlist
Get Customer Wishlist
curl --request GET \
--url http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlistimport requests
url = "http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist', 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/shops/{shopId}/customers/{userId}/wishlist",
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/shops/{shopId}/customers/{userId}/wishlist"
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/shops/{shopId}/customers/{userId}/wishlist")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/shops/{shopId}/customers/{userId}/wishlist")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"data": [
{
"_id": "<string>",
"shop": "<string>",
"product": {
"reviews": {
"rates": {
"1": 123,
"2": 123,
"3": 123,
"4": 123,
"5": 123
},
"count": 123
},
"_id": "<string>",
"tags": [
"<string>"
],
"additional_media": [
{
"media_type": "<string>",
"media": "<string>",
"_id": "<string>",
"uuid": "<string>"
}
],
"attributes": [
{
"name": {
"name": "<string>",
"_id": "<string>"
},
"options": [
{
"name": "<string>",
"label": "<string>",
"id": "<string>"
}
]
}
],
"variants": "<array>",
"stock": 123,
"digital": true,
"media": "<string>",
"media_type": "<string>",
"name": "<string>",
"description": "<string>",
"price": 123,
"shop": "<string>",
"created": "<string>",
"sale_price": 123,
"archived": true,
"__v": 123,
"digital_download": null,
"draft": true,
"numberOfPurchase": 123,
"onSale": true,
"slug": "<string>",
"alwaysInStock": true,
"categories": "<array>",
"costPrice": 123,
"isHero": true,
"type": "<string>",
"variantsInheritPrice": true,
"setAttributesForVariants": true,
"brand": "<string>",
"modified": "<string>",
"sku": "<string>",
"typeAttributes": {
"packaging": {
"weight": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>"
}
},
"dimension": {
"unit": "<string>",
"length": 123,
"width": 123,
"height": 123
},
"weight": {
"base": {
"unit": "<string>",
"value": 123
},
"unit": "<string>",
"value": 123
}
},
"user": {
"_id": "<string>",
"telephone": "<string>"
},
"profile": {
"campaigns": "<array>",
"_id": "<string>",
"shop": "<string>",
"user": "<string>",
"__v": 123,
"acceptanceToken": null,
"created_at": "<string>",
"email": "<string>",
"fullName": "<string>",
"isClaimed": true,
"notes": "<array>",
"notifyViaWhatsApp": true,
"numberOfOrders": 123,
"orderTotal": 123,
"password": "<string>",
"resetPassword": true,
"roles": [
"<string>"
],
"suspended": true,
"suspendedRoles": "<array>",
"telephone": "<string>",
"updated_at": "<string>",
"whatsAppNumber": "<string>"
},
"created": "<string>",
"__v": 123,
"variant": null
}
],
"success": true
}Was this page helpful?
⌘I