Skip to content

Category: Questions

How to Display plain text of api result ( noob question )

I am completely new to api. I want to display the plain text response of the output of this: https://vurl.com/api.php?url=https://google.com to my webpage html but it’s not working. My code: Thanks Answer Not really sure why you’re mixing javascript with your php code. Nevertheless, this is the ap…

Get total sums for last 3, 7, 30 and 90 days with moment

I have an array of orders with created_at and total fields, where created_at is the date the order was created and total is what the user paid. Now I want to get the sum of the totals for four different date intervals, last 3 days, 7 days, 30 days and 90 days, how can I use moment to check if