Forum Academy Marketplace Showcase Pricing Features

API Connector Plugin - Connecting iTunes API

:grinning: Hi everyone!

Question: Would anyone know how to use the API Connector Plugin to connect the iTunes API, with details in this documentation?

…In order to get things like song names, artists, and album artwork. I already successfully connected it with the iTunes Plugin, now I’m tasked with doing it this specific way with the API Connector plugin too :slightly_smiling_face:.

Thank you so much for your help with this!

This is as far as I’ve gotten:

My plugin might help you get started

Just click ‘Plugin Code’ then view the API calls

1 Like

Hi @lantzgould! :slightly_smiling_face:

Thanks. I’m specifically being tasked with connecting the iTunes API through the API Connector Plugin, using the provided documentation.

Using the iTunes Plugin is definitely the fastest and easiest way to do it though. Thanks for your app. I’m being tasked with connecting to the API a range of ways to demonstrate the variation in approaches.

You wouldn’t happen to know how to use the API Connector, would you?

@lantzgould just saw your last sentence about the API calls!

What a smart suggestion! I’m going to give that a try :blush:

1 Like

If you need additional fields, you can add the remainder by structuring it like so:[term]&country=[country]&media=[media]&entity=[entity] etc.

In API’s, the question mark dictates the first parameter in the api call. Adding additional parameters are denoted by using ampersands.

@lantzgould you’re a life saver! It worked! Super smart. :tada:

You just helped me out big time.

I have one last little part of this project to finish, but this was one thing I was really stuck on. Thank you.

1 Like

Glad I could help!

@lantzgould The very last step is to turn it into a private/unpublished plugin and use the plugin in an app (to demonstrate a 3rd and final way to connect to the iTunes API).

I’ve successfully created the plugin, based on the needed iTunes API calls, and it’s in my Bubble account’s plugin section.

Do you know how to get the plugin into an app (that is on someone else’s account) that I’m doing the demo in?

To share a private plugin:

Go to the plugin > settings > application to authorize > enter the app name > authorize

This will allow the shared application to use the plugin just as if they had downloaded it. They won’t have access to edit/modify the plugin in any way.

Just followed those steps. Fingers crossed it worked and shows up in the app. Checking now!

I forgot to add that in the shared app, they’ll need to go to the plugin store. Should show at the top of the list with the tag of ‘private’ in green.

Searching through the plugin store now, but I can’t seem to find it :frowning:

Refresh your editor

Still not coming up. But I feel like we’re getting closer to the solution.

If you can solve this, you would really be the hero of the night! lol

Do you think it has something to do with these settings:

It may also have something to do with how I entered the application name into the private permission section. I’m going to try a few variations.

Couple things:

  1. Make sure you set your plugin to private
  2. Make sure you ‘submit a new version’
  3. Make sure the app you wanna share with has the app name in the settings

After this, refresh the editor of the app your share with. Then visit the plugin store and it should be in there.

It popped up! Now I just have to get it the data from the API into a dynamic expression in the app to demonstrate that it’s connected.

Do you know how to search for it as a data source? It’s not showing up in the drop down.

I have your plugin on the left, the API Connector version, and the self built one. But the self built one that I just installed to the app won’t come up as a data source:

In your plugin, for the api call, ensure it’s set to ‘data’ as opposed to action. Action is only used if you want to use it in a workflow.

It’s set to data. This is a tough one. Any other reasons why it might not pop up?

(And this really drives home the point of why your plugin is the best approach! If I didn’t have to demonstrate it, I definitely wouldn’t be doing it this tough way. Or maybe that’s the point of the exercise)

1 Like