These are chat archives for claudiosmweb/woocommerce-pagseguro

27th
Jun 2016
Jair Garcia
@jairgarcia
Jun 27 2016 18:22
Hi, i want make a request with http
```
```
```
var WooCommerceAPI = require( 'woocommerce-api' );
var WooCommerce = new WooCommerceAPI({
    url: $homeURL,
    wpAPI: true,
    version: 'wc/v1',
    consumerKey: encodeURIComponent('ck_324897c17ad388a325a0bd45a91160e8b62c2de8'),
    consumerSecret: encodeURIComponent('cs_79a46d281830490cf329d5f883c45ba453f132f0')
});
```
but the code is 401 (Unauthorized)
what i do, i appreciate any help