You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep having this issue when I try my woocommerce api with this code form my Home.ts Ionic4 Angular7
**```
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import * as WC from 'woocommerce-api';
I don't understand the problem also when I try my API on Postman, it gives me
**```
{
"code": "rest_no_route",
"data": {
"status": 404
},
"message": "No route was found matching the URL and request method"
als**o in my worpress I installed the plugins "JSON API" , "JSON API User" , "WP REST API - Meta Endpoints" and "WP REST API Controller" but the same errors .. Please help me . any Ideas ??
The text was updated successfully, but these errors were encountered:
I keep having this issue when I try my woocommerce api with this code form my Home.ts Ionic4 Angular7
**```
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import * as WC from 'woocommerce-api';
@component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
Woocommerce: any;
products: any[];
constructor(public navCtrl: NavController) {
this.Woocommerce = WC({
url: '',
Consumerkey: '',
ConsumerSecret: ''
});
this.Woocommerce.getAsyn("products").then((data) => {
console.log(JSON.parse(data.body));
this.products = JSON.parse(data.body).products;
}, (err) => {
console.log(err)
})
}
}
als**o in my worpress I installed the plugins "JSON API" , "JSON API User" , "WP REST API - Meta Endpoints" and "WP REST API Controller" but the same errors .. Please help me . any Ideas ??
The text was updated successfully, but these errors were encountered: