We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flickr
#1
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).

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)
[-] The following 1 user Likes litdev's post:
  • Nonki Takahashi
Reply


Messages In This Thread
Flickr - by litdev - 09-02-2023, 07:33 PM
RE: Flickr - by jrmrhrb00 - 10-11-2023, 06:58 PM
RE: Flickr - by litdev - 10-11-2023, 09:05 PM
RE: Flickr - by litdev - 10-11-2023, 09:37 PM
RE: Flickr - by jrmrhrb00 - 10-12-2023, 07:49 PM
RE: Flickr - by litdev - 10-12-2023, 08:09 PM
RE: Flickr - by jrmrhrb00 - 10-12-2023, 09:56 PM
RE: Flickr - by litdev - 10-12-2023, 10:10 PM
RE: Flickr - by jrmrhrb00 - 10-12-2023, 10:14 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)