StreamingSoundtracks
VIP
Subscribe to become a VIP member of SST!

· Request More Often
· Unshared Requests
· Request Countdown Timer
· Request Ready Indicator
· Your Request History
· Access To The VIP Forum
· Add More Favorites

:: Click Here To Upgrade ::

:: Give VIP as a Gift ::

Listen Live!

Follow Us

Donation Meter


Make donations with PayPal!
Monthly Goal:
$500.00

Need:
$187.62

10 Donations:
$312.38

StreamingSoundtracks.com (Jul-4) paul4opus $15.00
Death.FM (Jul-2) SeclusionSolution $6.66
StreamingSoundtracks.com (Jul-2) MorG $5.00
Death.FM (Jul-2) JERIC $1.00
StreamingSoundtracks.com (Jul-2) JERIC $1.00
1980s.FM (Jul-2) JERIC $1.00
Adagio.FM (Jul-2) JERIC $1.00
Entranced.FM (Jul-2) JERIC $1.00
Death.FM (Jul-1) osiris $10.00
Entranced.FM (Jul-1) Seclu $270.72


 


Last Month's Donors
Entranced.FM (Jun-23) Anonymous $25.00
Death.FM (Jun-13) shru $50.00
1980s.FM (Jun-9) shru $10.00
StreamingSoundtracks.com (Jun-7) Shru $50.00
Death.FM (Jun-2) osiris $10.00
Entranced.FM (Jun-2) SoNiA $25.00




Search

 


New feature: Developer API
Goto page 1, 2  Next
 
Post new topic   Reply to topic    StreamingSoundtracks.com Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Muriel
Rear Admiral (Ambassador)
Rear Admiral (Ambassador)


Joined: Jan 25, 2003
Posts: 712
Location: Norway

PostPosted: Tue Jul 08, 2008 2:05 pm    Post subject: New feature: Developer API Reply with quote

Some of you have done a great job developing gadgets and widgets and whatnot. I've recently developed a new feature for all the websites in the 24seven.fm network that should make your development a lot easier.
You will no longer need to parse the websites to get the queue, history and what's playing. I've put a webservice on all the sites that give you all the information you need in one go.
Those of you who are not software developers or have no idea what this is all about need not worry. This is technical stuff Wink


The webservice definition can be found here:

http://www.streamingsoundtracks.com/soap/FM24seven.wsdl

The webservice can be found on all the sites using /soap/FM24seven.wsdl


Methods provided:

GetCurrentlyPlaying(boolean GetCover)

This method returns an object with all the information about the currently playing track. It's the same information that can be found in playing.php. If you call the method with the GetCover parameter set to "true" the webservice will return the binary data for the currently playing song. "false" puts NULL in the binary data, but you still have the URL to the cover in the message.

GetQueue(int NoOfEntries, boolean GetCover)
GetHistory(int NoOfEntries, boolean GetCover)

Here you will get an array of an object that contains information about the songs in the queue or history. The information in the object is the same as can be found on the Queue/Played page.
The NoOfEntries parameter lets you control how many entries is returned. The maximum number of entries returned is 20.
The GetCover parameter behaves in the same way as for GetCurrentlyPlaying().


We would appreciate if you would limit your requests to the webservice. Use it only when a song has changed. The GetCurrentlyPlaying() includes the length of the currently playing track (in milliseconds), when the track started playing (dateTime) and what the time was on the server when you invoked the webservice. That should make it easy enough to calculate a countdown timer so that you know when the track has finished playing.
_________________
"Anything one man can imagine,
other men can make real."
- Jules Verne
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SiriusCreations
Rear Admiral (Ambassador)
Rear Admiral (Ambassador)


Joined: Aug 26, 2007
Posts: 4419
Location: Rotterdam, The Netherlands

PostPosted: Tue Jul 08, 2008 4:11 pm    Post subject: Reply with quote

Very nice feature!

Maybe I will use it sometime in something I do not know what for application yet. Smile

Thank you.
_________________
That's the beauty of music. They can't take that away from you. (Andy Dufresne)
Sirius' Concerts
NUTs & RATs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Freetrack
Cadet 1
Cadet 1


Joined: Sep 02, 2008
Posts: 2

PostPosted: Thu Dec 18, 2008 2:33 pm    Post subject: Some suggestions Reply with quote

