Need some help and/or ideas. I am calling an API. Get back a JSON object of Products with nested arrays - 25 products in all. I can only process 10 on the first pass and display the data in FB Messenger. The subscriber will have a NEXT button. they press the NEXT button I need to get the next 10 products.
I have this working fine when data coming from MYSQL - just use offset and query again plus I store the total number of products. How would I do that with the JSON object? Do I save it to process later? Do I re call the API to get the data again and just skip to the 11th one?
Actually now that I am typing this I could do the same as the SQL table. I get the total # rows and then use an offset of 10. I could do the same here - make a call to the API everytime and then move thru the JSON object.
Any other suggestions?