Woocommerce rest api v3 401 error while http.post

So for v3 I have used angular http and Cordova advance http but on both now I am getting 401 error and tried all the method http.useBasicAuth added headers while post used base64 encode but always getting same error.

How to resolve please help