• Resolved trademark2k6

    (@trademark2k6)


    hello

    am I right in thinking that you must make 2 calls to get a wish list for a certain user?

    the first call, you have to provide user ID, and this returns you the list of wish lists along with sharekey.

    then a second call which requires the sharekey (which we got from above) and we use thisin the URL to get the items?

    we already use the woocommerce user rest api endpoint. Is there a way to store the sharekey in the user meta?

    this will avoid step 1!

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @trademark2k6

    Yes, you are correct in your understanding of the process for retrieving a user’s wishlist. Indeed, it involves two calls.

    As for your query about storing the sharekey in the user meta to bypass the first step, this isn’t currently a built-in feature. However, you can certainly implement a solution on your end where you save the association between the user ID and the sharekey in your application. This would indeed speed up subsequent requests, as it would eliminate the need for the initial call.

    We acknowledge the potential benefits of this approach and will consider adding the functionality to store wishlist sharekeys in user meta in future updates. This could streamline the process significantly.

    Thanks for your suggestion, and stay tuned for possible updates on this feature!

    Thread Starter trademark2k6

    (@trademark2k6)

    hi

    I am just wondering if this had been implemented at all in more recent versions of the plugin?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get wish list products via API’ is closed to new replies.