Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
por_página no es un tipo de entero. API REST de Woocommerce Node.js

Estoy usando Woocommerce rest api con react native. Estoy tratando de obtener una lista de todas las categorías, pero obtengo un máximo de 10 elementos.

 const WooCommerce = new WooCommerceRestApi({url: "xxxxxs", // Your store URL ssl: true, consumerKey: "xxxxx", // Your consumer secret consumerSecret: "xxxxxx", // Your consumer secret wpAPI: true, // Enable the WP REST API integration version: "wc/v3", // WooCommerce WP REST API version queryStringAuth: true,}) const categories = await WooCommerce.get( "products/categories?per_page=50") console.log(categories)

Estoy recibiendo esta respuesta:

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Necesitas pasar parámetros de esta manera:

 ... parameters = {} parameters[per_page] = 1 categories = await WooCommerce.get("products/categories/", params=parameters)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!