Python Forum
Python API for Wordpress - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python API for Wordpress (/thread-34595.html)



Python API for Wordpress - Simlock - Aug-12-2021

Hello,

I am asked to create a python API that would allow to interact with a Wordpress site and the WooCommerce plugin.

I can exchange with the database but I don't understand how an "API" should work...
For example, if in some requests there are errors or warnings to return to the user, how should I do? What I have to communicate with to display messages on the website. It is not the database? How does it work?

Thank you for your help !


RE: Python API for Wordpress - Larz60+ - Aug-12-2021

you can look through the available packages related to wordpress here: https://pypi.org/search/?q=wordpress
and woocommerce here: https://pypi.org/search/?q=woocommerce&o=
I'm not familiar with any of these, so leave the inspection and selection up to you.


RE: Python API for Wordpress - Simlock - Aug-12-2021

(Aug-12-2021, 10:31 AM)Larz60+ Wrote: you can look through the available packages related to wordpress here: https://pypi.org/search/?q=wordpress
and woocommerce here: https://pypi.org/search/?q=woocommerce&o=
I'm not familiar with any of these, so leave the inspection and selection up to you.

I'm sorry but I'm not sure your message answers my post. I already use the Woocommerce API in my Python script to write to the database.
I don't understand how my python script can interact with the user who will be using the website.


RE: Python API for Wordpress - ndc85430 - Aug-12-2021

Who is asking you to do this and what, exactly are their requirements? More details would help here, but you might need to go back to them for clarification (for yourself, rather than us, since you're building it). It's not clear at all to me what this thing is supposed to do, who interacts with it, or anything else.


RE: Python API for Wordpress - LaverneDejardin - May-23-2022

Hey Simlock, who asked you to create the Python API? Indeed, more details would be appreciated if you're looking for a good piece of advice. If you don't find a solution here, I'm sure you'll find the answer on other online platforms. A couple of years ago, I didn't even know what Python was, and due to the infinite insights from the internet, I'm now successfully working for a big IT company! BTW, if you're looking to develop your WordPress skills, take a look at the https://prosvit.design/wordpress-intranet/ link. I found it incredibly useful. Good luck!