Нужна http авторизация для запросов к woocommerce rest api, читаю вот эту доку –
woothemes.github.io/woocommerce-rest-api-docs/#aut... – ничего не могу понять, что требуется, объясните на пальцах пожалуйста, интересует пункт Over HTTP:
Generating an OAuth signature
1) Set the HTTP method for the request:
GET
2) Set your base request URI – this is the full request URI without query string parameters – and URL encode according to RFC 3986:
www.example.com/wc-api/v1/orders
when encoded:
http%3A%2F%2Fwww.example.com%2Fwc-api%2Fv1%2Forders
3) Collect and normalize your query string parameters. This includes all oauth_* parameters except for the signature. Parameters should be normalized by URL encoding according to RFC 3986 (rawurlencode in PHP) and percent(%) characters should be double-encoded (e.g. % becomes %25.
4) Sort the parameters in byte-order (uksort( $params, 'strcmp' ) in PHP)
5) Join each parameter with an encoded equals sign (%3D):
oauth_signature_method%3DHMAC-SHA1
6) Join each parameter key/value with an encoded ampersand (%26):
oauth_consumer_key%3Dabc123%26oauth_signature_method%3DHMAC-SHA1
7) Form the string to sign by joining the HTTP method, encoded base request URI, and encoded parameter string with an unencoded ampersand symbol (&):
GET&http%3A%2F%2Fwww.example.com%2Fwc-api%2Fv1%2Forders&oauth_consumer_key%3Dabc123%26oauth_signature_method%3DHMAC-SHA1
8) Generate the signature using the string to key and your consumer secret key