Setup WooCommerce API and Test It with Postman and Python

  Рет қаралды 38,948

Super SQA

Super SQA

Күн бұрын

##########
🎁 Amazing QA Automation Learning Opportunity:
www.supersqa.com/qa-automatio...
🎁 Live Bootcamp for QA Automation:
www.supersqa.com/bootcamp
Full courses and special deals @ supersqa.com
##########
Discussion of enabling REST API for WooCommerce and testing the API using Postman and Python script.

Пікірлер: 64
@ajaysuresh8856
@ajaysuresh8856 Жыл бұрын
amazing content
@rajon_kobir
@rajon_kobir 10 ай бұрын
Very helpful! Thanks and keep it up!
@SuperSQA
@SuperSQA 10 ай бұрын
Thanks, will do!
@philbarnett6045
@philbarnett6045 Ай бұрын
Great instructional video, thank you very much!
@SuperSQA
@SuperSQA Ай бұрын
You are very welcome. I am glad you liked it.
@GansShir
@GansShir 2 жыл бұрын
Thank you so much!
@almayox9144
@almayox9144 Жыл бұрын
thank you for your awesome work! appreciate it
@SuperSQA
@SuperSQA Жыл бұрын
My pleasure!
@OptimusGrand
@OptimusGrand 10 ай бұрын
Hi does this work only for Admin? or will it work for woocommerce customers as well?
@MHmodAMeerV
@MHmodAMeerV Жыл бұрын
thank you a lot brother
@UnchartedMind
@UnchartedMind 3 жыл бұрын
thank you so much
@sachinmaurya4744
@sachinmaurya4744 4 жыл бұрын
thanks a lot, man 👍 it worked for me...
@sachinmaurya4744
@sachinmaurya4744 4 жыл бұрын
@@faheemaktharmd7823 in which platform you are going to implement this, platform as in - web app, android app , windows app, etc???
@sachinmaurya4744
@sachinmaurya4744 4 жыл бұрын
i ll make a video on python woocommerce api and will share you the link
@AlexandrSpirit
@AlexandrSpirit 3 жыл бұрын
Спасибо большое.
@php6515
@php6515 3 жыл бұрын
can it be done without Woocommerce Package, i mean using request we passs entire things?
@shabangomaa
@shabangomaa 3 жыл бұрын
thank you
@OptimusGrand
@OptimusGrand 10 ай бұрын
Hi does this work only for Admin? or will it work for woocommerce customers as well?
@ahsanabrar880
@ahsanabrar880 2 жыл бұрын
thanks
@Cine-Gem
@Cine-Gem 3 жыл бұрын
Hello I want to know How to Integrate WooCommerce & an External Order Management System could you please help me
@AliRazaiamaliraza
@AliRazaiamaliraza 4 жыл бұрын
How to do same with localhost?
@joseantoniosanchesgarcia9220
@joseantoniosanchesgarcia9220 3 жыл бұрын
bro, it doesn't worked i have https and i used basic auth but no
@esc4p3EP
@esc4p3EP 4 жыл бұрын
Hi, may i know how u handle user session for user or cookies if using WooCommerce API?
@SuperSQA
@SuperSQA 4 жыл бұрын
Wordpress have its own user management. And there are other plugins as well for user management. You have to go to Seetings for wordpress and select 'allow users to register'. Not sure that is exactly your question but wuser management is done from the Wordpress side.
@nikhillakha3778
@nikhillakha3778 4 жыл бұрын
Hi, Can you please do a session on how to push information from one system to woocommerce, for instance I would like to update stock on my woocommerce website using my point of sales system ( Odyssey)
@abelcasey9416
@abelcasey9416 3 жыл бұрын
i guess I'm pretty randomly asking but does anybody know a good website to watch newly released series online?
@maximiliansantiago7469
@maximiliansantiago7469 3 жыл бұрын
@Abel Casey Lately I have been using Flixzone. You can find it by googling :)
@amirhoseinberyani1744
@amirhoseinberyani1744 3 жыл бұрын
how to put product in woocommerce?
@naifandroid3694
@naifandroid3694 4 жыл бұрын
Thanks for tutorial but how to Setup WooCommerce API in Flutter App Please could help me to by showing us how to do that in Flutter App I am new as development field and I am not that tech guy but usually I learn from Videos
@rawquesh
@rawquesh 3 жыл бұрын
hey bro did you find out any way to use this in flutter , please let me know
@naifandroid3694
@naifandroid3694 3 жыл бұрын
@@rawquesh Not Yet bro , I wish there is video explaining how to setup Woo-Commerce with flutter
@rawquesh
@rawquesh 3 жыл бұрын
@@naifandroid3694 im using a package and its working for me you can check out on pub dev
@naifandroid3694
@naifandroid3694 3 жыл бұрын
@@rawquesh can you provide me the name of the package that you are using? I am wondering why still now people not explaining how to connect Woo-commerce with flutter in REST API as Videos ...because till now I did not see any good video talking about that topic ?
@rawquesh
@rawquesh 3 жыл бұрын
@@naifandroid3694 bro its woocommerce 0.9.7 , and everything is working fine but rn i have issue with payment
@captainofthewhitetower
@captainofthewhitetower Жыл бұрын
Bro okay we get the product, how do we move on from that? I mean i have one product and I printed that in terminal. What should I do after that ? Can you show ? I do not understand what happens next.
@SuperSQA
@SuperSQA Жыл бұрын
It depends on what you are looking to do? What is the purpose of making the API call? Depends on your goal. For me, I am testing the API (teaching how to test it). So once I make the API call with PostMan and confirm it works then I do the same in Python/PyTest and verify the response is as expected. If you tell me what your goal is I can give you pointers.
@djohnworthy1040
@djohnworthy1040 Жыл бұрын
@@SuperSQA I am trying to add to the cart that's all. After that, I am going to take the order once it is paid I am going to process it on my app.
@SuperSQA
@SuperSQA Жыл бұрын
You just place the order then. No need to add to cart in the backend. Here is example of how you would place the order: woocommerce.github.io/woocommerce-rest-api-docs/?python#create-an-order
@djohnworthy1040
@djohnworthy1040 Жыл бұрын
@@SuperSQA The thing is that. The cart is always empty. So placing an order will auto add to cart? I need to update the cart. So like user will add products and then buy.
@sauloves
@sauloves 4 жыл бұрын
Here, Postman require Signature Method in OAuth 1.0 and show me "Invalid Singature" on HMAC-SHA1
@SuperSQA
@SuperSQA 4 жыл бұрын
Hi Saulo, as you can see in the video it worked for me so hard for me to say why it wouldn't work for you. Are you using https? if so you need different type of auth. Sorry this is not much help but for sure it has to do with your specific setup.
@sauloves
@sauloves 4 жыл бұрын
@@SuperSQA hi! Thanks for response. Perhaps some bug happens here, i don't know. Just generated new keys and work (who understands). Anyaway, your video help me so much. Thanks!
@SuperSQA
@SuperSQA 4 жыл бұрын
@@sauloves I am glad it worked out. You are very welcome.
@yooscripts5947
@yooscripts5947 3 жыл бұрын
the mouse indicator is a bit annoying but great video :D
@testapi7767
@testapi7767 4 жыл бұрын
Thank you very much for the video. But I'm getting a 401 status, I'm not sure what am i doing wrong. Could you help me out please? I can mail you the Screenshots if you like to share your email.
@SuperSQA
@SuperSQA 4 жыл бұрын
Looks like it is access issue. It is not taking your credentials. Make sure you use it exactly how I show it on the video. And pay attention to http and https. They way I set it up it is http. If you follow it just like I did it would be http too. there is extra step for the https. Feel free to email me screen shots. Make sure to include the credentials tab also.
@YoosufMuneer
@YoosufMuneer 4 жыл бұрын
@@SuperSQA What's the extra step for HTTPS?
@SuperSQA
@SuperSQA 4 жыл бұрын
@@YoosufMuneer You will open 'locale' and select the site you want to make https. One of the tabs is SSL. Click that tab and click the "TRUST' link next to 'Certificate'. After that login as admin and under Settings/General update your URL.
@FxMedSupport
@FxMedSupport 4 жыл бұрын
@@SuperSQA I am not following this - can it be shown or explaind differently
@jarkko_tv
@jarkko_tv 3 жыл бұрын
I was initially getting 401 with the mentioned Python WooCommerce library but queries with the Postman were working. Figured out that this Python library is outdated or incompatible with Python 3.8+. You should simply use Python Requests library with it's basic auth. import requests response = requests.get(API_URL, auth=(KEY,SECRET)) print(response.status_code) This is basically what this WooCommerce wrapper library tries to help you do anyways and nothing else.
@djohnworthy1040
@djohnworthy1040 Жыл бұрын
How do I add to cart?
@SuperSQA
@SuperSQA Жыл бұрын
You dont add to cart in the API. You just create the payload/body for the 'place order api' and make the call. You just have to build the payload with user and product information.
@djohnworthy1040
@djohnworthy1040 Жыл бұрын
​@@SuperSQA By the way, thanks for the reply.
@djohnworthy1040
@djohnworthy1040 Жыл бұрын
@@SuperSQA Is there a link for that payload call? For me to check it out would be great. Does it automatically add to the cart? After I use the payload and POST it. Does it automatically send it to the cart?
@SuperSQA
@SuperSQA Жыл бұрын
You are very welcome
@SuperSQA
@SuperSQA Жыл бұрын
The official documentation has an example payload and call. Here is the link: woocommerce.github.io/woocommerce-rest-api-docs/?python#create-an-order
@neutralengineer3873
@neutralengineer3873 4 жыл бұрын
What about add cart API? It's not given.
@SuperSQA
@SuperSQA 4 жыл бұрын
Yes Riyaz, you are correct, they did not give any information on add to cart which I would expect to see for an ecommerce api. Here is the official documentation: woocommerce.github.io/woocommerce-rest-api-docs/#introduction
Difference Between REST API vs Web API vs SOAP API Explained
7:24
Learn with Whiteboard
Рет қаралды 173 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 106 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 28 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 21 МЛН
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 864 М.
Working With APIs in Python - Pagination and Data Extraction
22:36
John Watson Rooney
Рет қаралды 97 М.
WooCommerce REST API Integration
29:17
WordPress
Рет қаралды 71 М.
WordPress   REST API Basics
5:53
Chris Miller
Рет қаралды 76 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
What Is QA Automation? Software Test Automation Explained
9:02
WordPress REST API Authentication: Application Passwords
14:34
LearnWebCode
Рет қаралды 52 М.
How To Use WooCommerce API 2023! (Full Tutorial)
8:06
Easy Solution
Рет қаралды 1,6 М.
API Testing Using Postman | Crash Course
3:27:51
Mukesh otwani
Рет қаралды 85 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 595 М.