Now Playing with app

i’m trying to create a now playing were an api key
updates only the album image on one of my screens say screen1 for example

now here are my blocks

a friend of mine told me steps
to do this but can’t figure out the bits were it says not done in brackets?

when Screen1.Initialize
set Web1.URL to “URL To My API KEY”
call Web1.Get(done)

set decodedResponse to call Web1.JSONTextDecode responseContent(done)

set decodedResponse to call Web1.JSONTextDecode responseContent(not done)

set albumInfo to look up in pairs key “album” pairs dataObject notFound “No album info”(not done)

if someone could help that would would be brill

jays_coolvibes (1).aia (1.2 MB)

You might edit this​:wink:

huh, i might edit this?

putting blocks randomly together does not really help

A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun

well i were told to do screen1.initialize
set web1.url to my api key

then call web1.get

were you put the crosses a friend told me to do that
for a now playing!!!

i’v looked on here can’t find anywhere that has a nowplaying

you are calling it twic

the if statement expects true or false
a JSON decoded response content will not work there

same for response code, a response code usually is 200 for success or 400 for error

Taifun

yea web1 and web2.get

There is only web1 in your screenshot

Taifun

not here

You are not calling web2.GET anywhere so it will never trigger web2.GOT TEXT

1 Like

This post was flagged by the community and is temporarily hidden.

It‘s obvious that you don‘t have the slightest notion what you are doing. You just throw blocks together that don‘t make any sense. People want to help and you just show „bad vibes“ . You really need to learn the basics of coding first. Exampe: you call web2.get within the „when web2 got text event“. How should this work?

Sorry for the bad vibes, but I’m trying to collect now playing(album art) via the API that I’ve got already

And chatgpt told me to put these blocks together