Keijo Hyttinen
a16b1bbac4
API: thousand and decimal separators corrected
2016-01-19 20:24:26 +02:00
Mike Jolley
ad11042afd
[2.4] Don't unforce SSL on secure blogs
...
@claudiosmweb can you check this and cherry pick if good to go?
Fixes #10029
2016-01-08 11:27:18 +00:00
Claudio Sanches
f53af82c34
[API] Show API version in index
2015-12-07 14:54:29 -02:00
Claudio Sanches
40b210a144
[API] Get taxes method
2015-10-07 19:00:36 -03:00
Claudio Sanches
8da7369088
Just avoid deprecated notices for #8848
2015-08-17 14:04:12 -03:00
Claudio Sanches
a12552dbf1
[API] Removed $HTTP_RAW_POST_DATA in favor of php://input, closes #8848
2015-08-17 12:51:19 -03:00
Paul Kilmurray
a030ab52cb
Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
...
For the same reasons [outlined here](https://github.com/WP-API/WP-API/issues/964 ), ie: Backbone uses X-HTTP-Method-Override.
2015-06-23 20:42:39 +08:00
Claudio Sanches
c9c3be6d3e
[API] Use settings to auto generate passwords or not, closes #8342
2015-06-10 10:56:25 -03:00
Florian Ludwig
994e4104e9
Fixed pagination headers for customer REST API
...
The old code didn’t ever work in my opinion, because WP_User_Query has
no attributes page and total_pages
2015-06-05 19:28:58 +02:00
Claudio Sanches
4a83200a81
Fixed coding standards
2015-04-24 15:53:54 -03:00
Bryce
0d656dfa23
fix spacing
2015-02-01 14:24:29 +07:00
Bryce
a582481c13
Extra currency options for API
...
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Claudio Sanches
05a011376d
Updated the api docs url
2015-01-30 13:32:23 -02:00
Mike Jolley
2584041700
wc_price enhancements
...
- Renamed some 2.3 methods for consistency
- Allow more args to be passed to wc_price to control output
- Filter wc_price args which Closes #7188
- wc_get_price_decimal_separator function
- wc_get_price_thousand_separator function
- wc_get_price_decimals function
2015-01-23 11:50:32 +00:00
Claudio Sanches
18b55a429e
[API] Added price_num_decimals to the index, closes #7149
2015-01-19 16:09:44 -02:00
Florian Ludwig
9bbc9789ce
REST: Fix pagination headers for Customers response
2015-01-04 02:05:23 +01: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
shivapoudel
e6f6bcf368
Absolute path fix for REST API v2
2014-09-21 01:09:20 +05:45
Max Rice
6ccc10b891
Update API docs to Apiary
2014-09-08 18:09:10 -04:00
Max Rice
ec0f92878e
REST API: Add order statuses endpoint
2014-08-30 15:05:31 -04:00
Max Rice
8ff7202c5c
Remove XML response from v2 REST API
2014-07-28 12:16:34 -04: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
Max Rice
fe5d757970
Update REST API documentation link
2014-04-10 12:27:27 -04: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
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
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
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00
Gregory K
d401432428
sort_callback_params() phpdoc fix
2014-02-11 09:22:43 -05:00
Gerhard
a5acde8bbd
Add WooCommerce version to API index route
2013-12-10 12:24:53 +02:00
Max Rice
8389ff23e5
Fix duplicate "Link:" content with pagination link headers
2013-12-08 17:38:27 -05:00
Max Rice
1a9933cd88
Fix authentication error message typos
2013-12-08 17:37:55 -05:00
Max Rice
898adbb32d
Change money_format to currency_format for API index
2013-12-08 17:37:30 -05:00
Coen Jacobs
c1a439eb99
Formatting functions woocommerce to wc refactor
2013-11-25 14:34:21 +01:00
Max Rice
2af47c6699
Fix incorrect total results number for pagination headers
2013-11-23 16:37:28 -05:00
Max Rice
a0cb0cbb4e
Remove schema link
2013-11-23 14:41:21 -05:00
Max Rice
d7c77d1ab7
API: Add XML generation
...
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.
Part of #4165
2013-11-22 03:41:32 -05:00
Scott Basgaard
922fa990a5
esc_attr() all the things.
2013-11-20 20:11:59 +01:00
Gerhard
970ae40004
Remove function and use global woocommerce_timezone_string function instead
2013-11-20 16:16:04 +02:00
Gerhard
4afff14de1
Remove unused variable from function
2013-11-20 07:57:48 +02:00
Gerhard
df5929093d
REST API - Fix fatal error due to missing get_timezone function
2013-11-20 07:55:28 +02:00
Max Rice
001ce0fc3e
Add option to enable/disable API
...
Part of #4055
2013-11-19 03:01:46 -05:00
Max Rice
490dc758a9
Update pagination args/headers
...
Part of #4055
2013-11-18 21:06:45 -05:00
Max Rice
87ff36db12
Properly handle datetimes
...
Part of #4055
2013-11-18 16:47:38 -05:00
Max Rice
5ab8e085ad
Update /coupons/code endpoint
...
Part of #4055
2013-11-14 13:56:05 -05:00
Max Rice
ec55e43c24
Update API index response
...
Part of #4055
2013-11-14 13:55:45 -05:00
Max Rice
00c65b9cc3
Add site timezone to API index
2013-11-10 19:30:59 -05:00