Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python API for Wordpress
#1
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 !
Reply
#2
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.
Reply
#3
(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.
Reply
#4
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.
Reply
#5
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python, Salesforce and WordPress arthurk88 1 731 Nov-21-2023, 10:13 AM
Last Post: Larz60+
  how to run a python script in the background on my wordpress website rockie12us 3 2,719 Aug-13-2021, 05:39 PM
Last Post: ndc85430
  Article Extraction - Wordpress svzekio 7 5,311 Jul-10-2020, 10:18 PM
Last Post: steve_shambles
  If I use a php script, like WordPress and Elgg, can I program an plugin by Python? Abdulaziz 0 1,626 Jun-23-2020, 06:54 PM
Last Post: Abdulaziz
  Post comments to Wordpress Blog SergeyLV 1 2,500 Aug-01-2019, 01:38 AM
Last Post: Larz60+
  Needs search the text from attachments in WordPress marcellofisher 1 2,662 Jul-09-2018, 07:49 AM
Last Post: alex6
  Using python requests module and BS4 to login on an Wordpress based website apollo 1 9,436 Feb-06-2018, 01:31 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020