Comments (2)
Answer:
I think it should be work
Open react-native-woocommerce-api.js in node_modules\react-native-woocommerce-api\lib\
then goto line _195 (getOAuth().authorize function) and change:
params.qs = this._getOAuth().authorize({
url: url,
method: method
});
to
params.qs = this._getOAuth().authorize({
url: url + '?' + this.join(data, '&'),
method: method
});
how to use it ?
wooApi
.get("products", {per_page: 100})
.then((products) => {
console.log("products", products);
})
.catch((error) => {
console.log(error);
});
from react-native-woocommerce-api.
Thanks for fixing the issue. Please can you create a pull request for the fix? So i can test and merge to the main branch.
from react-native-woocommerce-api.
Related Issues (20)
- Won't work over http
- While trying to resolve module `react-native-woocommerce-api`
- Syntax Error "Identifier 'WooCommerceAPI' has already been declared"
- Use WpAPI HOT 1
- Issue with params and subscriptions HOT 10
- How to get total page count in result? HOT 4
- CORS Error HOT 1
- .catch never catching
- undefined is not an object (evaluating '_WooAPI.WooAPI.get') HOT 1
- i am getting error : woocommerce_rest_authentication_error HOT 1
- App device CORS Error HOT 3
- Login API HOT 1
- woocommerce_rest_authentication_error HOT 1
- Invalid signature - provided signature does not match HOT 3
- Custom headers
- TypeScript HOT 3
- How can I add query string params to the request? HOT 1
- woocommerce_rest_authentication_error HOT 19
- Error catching issue HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-woocommerce-api.