All Projects → calatonsystems → wc-api-java

calatonsystems / wc-api-java

Licence: MIT license
Java wrapper for WooCommerce REST API

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to wc-api-java

wp-json-api-flutter
WordPress and WooCommerce JSON API for Flutter Mobile. Register Users, Login (with email or username), Get Users Info, Update Users Info, Update Users Password + more.
Stars: ✭ 24 (-70.73%)
Mutual labels:  woocommerce, woocommerce-api
WooCommerceConnector
A Power BI Custom Connector for WooCommerce
Stars: ✭ 27 (-67.07%)
Mutual labels:  woocommerce, woocommerce-api
WooDroid
Simple, robust Woocommerce API sdk for java and android
Stars: ✭ 77 (-6.1%)
Mutual labels:  woocommerce, woocommerce-api
nextjs-woocommerce-restapi
A React WooCommerce Project Example With REST API
Stars: ✭ 168 (+104.88%)
Mutual labels:  woocommerce
woocommerce
Vue Storefront 2 integration for WooCommerce
Stars: ✭ 27 (-67.07%)
Mutual labels:  woocommerce
khalti-woocommerce
Woocommerce plugin for Khalti Payment Gateway Integration
Stars: ✭ 15 (-81.71%)
Mutual labels:  woocommerce
wordpress
📚 Recursos para aprender WordPress
Stars: ✭ 20 (-75.61%)
Mutual labels:  woocommerce
7cart
7cart is a php7 project for building online shops, catalogs or service platforms. 7cart built with simple code and database schema. It is easy to support and fast.
Stars: ✭ 27 (-67.07%)
Mutual labels:  woocommerce
woocommerce-stubs
WooCommerce function and class declaration stubs for static analysis.
Stars: ✭ 49 (-40.24%)
Mutual labels:  woocommerce
WooCommerce-Correios-Calculo-de-Frete-na-Pagina-do-Produto
Habilita o cálculo de frete na página do produto no WooCommerce.
Stars: ✭ 21 (-74.39%)
Mutual labels:  woocommerce
socialify
Socialify - Social Login and support OAuth2 for WordPress based on HybridAuth made by @uptimizt with Love :)
Stars: ✭ 20 (-75.61%)
Mutual labels:  woocommerce
disallow-pwned-passwords
Disallow WordPress and WooCommerce users using pwned passwords
Stars: ✭ 29 (-64.63%)
Mutual labels:  woocommerce
woo-cart-expiration
Set a time limit on a customer checking out.
Stars: ✭ 19 (-76.83%)
Mutual labels:  woocommerce
WalkTheWeb
WalkTheWeb 3D Internet - Metaverse - Multiverse - Host your own multiplayer Metaverse of 3D Games, 3D Shopping, and 3D Scenes!
Stars: ✭ 28 (-65.85%)
Mutual labels:  woocommerce
Hypermarket
If you are looking for a stylish and elegant website template for your online store, Hypermarket is the perfect choice for you.
Stars: ✭ 49 (-40.24%)
Mutual labels:  woocommerce
taxjar-woocommerce-plugin
WooCommerce Sales Tax Plugin by TaxJar
Stars: ✭ 26 (-68.29%)
Mutual labels:  woocommerce
heroku-wordpress
Template project for deploying WordPress 5.7.2 to Heroku
Stars: ✭ 49 (-40.24%)
Mutual labels:  woocommerce
pushover-for-woocommerce
Pushover for WooCommerce
Stars: ✭ 19 (-76.83%)
Mutual labels:  woocommerce
bootscore
Flexible Bootstrap 5 WordPress starter theme with full WooCommerce support
Stars: ✭ 160 (+95.12%)
Mutual labels:  woocommerce
wc4bp
WooCommerce BuddyPress Integration
Stars: ✭ 18 (-78.05%)
Mutual labels:  woocommerce

WooCommerce API Java Wrapper

Build Status

Java wrapper for WooCommerce REST API. The library supports the latest versions of WooCommerce REST API only with the OAuth 1.0a authentication over the HTTP protocol.

Setup

wc-api-java is available on maven central:

    <dependency>
        <groupId>com.icoderman</groupId>
        <artifactId>wc-api-java</artifactId>
        <version>1.4</version>
    </dependency>

Usage

    public static void main(String[] args) {
        // Setup client
        OAuthConfig config = new OAuthConfig("http://woocommerce.com", "consumerKey", "consumerSecret");
        WooCommerce wooCommerce = new WooCommerceAPI(config, ApiVersionType.V3);

        // Prepare object for request
        Map<String, Object> productInfo = new HashMap<>();
        productInfo.put("name", "Premium Quality");
        productInfo.put("type", "simple");
        productInfo.put("regular_price", "21.99");
        productInfo.put("description", "Pellentesque habitant morbi tristique senectus et netus");

        // Make request and retrieve result
        Map product = wooCommerce.create(EndpointBaseType.PRODUCTS.getValue(), productInfo);

        System.out.println(product.get("id"));

        // Get all with request parameters
        Map<String, String> params = new HashMap<>();
        params.put("per_page","100");
        params.put("offset","0");
        List products = wooCommerce.getAll(EndpointBaseType.PRODUCTS.getValue(), params);

        System.out.println(products.size());
    }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].