Use woo api from WordPress plugin in same site

I have dashboard on the same site that I have my store
I want use woocommerce rest api
But whatever I tried use it fails
— if I place the code in my plugin —
It says 15000 …. And 0 received
I thought I was problem with the local host or my coding
But when I try it with python it warked perfect

I think the problem is
I am trying to call the woo api from the same site
If i can’t use it like that
Any alternative ?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here