Mike Jolley
549d7ab2c0
Removed 'apply before tax' options for coupons - this should be the default core behaviour
2014-11-24 17:24:25 +00:00
Mike Jolley
802e807319
Limit length of password when creating web hook
2014-11-24 13:52:13 +00:00
claudiosmweb
2c48a87086
Fixed WC API Coupons params, closes #6828
2014-11-24 10:37:38 -02:00
claudiosmweb
8eeb6fc204
Removed more some unused code
2014-11-19 22:43:09 -02:00
claudiosmweb
f34cead914
Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax()
2014-11-18 14:45:29 -02:00
Mike Jolley
9701dad114
API - set_fee should support tax_data
...
Closes #6719 cc @maxrice
2014-11-14 13:14:48 +00:00
Mike Jolley
bb1564d6c4
Incorrect variable
...
#6626 cc @claudiosmweb
2014-11-12 14:50:01 +00:00
Mike Jolley
aaca944a85
API - Variation handling for stock data
...
Closes #6626 cc @claudiosmweb
2014-11-12 14:21:29 +00:00
Mike Jolley
7cc71dea44
Allow API edit_product method to update post_name (slug)
...
Closes #6601
2014-10-23 11:58:39 +01:00
claudiosmweb
7219addebc
[2.2] Fixed POST/PUT products attributes values, closes #6600
2014-10-22 18:46:39 -02:00
Mike Jolley
997e7e7910
extra sanitisation for product data
2014-10-22 12:12:25 +01:00
Mike Jolley
fa38b34977
Merge pull request #6564 from krautnerds/rest-api-filter-by-product-cat
...
REST API 2.0: Add possibility to filter products by product_cat
2014-10-17 16:36:44 +01:00
Florian Ludwig
671fcde079
Changed filter name and some code style compliance
2014-10-17 17:34:26 +02:00
Florian Ludwig
29f152633b
RESTAPI 2 Add possibility to filter by product_cat
...
For products it would be nice to be able to filter by product cat.
usage: filter[product_cat]=CATSLUG
2014-10-17 16:53:14 +02:00
Mike Jolley
4234502265
Coupon API: Don't return current timestamp when expiry_date is not set
...
Fixes #6546
2014-10-16 16:59:51 +01:00
Mike Jolley
dfa4f8b63a
Merge pull request #6552 from Aaron3/patch-1
...
Fixed API create_order to allow setting line totals.
2014-10-16 16:53:18 +01:00
Aaron
0b557e175e
Fixed API create_order to allow setting line totals.
...
$order->add_product expects totals without the `line_` prefix. See https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L149
Without this, setting product coupons doesn't work correctly. (The coupon is saved to the order but no discounts are added to the product.)
2014-10-16 13:56:08 +03:00
Florian Ludwig
e1039c127f
Reworked code to be Wordpress code style compliant
2014-10-15 19:43:13 +02:00
Florian Ludwig
3a4cc14f62
Fixed intendation
2014-10-15 00:31:56 +02:00
Florian Ludwig
846c24d119
REST API 2.0 Add possibility to get all customers
...
usage similar to products and orders: filter[limit]=-1
2014-10-15 00:24:16 +02:00
shivapoudel
c60ce1ec93
Absolute path fix for REST API v1
2014-09-21 01:12:54 +05:45
shivapoudel
e6f6bcf368
Absolute path fix for REST API v2
2014-09-21 01:09:20 +05:45
Mike Jolley
a092fce0c2
Ensure product exists in API call
...
Fixes #6288
2014-09-17 17:23:04 +01:00
Max Rice
445aaa78f9
Use `note` for creating/updating order with customer note
...
Fixes #6255
2014-09-15 14:44:11 -04:00
Max Rice
6ccc10b891
Update API docs to Apiary
2014-09-08 18:09:10 -04:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Mike Jolley
c3b2a24933
Merge pull request #6147 from maxrice/feature-3176-unit-tests
...
Add Unit Testing Suite
2014-09-02 09:15:50 +01:00
claudiosmweb
063d1eb349
fixed the access permissions
2014-09-01 12:44:51 -03:00
Max Rice
38dd928f23
[ #3176 ] REST API webhooks endpoint tweaks from unit test
2014-09-01 03:27:19 -04:00
Max Rice
456d10bcec
REST API: allow coupon description in create/edit coupon
2014-08-30 18:43:47 -04:00
Max Rice
53b53114a7
REST API: Fix edit coupon typos
2014-08-30 18:43:26 -04:00
Max Rice
28536f6bd8
REST API: allow adding/updating order meta
...
When creating or updating orders, non-protected scalar meta can now be
set.
2014-08-30 16:17:52 -04:00
Max Rice
ee8bf5bf18
REST API: tweak filter name from #6084
2014-08-30 16:16:51 -04:00
Max Rice
744c3767c3
REST API: ensure consistency in create/edit data formats
...
A client should be able to GET a resource, edit a single item and PUT
it back to the server without having to perform any additional
transformation. This commit ensures all PUT/POST endpoints adhere to
this standard.
2014-08-30 15:50:40 -04:00
Max Rice
e1a542498d
Fix notice introduced in #6084
2014-08-30 15:14:59 -04:00
Max Rice
722f888453
REST API: Add field restriction to new endpoints
2014-08-30 15:05:36 -04:00
Max Rice
ec0f92878e
REST API: Add order statuses endpoint
2014-08-30 15:05:31 -04:00
Max Rice
f87ccd364c
REST API: Mitigate possible JSONP flash attacks
...
see http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
2014-08-30 15:05:25 -04:00
Max Rice
b1b7d6257b
REST API: Fix JSONP content-type
2014-08-30 15:05:12 -04:00
Max Rice
5b68ec6c80
Backport get_avatar_url() fix to v1 REST API
2014-08-30 13:38:45 -04:00
claudiosmweb
e1e1c14ae7
fixed errors while adding variable products with non-taxonomy attributes, closes #6082
2014-08-28 16:25:08 -03:00
Florian Ludwig
3fadc14085
Reduce confusion on using the all_meta filter
2014-08-23 19:07:10 +02:00
Florian Ludwig
82f53037be
Implemented more general filter array
2014-08-23 00:11:03 +02:00
Florian Ludwig
526b677bcf
Extend REST API to access also hidden order item meta
2014-08-22 21:42:28 +02:00
Barry Kooij
94365791af
Changed all use of get_product to wc_get_product
2014-08-19 12:09:29 +02:00
Mike Jolley
ca1cefd112
Merge pull request #6040 from woothemes/feature-order-refunds-api
...
Initial order refunds API
2014-08-18 15:13:57 +01:00
claudiosmweb
4acb90def2
changed api_refund for true
2014-08-18 10:47:56 -03:00
claudiosmweb
288732a4be
added refund amount validation
2014-08-18 10:47:24 -03:00
claudiosmweb
924e0f92c5
updated woocommerce_api_order_refunds_response filter params
2014-08-18 10:42:37 -03:00
claudiosmweb
6081f3b61f
fixed some missing and wrong textdomains
2014-08-15 16:08:43 -03:00
claudiosmweb
2bbcea9de2
orders API for refunds now accepts the api_refund param
2014-08-15 15:58:55 -03:00
claudiosmweb
1294696fcf
created API method for delete order refunds
2014-08-15 15:38:39 -03:00
claudiosmweb
6d4ea6e54e
created initial API method for edit order refunds
2014-08-15 15:28:43 -03:00
claudiosmweb
d02a803e83
added API method for create an order refund
2014-08-15 14:54:19 -03:00
claudiosmweb
b972494ac8
created method API to get individual order refunds
2014-08-15 14:40:34 -03:00
claudiosmweb
f9250fecf2
created API for get order refunds
2014-08-15 14:09:33 -03:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Mike Jolley
dc60cea213
Merge pull request #5992 from adamawesomeface/master
...
maximum ammount for coupon functionality added
2014-08-13 11:41:33 +01:00
claudiosmweb
9da4f13805
fixed the orders api order status query
2014-08-12 15:08:11 -03:00
adamawesomeface
0e22412a7d
maximum ammount for coupon functionality added
2014-08-08 07:38:58 -04:00
Mike Jolley
0b6d8914a3
Merge pull request #5941 from maxrice/feature-issue-5564-rest-api-webhooks
...
Webhooks Implementation
2014-07-31 07:03:02 +01:00
Max Rice
9536d98ade
Add webhooks REST API endpoint
...
Part of #5564
2014-07-30 16:22:58 -04:00
Max Rice
64ddf83184
Add coupon description to REST API coupon response
2014-07-30 16:19:35 -04:00
Mike Jolley
4203ed77e3
Merge pull request #5842 from BFTrick/get-a-job
...
Adding an Employment Easter Egg
2014-07-30 12:19:11 +01:00
Mike Jolley
dd61317395
Merge pull request #5904 from maxrice/rest-api-remove-xml
...
Remove XML response from v2 REST API
2014-07-29 13:20:05 +01:00
Mike Jolley
ae6dceeace
Merge pull request #5908 from maxrice/fix-issue-5423
...
Add item meta to REST API orders response
2014-07-29 13:19:38 +01:00
Mike Jolley
6a092ddd37
Merge pull request #5913 from maxrice/feature-issue-5806
...
Add product categories endpoint to REST API
2014-07-29 13:16:45 +01:00
Mike Jolley
be757abf61
Merge pull request #5916 from maxrice/feature-rest-api-order-notes
...
Improve order notes endpoint
2014-07-29 13:16:38 +01:00
Max Rice
76be03010c
Improve order notes endpoint
...
This commit improves the order notes endpoint with full read/write
capabilities:
* GET /orders/#{order_id}/notes - get all notes for an order
* GET /orders/#{order_id}/notes/#{id} - get single order note
* POST /orders/#{order_id}/notes - create an order note
* PUT /orders/#{order_id}/notes/#{id} - edit an order note
* DELETE /orders/#{order_id}/notes/#{id} - delete an order note
2014-07-28 23:39:07 -04:00
Max Rice
47ccd78b21
Allow using meta_value_num with resource orderby
...
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice
bb651761d0
Add orderby filtering to REST API resource endpoints
...
Adds orderby filtering to all endpoints using default WP orderby
parameters.
Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice
323bcbf848
Add order (desc/asc) to REST API customers endpoint
...
Part of #5720
2014-07-28 19:38:21 -04:00
Max Rice
7f3b67272a
Adhere to WP code standards
2014-07-28 19:34:41 -04:00
Max Rice
80368dc105
Add product categories endpoint to REST API
...
This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}
Closes #5806
2014-07-28 19:01:50 -04:00
Max Rice
7d597a36d0
Add item meta to REST API orders response
...
Fixes #5423
2014-07-28 13:33:03 -04:00
Max Rice
8ff7202c5c
Remove XML response from v2 REST API
2014-07-28 12:16:34 -04:00
Max Rice
2ea771be1f
Fix SQL error in v1 customers response
2014-07-28 12:16:04 -04:00
Mike Jolley
cdc0efed75
Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
...
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Max Rice
698f6499f6
Add REST API create/edit order actions & filters
...
Part of #4160
2014-07-27 23:58:01 -04:00
Max Rice
5be324a543
Add edit order REST API method
...
Part of #4160
2014-07-27 23:36:32 -04:00
Max Rice
315787e3d6
Refactor create order method
...
* handle errors through WC_API_Exception
* abstract order item creation
Part of #4160
2014-07-27 23:35:50 -04:00
Max Rice
d919ed9d64
Tweak REST API order response
...
* se WC_Order::get_order_currency() for currency
* use new WC_Order::get_subtotal() for subtotal
* add order item ID and rate ID to tax lines
Part of #4160
2014-07-27 23:33:35 -04:00
Max Rice
cca54879fa
Fix misc docblocks
2014-07-27 23:23:59 -04:00
Max Rice
c9342d6344
Add WC_API_Exception class
...
Part of #4160
2014-07-27 23:20:48 -04:00
Patrick Rauland
568c0102ae
adding get_a_job method
2014-07-14 09:18:07 -06:00
Max Rice
95aab694e4
API: implement order creation
...
part of #4160
2014-07-12 21:44:49 -04:00
Max Rice
13e2495390
API: implement order deletion
...
part of #4160
2014-07-12 18:09:21 -04:00
Max Rice
54c019dd62
re-add v1 API classes
2014-07-12 17:49:43 -04:00
Coen Jacobs
86a4add087
Merge remote-tracking branch 'upstream/master' into order-factory-refactor
...
Conflicts:
includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
claudiosmweb
49882740bb
added the possibility to remove the product images by API
2014-06-30 18:02:31 -03:00
claudiosmweb
617b299d8f
improved the image upload to get images by ID and save the _product_image_gallery
2014-06-30 17:58:27 -03:00
claudiosmweb
d3a2307d18
improved the image upload
2014-06-30 17:31:25 -03:00
claudiosmweb
584af93aba
fixed a variable override when create new variable productions
2014-06-30 16:36:13 -03:00
claudiosmweb
d3dc018ffc
fixed the wc_product_has_unique_sku() function name
2014-06-27 16:03:25 -03:00
claudiosmweb
0a4b6387e6
introduces the wp_product_has_unique_sku() function
2014-06-27 15:59:24 -03:00
claudiosmweb
e208770265
fixed some coding standards
2014-06-26 16:55:24 -03:00
claudiosmweb
84be699374
added new product API actions
2014-06-26 16:51:03 -03:00
claudiosmweb
fe53733be0
added method to save the variations in product API
2014-06-26 16:47:54 -03:00
claudiosmweb
bdd5f9d0f6
created API methods to save product categories and tags
2014-06-25 16:38:51 -03:00
claudiosmweb
2dffa85353
fixed the downloads method
2014-06-25 16:27:24 -03:00
claudiosmweb
dce4a4eed6
added all product options for save in WC_API_Products::save_product_meta() method
2014-06-25 16:20:28 -03:00
claudiosmweb
28713a760c
improved the product price in product API handler
2014-06-25 13:27:48 -03:00
claudiosmweb
101169322c
added method to save product attributes in products API
2014-06-24 18:32:37 -03:00
claudiosmweb
ea9fb154a9
fixed/improved the PUT method in product API
2014-06-24 17:34:06 -03:00
claudiosmweb
bec77c12d8
added PUT method in product API
2014-06-24 17:28:36 -03:00
claudiosmweb
78f461f835
fixed the save product method in API
2014-06-24 17:17:51 -03:00
claudiosmweb
49c80e6732
fixed the create producs method in products API
2014-06-24 17:16:36 -03:00
claudiosmweb
52a5ae9086
added delete method in products API
2014-06-24 17:16:08 -03:00
claudiosmweb
0971b87f30
added @kloon's WC_API_Products::save_product_meta() method
2014-06-24 15:30:11 -03:00
claudiosmweb
f583f94885
improved the save product images methods in product API
2014-06-24 15:23:21 -03:00
claudiosmweb
d7e49ea801
created methods to save product images by API
2014-06-24 15:19:34 -03:00
claudiosmweb
5ca7516139
initial create product API method
2014-06-24 14:42:10 -03:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
e0a74fffc4
implement is_status()
2014-05-30 17:43:21 +01:00
Mike Jolley
ae50495dfd
Update API functions
2014-05-30 16:34:59 +01:00
Mike Jolley
79a26d7f8e
Merge pull request #5584 from claudiosmweb/4594-feature-customer-api-available-downloads
...
Add Customer API endpoint for get available downloads
2014-05-28 19:32:20 +01:00
claudiosmweb
d2329914a6
created customer api endpoint to get the customer available downloads, closes #4594
2014-05-28 14:06:46 -03:00
claudiosmweb
a69e947c4d
added post_status filter in WC API, closes #4857
2014-05-28 13:29:37 -03:00
Coen Jacobs
3ae4e54b04
Empty return value should be null
2014-05-26 12:51:03 +02:00
Coen Jacobs
cfd8600960
Use regex instead of DOM module to get avatar URL
2014-05-26 12:48:21 +02:00
Paul Kilmurray
b7a8a0bd20
Update class-wc-api-orders.php
...
The line_subtotal_tax should be included in the line_items. It doesn't seem to have a helper method like the others?
2014-05-22 13:34:39 +08:00
Mike Jolley
08996096f2
Merge pull request #5033 from claudiosmweb/customers_api_4162
...
Customers API / Methods PUT/POST/DELETE
2014-05-15 12:58:23 +01:00
Mike Jolley
ddafd636f2
Merge pull request #5044 from kloon/coupons_api_put_post_delete
...
Coupons API PUT POST DELETE
2014-05-15 12:57:08 +01:00
Mike Jolley
b7643e469b
Merge pull request #4763 from claudiosmweb/remove_the_content_filter
...
Removed all the_content filter in favor to wpautop() and do_shortcode()
2014-05-15 10:52:26 +01:00
Mike Jolley
1b6e2a5980
Merge pull request #5125 from sparkweb/master
...
[2.2] REST API: Allow ordering on the resource level
2014-05-15 10:50:32 +01:00
Max Rice
a007f2e8d7
Fix fee/coupon lines typo in REST API order response
2014-05-02 15:26:30 -04:00
Max Rice
fe5d757970
Update REST API documentation link
2014-04-10 12:27:27 -04:00
Mike Jolley
08b94299d3
Remove post_parent so grouped simple products are also returned
...
Fixes #5178
2014-04-07 10:19:13 +01:00
Mike Jolley
021a889e66
Merge pull request #5277 from maxrice/rest-api-fix-5207
...
Allow query string fallback for REST API SSL authentication
2014-04-07 10:13:55 +01:00
Max Rice
09451855f2
Allow query string fallback for REST API SSL auth
...
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.
Fixes #5207
2014-04-04 14:24:14 -04:00
Max Rice
1dd24501f5
Remove unnecessary OAuth code
...
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-04 14:22:06 -04:00
Max Rice
1c437bdeb8
API: double-encode percent symbols when normalizing parameters
2014-04-03 16:56:26 -04:00
Max Rice
853520d40b
API: normalize both key and value before calculating OAuth signature
...
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-03 16:11:51 -04:00
Max Rice
9f463e4644
code standards
2014-04-03 16:10:08 -04:00
sparkweb
1280d6d6ff
Removing ordering code from orders
...
This code got moved to the resources file.
2014-03-13 11:14:08 -06:00
sparkweb
d40f773e77
REST API: allow ordering change
2014-03-13 11:08:36 -06:00
sparkweb
25900f9976
Allow reordering of the order list with the REST api
2014-03-12 23:47:42 -06:00
Gerhard
0463516020
Remove duplicate coupon type check
2014-03-06 10:08:27 +02:00
Gerhard
3b0c541acf
Send http status 201 when coupon created.
2014-03-06 09:59:28 +02:00
claudiosmweb
2adacc742a
fixed the status for create new customers via api
2014-03-06 04:28:42 -03:00
Gerhard
ae85e64b2b
Edit coupon, save product ID's in comma separates values as per core
2014-03-06 08:52:34 +02:00
Gerhard
518a8cffb2
Save product ID's as comma separated values like core does it
2014-03-06 08:51:00 +02:00
Gerhard
1b1c13349b
Do not url decode the body data, just add it. See https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html
2014-03-06 08:42:05 +02:00
Gerhard
8e0a267a84
Remove implode function
2014-03-06 08:10:08 +02:00
Gerhard
d5171854a1
edit coupon, change comma separated data structures to arrays
2014-03-06 07:59:10 +02:00
Gerhard
6ddbc7e6ee
Change comma separate data to arrays
2014-03-06 07:55:49 +02:00
Gerhard
88d6e064fa
Add missing bracket
2014-03-06 07:50:05 +02:00
Gerhard
7e73f621c8
Add coupon type check when adding new coupon
2014-03-06 07:49:01 +02:00
Gerhard
d278896d31
Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types.
2014-03-06 07:45:32 +02:00
claudiosmweb
e6755972b0
fixed the inline documentation
2014-03-05 14:24:47 -03:00
Gerhard
8fdfbdf3ba
Add missing wpdb global
2014-03-05 09:42:12 +02:00
Gerhard
3bdf3e50cf
Add check for duplicate coupon code when updating coupon code
2014-03-05 09:34:01 +02:00
Gerhard
86ac5de9cf
Add filter to coupon code
2014-03-05 09:30:11 +02:00
Gerhard
db2de990e7
Modify duplicate coupon error code
2014-03-05 09:28:59 +02:00
Gerhard
f2f7e09143
Change duplicate coupon error code
2014-03-05 09:28:03 +02:00
Gerhard
826085698b
Validate coupon types
2014-03-05 09:25:11 +02:00
Gerhard
7dc7353e60
Coding standards & cleaning of data before saving
2014-03-05 08:07:42 +02:00
Gerhard
268ef2faab
Check if coupon was updated when using wp_update_post and return error if not
2014-03-05 08:03:10 +02:00
Gerhard
a2ecd3885c
edit_coupon REST API look for type and not discount_type
2014-03-05 07:59:27 +02:00
Gerhard
fa6eb98535
Rest API edit_coupon function
2014-03-05 07:43:13 +02:00
Gerhard
42d42ae751
REST API create_coupons function
2014-03-05 07:28:05 +02:00
claudiosmweb
344a0d92c6
improved the validation for WC_API_Customers::edit_customer() and WC_API_Customers::delete_customer()
2014-03-04 23:42:36 -03:00
claudiosmweb
f2d8912bc1
fixed coding standards in includes/api/class-wc-api-customers.php
2014-03-04 22:48:54 -03:00
claudiosmweb
3b4b73851b
added missing textdomain
2014-03-04 18:05:55 -03:00
claudiosmweb
41a5b147e9
improved the WP_Error's ids in customers api
2014-03-04 18:05:22 -03:00
Gerhard
a53b93283c
Fix create coupon api method
2014-03-04 17:05:38 +02:00
Gerhard
38f701e90a
Better coupon create error messages
2014-03-04 15:50:31 +02:00
Gerhard
70fb3c004d
Create coupons via API
2014-03-04 15:44:33 +02:00
claudiosmweb
ee907b0c20
removed sanitize_text_field() function in favor to wc_clean() function in customers api
2014-03-04 02:48:17 -03:00
claudiosmweb
68b8c9f020
improved the customer api creation/edition
2014-03-03 23:01:07 -03:00
claudiosmweb
4204a86022
added method do delete customers via api
2014-03-03 22:16:54 -03:00
claudiosmweb
6c4f82665e
added the woocommerce_api_edit_customer action in WC_API_Customers::edit_customer()
2014-03-03 22:09:50 -03:00
claudiosmweb
906273c20b
added the woocommerce_api_create_customer action in WC_API_Customers::create_customer()
2014-03-03 22:09:05 -03:00
claudiosmweb
f54909f715
added method to edit customer via api
2014-03-03 22:07:28 -03:00
claudiosmweb
5b95346825
fixed the customer creation via api
2014-03-03 21:41:53 -03:00
claudiosmweb
371665cd79
added route to create customers via api
2014-03-03 21:13:44 -03:00
claudiosmweb
14b63541a3
Added the WC_API_Server::urldecode_deep() method
...
To make it possible to get a more complex data structure.
Example:
array( 'data' => array( 'key' => 'value' ), 'data2' => array( 'key' => 'value' ) )
2014-03-03 21:09:11 -03:00
claudiosmweb
584bfda988
added method to create users with the api
2014-03-03 21:04:40 -03:00
Mike Jolley
439b982b48
Merge pull request #4954 from kloon/tweak_rest_api_index_pretty_permalinks
...
Add permalinks_enabled data to API index
2014-02-27 12:03:19 +00:00
Gerhard
dc65c525d0
Add permalinks_enabled data to API index
2014-02-26 07:50:51 +02:00
Max Rice
7b67161d2f
Return request relative link headers, fixes #4925
...
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 10:24:36 +01:00
Coen Jacobs
5094d2174a
Merge pull request #4847 from kloon/master
...
Add email lookup to customers endpoint, try at #4845
2014-02-18 10:47:50 +01:00
Gerhard
a614e79ad4
update @since to 2.2
2014-02-17 19:17:40 +02:00
Gerhard
4fe3dd28fb
Move email lookup to own endpoint customers/email/<email>
2014-02-17 19:13:01 +02:00
Gerhard
5c18fab238
Add back absint to validate function for customers by id endpoint
2014-02-17 16:44:08 +02:00
Gerhard
a7e659b6fa
Review customer/<email> endpoint, move into own function
2014-02-17 16:39:56 +02:00
Gerhard
88425e64cc
Add email lookup to customers endpoint, try at 4845
2014-02-17 15:19:11 +02:00
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00
Gerhard
30c1486aa7
REST API OAuth signature issue fix when using filter params
2014-02-14 13:26:31 +02:00
claudiosmweb
02053f2d5c
removed all the_content filter in favor to wpautop() and do_shortcode() functions
2014-02-13 02:49:30 -02:00
Gregory K
d401432428
sort_callback_params() phpdoc fix
2014-02-11 09:22:43 -05:00
claudiosmweb
bcf88933c6
fixed docblock for WC_API_Customers::query_customers, closes #4666
2014-02-07 15:39:40 -02:00
Max Rice
0b2cc1df28
Fix potential fatal error when fetching orders via API
2014-01-30 15:41:21 -05:00
Max Rice
f17a52fd3a
Make customer data for orders endpoint consistent for guest orders
...
Simply returning ‘guest’ for the customer property changes the data
type of the response from a dictionary to string which is bad for
clients that should be able to always expect a dictionary. This commit
fixes that by using the same dictionary structure as registered
customer orders, but excluding fields which aren’t applicable. Clients
can determine guest vs. registered customer orders by inspecting the
value of customer ID, which is 0 for guest orders.
2014-01-23 16:38:08 -05:00
Max Rice
37c9434492
API: Add top sellers endpoint
...
Part of #4055
2014-01-21 14:53:47 -05:00
Max Rice
49bacc6be3
Tweak code formatting
2014-01-21 14:07:22 -05:00
Max Rice
233a0a706d
API: Add customer count to each period for sales report
...
Part of #4055
2014-01-20 21:41:52 -05:00
Max Rice
7f677300eb
API: Add feature image src to product response
2014-01-13 22:14:20 -05:00
Max Rice
8b6145691c
API: Add item price to order line items response
2014-01-13 22:14:08 -05:00