Forums » General Discussion Search

"Old" requests not working anymore New Reply

Author Post
Posts: 16
Registered: Sep 29, 2011

Hi, I'm currently creating a prototype in objective-C, using the Analyze data. I was using some code I found here : http://melka.one.free.fr/blog/ It's very usefull as it provides some full working code for track upload, and Analyzed data extraction and storage. It is using the V3 of the Analyzer and worked really well, despite there were a few memory leaks. Thus, until last week, it's not working any more. I cannot upload a song, neither can I get the data from Analyze API. Even if I try to execute some request in my browser, like http://developer.echonest.com/api/get_beats?api_key=2J12S2G*6V&md5=d468a78ad7c5c9ad0ce83956db41923b&version=3, I'll get a "502 Bad Gateway" error.

Did you change something on your server, and stop to support the V3 requests (I haven't seen any information about that on your website), or should I check if something has changed in my internet connexion?

Thanks for your help !

Posts: 113
Registered: Sep 05, 2008

Hi R40ul, first see this: http://developer.echonest.com/forums/thread/280

Also, please know that melka's library is very old -- the official EN objective C wrapper is libechonest, which you can find on our downloads page: http://developer.echonest.com/client_libraries.html

Posts: 16
Registered: Sep 29, 2011

Hi bwhitman, Thanks for your answer. I knew the lib I was using was very old, but as it was convenient and working, I thought it was adapted to my needs (make a proto ASAP, focused on the data rather on how to get it). I planned to update the library later, but it seems that I'm going to have to do this now (and I already start to do it). Thanks again.

Posts: 38
Registered: Feb 22, 2011

R40ul,

See Brian's reply for getting connected to the v4 API from Objective-C. Once you do, you'll notice there is no longer a "get_beats" API. Instead, the track API contains three simple calls: "analyze", "upload" and "profile". The track/profile result includes an "analysis_url". Use this to pull the complete track analysis in JSON format. For more details, see Analyze Documentation.

David

Reply to this Thread

You must log in to post a reply.