Radio Reference API

Status
Not open for further replies.

VA3DBJ

Ontario Database Admin
Database Admin
Joined
Dec 19, 2002
Messages
503
Location
Durham Region, Ontario
Not sure if this is possible, but I have noticed that my API script, being registered using http://www.va3dbj.ca, does not work now, since I have started using the https://www.va3dbj.ca since enabling the SSL. SSL/https seems the preferred method now, since all the browsers are now forcing secured connections.

It does still work when someone connects to http.

Do I have to re-register for another code for https and code my sites using both? or can it be changed to work for both http and https, or just operate using just the domain itself?
 

VA3DBJ

Ontario Database Admin
Database Admin
Joined
Dec 19, 2002
Messages
503
Location
Durham Region, Ontario
Yes, I am trying to show content for CP Rail.

http://www.va3dbj.ca/scanner-radio/railway/
https://www.va3dbj.ca/scanner-radio/railway/

I have included the code at the bottom of the page as an example. You can see the info via the http, but not the secured https.

<script language="JavaScript"
src="http://api.radioreference.com/js/?key=########&scid=49884">
</script>

It think when I registered the domain, way back in the day, it was registered as http://, as that was pretty much the norm at the time. Not sure if I should have registered just with www.va3dbj.ca, or even if the registration page would have even taken it.
 
Last edited:

blantonl

Founder and CEO
Staff member
Super Moderator
Joined
Dec 9, 2000
Messages
11,095
Location
San Antonio, Whitefish, New Orleans
Try changing the code to

Code:
<script language="JavaScript"
src="https://api.radioreference.com/js/?key=########&scid=49884">
</script>

If you are serving https from your site, call the API via https from RadioReference
 

VA3DBJ

Ontario Database Admin
Database Admin
Joined
Dec 19, 2002
Messages
503
Location
Durham Region, Ontario
D'oh. Why didn't I think of that. I had though the script was specific in nature. That fixed it.

Thanks Lindsay.
 

ChrisABQ

...
Joined
Jul 12, 2016
Messages
773
Location
Murder-Querque, NM
I added the live scanner to my site abqscanner.com, I first had requested it as http and it worked. I then moved the site to https and it stopped. I requested another code for https and it still does not function with SSL. It's the only page on the site that is not secure.
 

blantonl

Founder and CEO
Staff member
Super Moderator
Joined
Dec 9, 2000
Messages
11,095
Location
San Antonio, Whitefish, New Orleans
I added the live scanner to my site abqscanner.com, I first had requested it as http and it worked. I then moved the site to https and it stopped. I requested another code for https and it still does not function with SSL. It's the only page on the site that is not secure.

You aren't calling the embed API code with https, you are calling it with http

I updated the code on the feed management page to default to https now.

You need to call https://api.broadcastify.com

Check your feed management page technical tab for the correct code.
 

ChrisABQ

...
Joined
Jul 12, 2016
Messages
773
Location
Murder-Querque, NM
Thanks Lindsay. I had previously seen a blank box in that area rather than the player. I updated it but the SSL notification on the page is still a yellow triangle (on Chrome), but it is functional.
Thanks
 
Status
Not open for further replies.
Top