First of all: Thanks for the API. I was able to satisfy my basic needs...

Here some suggestions you may consider the next time you build / change the API:

1. CurrentlyPlaying.CoverArt is defined as a byte array, but contains a base64 encoded string
2. All text properties (and links) are html escaped. i.e.: & instead of &, > instead of >
3. The QueueEntry class is missing the Artist property?
4. All DateTime's should be in UTC, someone may use them for i.e. time synch
5. the time CurrentlyPlaying.PlayStart does not match the real timestamp ~ 15 seconds off --> i guess this has some lawful reasons (to prevent someone to rip the stream to a harddisk)

I do not have a http space so I can't upload the little program i wrote.
Back to top
View user's profile Send private message
SiriusCreations
Rear Admiral (Ambassador)
Rear Admiral (Ambassador)


Joined: Aug 26, 2007
Posts: 4419
Location: Rotterdam, The Netherlands

PostPosted: Thu Dec 18, 2008 2:59 pm    Post subject: Reply with quote

Freetrack I just sent you a Private Message
_________________
That's the beauty of music. They can't take that away from you. (Andy Dufresne)
Sirius' Concerts
NUTs & RATs
Back to top
View user's profile Send private message Send e-mail Visit poster's website
molossus
Rear Admiral (Ambassador)
Rear Admiral (Ambassador)


Joined: Aug 09, 2005
Posts: 3327
Location: Warsaw & once in a blue moon Szczecin (Poland)

PostPosted: Thu Dec 18, 2008 3:06 pm    Post subject: Re: Some suggestions Reply with quote

Freetrack wrote:

3. The QueueEntry class is missing the Artist property?


Hello Freetrack! Welcome to SST Forums!

As far as I know it's programmed this way because of RIAA regulations.
You can read more about it for example in this old thread: http://www.streamingsoundtracks.com/modules.php?name=Forums&file=viewtopic&t=2999
_________________
<i>"The piano keys are black and white,
But they sound like a million colors in your mind"</i>
(from "Spider's Web" by <a href="http://katiemelua.com/music/#KatieMelua">Katie Melua</a>)

Avatar is from work of art by Drew Struzan
Back to top
View user's profile Send private message Send e-mail
Techo
Lieutenant
Lieutenant


Joined: Feb 12, 2004
Posts: 183

PostPosted: Thu Dec 18, 2008 5:46 pm    Post subject: Reply with quote

Chandler, this is great news. I wonder why I never found this thread before! Thanks to freetrack for the revival.

Currently I've been parsing the now playing php header, and every time a little change is made to the layout I have to do some recoding. On avg once every few months or as it happens twice in a week on rare occasions. And yes, the app only refetches "what's playing" after the internal timer runs out e.g. "00:00".

I've PMed the little util I've created to a few users but have been way out of touch recently so no one has the upgraded parsing version! doh! even I didn't run it for a few weeks, which is way out of the norm for me.


If anyone's curious here's the app. I've been using it myself for close to two years now. It alerts you when your requested track is on and you can sort and search faves and tracks you've requested. If interested, please PM. As I'd like to keep track of who's using it , to send updates to.

http://img213.imageshack.us/img213/5300/logsspy3.jpg
http://img301.imageshack.us/img301/1863/popupalert3an.jpg
http://img522.imageshack.us/img522/962/sstutilformmenuym6.jpg
http://img123.imageshack.us/img123/9313/sstutilmainformplusoptica1.jpg
http://img238.imageshack.us/img238/9453/sstutilform4ox1.jpg
Back to top
View user's profile Send private message
Freetrack
Cadet 1
Cadet 1


Joined: Sep 02, 2008
Posts: 2

PostPosted: Fri Dec 19, 2008 3:49 am    Post subject: Thanks to SiriusCreations Reply with quote

He showed me the thread!
Your application seems to be exactly what I was looking for!
Back to top
View user's profile Send private message
stefan_nl
Lieutenant
Lieutenant


Joined: Aug 07, 2005
Posts: 248
Location: The Netherlands

PostPosted: Thu Nov 04, 2010 3:52 am    Post subject: Reply with quote

As of a few days the 'GetCurrentlyPlaying' method returns an empty 'CoverLink' entity.

