I have previously fixed issues with Small Basic Flickr command, due to changes in flickr api.
I had a look at it again as it doesn't work and determined that this time the api key has expired. I got a new api key and updated LDUtilities.FixFlickr. It seems to need to download the file rather than just load with ImageList, but the following works (Beta 1.2.25.0).
I had a look at it again as it doesn't work and determined that this time the api key has expired. I got a new api key and updated LDUtilities.FixFlickr. It seems to need to download the file rather than just load with ImageList, but the following works (Beta 1.2.25.0).
Code:
LDNetwork.SetSSL()
flickr = LDUtilities.FixFlickr()
imageURL = Flickr.GetRandomPicture("Car")
tmpFile = File.GetTemporaryFilePath()
LDNetwork.DownloadFile(tmpFile,imageURL)
image = ImageList.LoadImage(tmpFile)
File.DeleteFile(tmpFile)
GraphicsWindow.DrawResizedImage(image,0,0,GraphicsWindow.Width,GraphicsWindow.Height)