Jump to content
HTRN

API CALL FROM WEB PAGE...

Recommended Posts

Posted (edited)

I have been looking, and found a few indications of what I may be trying to do but unfortunately none of the examples fit.

I am doing an API call from a website.  This call doesn't point me to a file but uses my query string to pull a CSV file that then downloads.  While I understand how to "GO GET" a file from a web page,  I don't know how I would script this in AUTOIT. 

 

Fortunately there are some demos I can share to show what I mean.  Instead of opening a browser, pasting the string and getting the file.   I would like to do it all from inside the script. 

here is a URL that "Builds"a csv
https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo&datatype=csv

Is there a way to pull that csv and put it specific directory using only AUTOIT, instead of having to open a browser, pasting the url and getting the download?(Which is what I do now)

 

 

 

 

 

 

 

Edited by HTRN

Share this post


Link to post
Share on other sites

InetGet

InetGet("https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo&datatype=csv", @ScriptDir & "\DemoData.csv")

 

Share this post


Link to post
Share on other sites

Once I saw your statement above, I realize how OVER complicated I was making it.   

InetGet ( "URL", "filename" [, options = 0 [, background = 0]] )

It was right there the whole time but I just didnt try it,  URL, Filename.....  

Thank you very much and I will be LITERALLY testing every help file example as written BEFORE I come back for help.

:think:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...