Share a wishlist
curl --request POST \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists/{wishlistId}/share"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"url": "https://web.onio.app/s/q3Zr8Kp1vXc0LmN4tYb7HwE2sJd9uFa6GhR5oTi_kWe"
}{
"statusCode": 400,
"message": "Validation failed (uuid is expected)",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Wishlist not found",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Wishlist is archived",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Wishlists
Share a wishlist
Sets the wishlist to Published and returns its share link. An existing link stays the same. If the wishlist was Private, people who follow it see its wishes again.
Share a wishlist
curl --request POST \
--url https://web.onio.app/api/v1/wishlists/{wishlistId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://web.onio.app/api/v1/wishlists/{wishlistId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists/{wishlistId}/share"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"url": "https://web.onio.app/s/q3Zr8Kp1vXc0LmN4tYb7HwE2sJd9uFa6GhR5oTi_kWe"
}{
"statusCode": 400,
"message": "Validation failed (uuid is expected)",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Wishlist not found",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Wishlist is archived",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}