Forum Discussion
HELP NEEDED: GETING DATA FROM API
Hi badluckmath
You can create two parametrs FromDate and ToDate for the same and use it in the example to pull
for example
= csv.Dcoument(web.Contents("https://hq.appsflyer.com/export/com.greatapp/partners_report/v5?api_token=xxxx&from="&FromDate&"&to="&ToDate&"&media_source=googleadwords_int"))
- badluckmath5 years agoFrequent Visitor
I need the date in the format yyyy-mm-dd, how would this be?
FORMAT(TODAY(), "YYYY-MM-DD") is not working for me, see how it looks:
"....from=2020-07-01&to="& FORMAT(TODAY(), "YYYY-MM-DD")&"&additional_fields=keyword_id,store_reinstall,...."
- Fowmy5 years agoSuper User
@badluckmath
Replace the date range text with the following text. If you created a parameter. replace #date(2020,7,1) with the parameter name= ".... from=" & Date.ToText(#date(2020,7,1),"YYYY-MM-DD")& "&to=" & Date.ToText(Date.From(DateTime.FixedLocalNow()), "YYYY-MM-DD")
Result
.... from-2020-07-01-to-2020-09-20________________________
If my answer was helpful, consider Accepting it as the solution to help other members find it
Click the Thumbs-Up icon if you like this answer 🙂