soundcloud

Genres and types filters not working in Soundcloud API?

你说的曾经没有我的故事 提交于 2019-12-03 22:17:32
This link does not return tracks from the rock genre as described in this post: Using the genres filter on Soundcloud API Is this something that recently broke? I'm using the Python SDK and have tried various calls to get the filter to work, and currently I can only get the created_at filter to be respected. Here is the python code: track_page=client.get('/tracks', created_at={'from':'2013-01-01 00:00:00','to':'2013-01-07 00:00:00'}, genre='house', types=['recording','remix','original'], limit=limit_size, offset=offset) The relevant documentation is here i just found a solution, add q='*' in

Specify starting time of track within URL for SoundCloud?

喜欢而已 提交于 2019-12-03 22:05:30
Anyone know if there's a way to generate URL's for SoundCloud tracks that specify a start time for the song? I'm looking for a way to force playback of streams at a certain time in the stream without having to do any processing on my end via the API. Misha Reyzlin As @bsz correctly noticed, we have released a way of specifying start time on the sound when linking to it, append #t=12s to the sound's URL to start it at 12th second, etc. If the audio is long enough, you can use (e.g.) #t=2h10m12s . They seem to have added a #t option but not sure if you can also give an stop time: https:/

How can I do a /resolve with the Soundcloud Javascript SDK?

ぐ巨炮叔叔 提交于 2019-12-03 21:51:23
I would like a user of my app to paste in a Soundcloud track URL to a <input> field press a submit <button> have a function return the track's id So far the only way I know how to do a /resolve is via command line's curl command as demonstrated here http://developers.soundcloud.com/docs/api/reference#resolve . Is there a way to do this via a Javascript function? e.g. SC.resolve(trackURL, id, function(id, error){}); All curl does is an HTTP request. JavaScript is definitely able to do an HTTP request, most common way of doing that is by using XMLHttpRequest also known as AJAX. Popular libraries

Getting a SoundCloud API client ID

天大地大妈咪最大 提交于 2019-12-03 15:31:39
Encountered a problem accessing my tracks from browser. Usually i type this link in my browser to access downloadable tracks: http://api.soundcloud.com/tracks/294324164/download?client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea But now i can not access it anymore, probably the client id is changed. How can i obtain a new client id? Thanks. Simple.. Go to any tracks that you can download on soundcloud, press f12 and look at networks tab, click download and it will show you something like https://api.soundcloud.com/tracks/322109493/download?client_id=2t9loNQH90kzJcsFCODdigxfp325aq4z&oauth_token=2

Error trying to access a iframe in JavaScript

旧街凉风 提交于 2019-12-03 15:22:46
I'm trying to call the function SC.Widget from this little API: http://developers.soundcloud.com/docs/api/html5-widget , but I receive this error message in the Chrome inspector and I am stuck there. Unsafe JavaScript attempt to access frame with URL file://localhost/Users/maxwell/Desktop/test/test.html from frame withURL http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F67825032&auto_play=false&show_artwork=true&color=ff7700 . The frame requesting access has a protocol of 'http', the frame being accessed has a protocol of 'file'. Protocols must match. <body>

Soundcloud iOS API - playing sound from link

余生长醉 提交于 2019-12-03 14:55:23
问题 I want to play a public sound in my app using the Soundcloud API. After some searchs around the web, I find a way to do it, but I can't make my code works. Here's the code I tried to play a sound : NSString *publicTrackUrlString = @"https://soundcloud.com/miroslav-osipovic/the-cat-empire-the-lost-song"; NSString *urlString = [NSString stringWithFormat:@"%@?client_id=64a52bb31abd2ec73f8adda86358cfbf", publicTrackUrlString]; [SCRequest performMethod:SCRequestMethodGET onResource:[NSURL

SoundCloud track.stream_url not working for some of the tracks

六月ゝ 毕业季﹏ 提交于 2019-12-03 13:26:26
I noticed that on some tracks on soundcloud stream_url points to 404 - page not found. The track is set as streamable, but still stream url is not working. Here is an example: http://api.soundcloud.com/tracks/129894766.json?consumer_key=KEY returns streamable: true, embeddable_by: "all" but: stream_url: "http://api.soundcloud.com/tracks/129894766/stream?consumer_key=KEY" is not working. Has anyone experienced this and maybe have some solution? The reason the stream URL isn't working for certain tracks is that they use different streaming protocols (RTMP / HLS). SoundCloud is in the process of

Soundcloud 500x500 artwork by default

好久不见. 提交于 2019-12-03 09:22:57
问题 if($song->artwork_url != null) { $song_artwork = $song->artwork_url; } else { $song_artwork = 'img/no_art.png'; } By default soundcloud pulls -large (which is 100x100) How do i make it pull (t500x500) so i can have a higher res image? 回答1: Just replace large.jpg by t500x500.jpg in the filename, like so: $song_artwork = str_replace('large.jpg', 't500x500.jpg', $song->artwork_url); In fact, they support a number of different formats for different requests: t500x500: 500px×500px crop: 400px

Soundcloud OAuth2 API: Getting invalid_scope error after user connection

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to implement Soundcloud connect and having a weird issue. First thing I do is send my users to https://soundcloud.com/connect?client_id=MY_CLIENT_ID&redirect_uri=http://myredirecturl.example.com&state=RANDOM_STRING&display=page&response_type=code&scope=email When users connect they get redirected to http://myredirecturl.example.com?error=invalid_scope&error_description=The+requested+scope+is+invalid%2C+unknown%2C+or+malformed.&state=RANDOM_STRING The same happens if I use scope=* . However, if I use scope=non-expiring it lets me

Access Soundcloud Charts with API

走远了吗. 提交于 2019-12-03 08:51:47
问题 Is there an way to access the new charts https://soundcloud.com/charts/top (top 50) with the soundcloud api? Or is there an other way? Maybe with an crawl with php or something? 回答1: To found parameters that you can use with HTTP API Request, you can do this: Go to "https://soundcloud.com/charts/" and open Console (F12 on Chrome). Go inside Network Tab of Console and Refresh page (F5). Clear Console. Now for example if you want know parameters for retrive "TOP 50 - Dance & EDM": Change values