Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8a4133733c
74
README.md
74
README.md
@ -6,15 +6,81 @@ This is an android sdk for woocommerce
|
||||
|
||||
Built-based on the documentation: http://woocommerce.github.io/woocommerce-rest-api-docs/#introduction
|
||||
|
||||
## Installation
|
||||
|
||||
#### Maven dependency:
|
||||
### Maven dependency:
|
||||
```xml
|
||||
TODO
|
||||
```
|
||||
|
||||
#### Gradle dependency:
|
||||
### Gradle dependency:
|
||||
```xml
|
||||
TODO
|
||||
```
|
||||
|
||||
#### Usage
|
||||
## Getting started
|
||||
|
||||
TODO
|
||||
Generate API credentials (Consumer Key & Consumer Secret) following this instructions <http://docs.woocommerce.com/document/woocommerce-rest-api/>
|
||||
.
|
||||
|
||||
Check out the WooCommerce API endpoints and data that can be manipulated in <https://woocommerce.github.io/woocommerce-rest-api-docs/>.
|
||||
|
||||
## Setup
|
||||
|
||||
Setup for the new WP REST API integration (WooCommerce 2.6 or later):
|
||||
|
||||
```kotlin
|
||||
val woocommerce = Woocommerce.Builder()
|
||||
.setSiteUrl("http://example.com")
|
||||
.setApiVersion("2")
|
||||
.setConsumerKey("ck_XXXXX")
|
||||
.setConsumerSecret("cs_XXXX")
|
||||
.build()
|
||||
```
|
||||
|
||||
## Usage
|
||||
Getting products example
|
||||
|
||||
```kotlin
|
||||
woocommerce.products.enqueue(object : Callback<ArrayList<Product>> {
|
||||
override fun onResponse(call: Call<ArrayList<Product>>, response: Response<ArrayList<Product>>) {
|
||||
val products = response.body()
|
||||
for (product in products!!) {
|
||||
tvText.append(product.title + "\n")
|
||||
}
|
||||
}
|
||||
|
||||
override fun onFailure(call: Call<ArrayList<Product>>, t: Throwable) {
|
||||
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
## API Support Checklist
|
||||
|
||||
Method | Create | Delete | Retrieve | Update | Batch
|
||||
--------------------- | ------------- | ------------- | ------------- | ------------- | -------------
|
||||
Coupons | N | N | N | N | N
|
||||
Customers | N | N | N | N | N
|
||||
Orders | N | N | N | N | N
|
||||
Order notes | N | N | N | N | N
|
||||
Refunds | N | N | N | N | N
|
||||
Products | N | N | N | N | N
|
||||
Product variations | N | N | N | N | N
|
||||
Product attributes | N | N | N | N | N
|
||||
Product attribute terms | N | N | N | N | N
|
||||
Product categories | N | N | N | N | N
|
||||
Product shipping classes | N | N | N | N | N
|
||||
Product tags | N | N | N | N | N
|
||||
Product reviews | N | N | N | N | N
|
||||
Reports | N | N | N | N | N
|
||||
Tax rates | N | N | N | N | N
|
||||
Tax classes | N | N | N | N | N
|
||||
Webhooks | N | N | N | N | N
|
||||
Settings | N | N | N | N | N
|
||||
Setting options | N | N | N | N | N
|
||||
Payment gateways | N | N | N | N | N
|
||||
Shipping zones | N | N | N | N | N
|
||||
Shipping zone locations | N | N | N | N | N
|
||||
Shipping zone methods | N | N | N | N | N
|
||||
Shipping methods | N | N | N | N | N
|
||||
|
||||
Loading…
Reference in New Issue
Block a user