Is this something that should be fixed after the install of the new server?
_________________
The Hitchhiker's Guide to the Galaxy on Flying: The knack of throwing yourself at the ground and miss.
24SeVeN.FM Gadgets
Back to top
View user's profile Send private message Visit poster's website
JERIC
Fleet Admiral (Proprietor)
Fleet Admiral (Proprietor)


Joined: Feb 12, 2002
Posts: 4941
Location: Richmond, VA

PostPosted: Sun Nov 14, 2010 12:41 pm    Post subject: Reply with quote

I'm not sure how it is pulling that info. If you can email me at jeric@(this site) with how it pulls this info, I can try to track down what changed. The images are still in the same locations though.
_________________
"Are you not entertained? Are you not entertained? Is this not why you are here?." -Maximus

Please do not PM me. Use email, Feedback or Contact Us links.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Muriel
Rear Admiral (Ambassador)
Rear Admiral (Ambassador)


Joined: Jan 25, 2003
Posts: 712
Location: Norway

PostPosted: Thu Dec 02, 2010 7:27 am    Post subject: Reply with quote

stefan_nl wrote:
As of a few days the 'GetCurrentlyPlaying' method returns an empty 'CoverLink' entity.

Is this something that should be fixed after the install of the new server?


I've made a change to the SOAP service. Can you try again now to see if it works like it used to?
_________________
"Anything one man can imagine,
other men can make real."
- Jules Verne
Back to top
View user's profile Send private message Send e-mail Visit poster's website
stefan_nl
Lieutenant
Lieutenant


Joined: Aug 07, 2005
Posts: 248
Location: The Netherlands

PostPosted: Thu Dec 02, 2010 10:28 am    Post subject: Reply with quote

Chandler wrote:
I've made a change to the SOAP service. Can you try again now to see if it works like it used to?


The image path is back in the result.
Works like a charm.
_________________
The Hitchhiker's Guide to the Galaxy on Flying: The knack of throwing yourself at the ground and miss.
24SeVeN.FM Gadgets
Back to top
View user's profile Send private message Visit poster's website
Luther_III
Commander
Commander


Joined: Jun 20, 2005
Posts: 860
Location: New Orleans

PostPosted: Thu Dec 02, 2010 12:30 pm    Post subject: Reply with quote

Works like a charm, indeed. My iGoogle gadget is now fixed!

Great work, gang!

Mr. Green
_________________
"If I were not a physicist, I would probably be a musician. I often think in music. I live my daydreams in music. I see my life in terms of music.... I get most joy in life out of music."
--Albert Einstein
Back to top
View user's profile Send private message
masked_platypus
Vice Admiral (Moderator)
Vice Admiral (Moderator)


Joined: Jul 19, 2007
Posts: 1179
Location: Chartres, France

PostPosted: Fri Dec 03, 2010 2:19 am    Post subject: Reply with quote

Yeah to Chandler! Great job!
_________________
There is no problem that can't be solve without any solution
Back to top
View user's profile Send private message Send e-mail Visit poster's website
stefan_nl
Lieutenant
Lieutenant


Joined: Aug 07, 2005
Posts: 248
Location: The Netherlands

PostPosted: Mon Aug 22, 2011 2:43 am    Post subject: Reply with quote

The SOAP service is again not returning any image data.

Can this be fixed again?
_________________
The Hitchhiker's Guide to the Galaxy on Flying: The knack of throwing yourself at the ground and miss.
24SeVeN.FM Gadgets
Back to top
View user's profile Send private message Visit poster's website
megadith
Lieutenant Commander
Lieutenant Commander


Joined: May 06, 2002
Posts: 265
Location: Arlington, VA

PostPosted: Thu Oct 27, 2011 5:49 pm    Post subject: Reply with quote

Does anyone know if there's a WinPhone app yet? if not, i'm thinking of writing one for this and the rest of 24seven site. Wanted to know if there was an app already and if the web service was still working.

thanks!
_________________
Grab a beer, don't cost nuttin...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    StreamingSoundtracks.com Forum Index -> Announcements All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Forums ©
Copyright © 2001-2026 24seven.FM, LLC. All rights reserved.
The 24seven.FM Network — Community Supported Internet Radio.

[ About Us ] | [ Contact ] | [ Privacy Policy ] | [ Terms of Service ]

Page Generation: 0 Seconds