wordpress-query-posts icon indicating copy to clipboard operation
wordpress-query-posts copied to clipboard

Switch back to `node-wpapi`?

Open ryelle opened this issue 7 years ago • 4 comments

¯_(ツ)_/¯

Need to actually play around with an isomorphic app.

ryelle avatar Mar 08 '17 20:03 ryelle

I'm curious why it use wordpress-rest-api-oauth-1 since v1.1.0 instead of node-wpapi, do you have plan to switch it back to node-wpapi on next version ?

SastraNababan avatar Oct 22 '17 16:10 SastraNababan

@SastraNababan At the time, it was because the API was in beta, and some endpoints were changing (like the filter parameter, which was removed). node-wpapi didn't update immediately, and had a much more custom implementation. wordpress-rest-api just let me pass through a URL + query params directly, so I was able to react quickly in case the endpoints changed. It was also easier to test responses using something like Insomnia.

Do you have a specific use case where node-wpapi is necessary?

ryelle avatar Oct 23 '17 21:10 ryelle

I have a few issues with react native. Should I submit new issue ?

SastraNababan avatar Oct 25 '17 13:10 SastraNababan

Yeah, new issues for any problems you've encountered would be great. Thanks 🙂

ryelle avatar Oct 25 '17 15:10 ryelle