soundcloud

soundcloud search api ignoring duration filter?

天涯浪子 提交于 2019-12-01 20:40:17
问题 I'm experimenting a bit with the soundcloud api... Cool stuff, however: It looks like when I try to apply a filter to search for tracks, the api ignores the duration... See code snipper below. The purpose is to search for (10) trance tracks in the last 2 months, ordered by popularity, that have a duration of more than an hour.... As far as I know, the duration has to be specified in milliseconds (hence the * 100) Btw, The soundcloud object is SC, initialised with my API key Am I doing

How to create SoundCloud playlist using PHP wrapper

谁说胖子不能爱 提交于 2019-12-01 13:02:31
I am trying to create a playlist using the njasm PHP wrapper, which can be viewed here . The reason I am using this wrapper is because it allows for direct user login. And for my purposes, this is a requirement. Let me start by saying that I am able to connect to the API; before attempting to create a playlist, I do a few get requests for certain info. Right now I am trying this $response = $facade->post('/playlists', $prepaired_post_array)->request(); $prepaired_post_array contains [0] = playlist[title]=LA Sun [1] = &playlist[tracks][][id]=102981743 [2] = &playlist[tracks][][id]=93248225 [3]

SoundCloud Api redirect confusion and Audio Api Streams

喜夏-厌秋 提交于 2019-12-01 13:01:42
I am attempting to make a request to the SoundCloud API. Then when I get the response I set the stream_url as the source of an < audio > element. This works: http://matthiasdv.org/beta/ But not always... When you search for 'Bonobo' for example, you can play the first few tracks without any issue. But when you try to play 'London Grammar - Hey Now (Bonobo remix)' - the 7th result - it won't play. It throws no errors whatsoever. I've been tinkering around with Chrome's webdev-tools and under the network tab I see the requests being made. I found that tracks that DO play have a short Request Url

Replace filename mp3 when downloading

怎甘沉沦 提交于 2019-12-01 12:51:50
问题 How to get auto file name when do downloading? so when I download file, and file name itself automatic save with name song/artist, ex: from name ( amgdgapwgd.mp3) to ( Artist - Song title.mp3 ). 回答1: What language are you trying to do this in? Also, if the file returns downloadable equal to true, the file should have the proper name. Example: https://soundcloud.com/msmrsounds/ms-mr-hurricane-chvrches-remix From the JSON: "download_url": "https://api.soundcloud.com/tracks/90787841/download"

How to let users login to my site using SoundCloud

最后都变了- 提交于 2019-12-01 12:04:14
I want to let users authenticate via SoundCloud for my ASP.NET MVC 4 project. Since there is no .NET SDK, I wrote a custom OAuth2Client to handle the authentication. After adding the client to my AuthConfig.cs , it appropriately showed up as an option to login. The problem is, when I click on the button to login, it always returns Login Failure. Unsuccessful login with service. without even asking me to login in SoundCloud. What is the problem? I implemented a very similar client for GitHub and it worked with no problems. Here is my client: public class SoundCloudOAuth2Client : OAuth2Client {

Soundcloud API: how to play only a part of a track?

南楼画角 提交于 2019-12-01 11:54:29
问题 For an upcoming project I am investigating the possibility to play only a certain length (for example 20s) of a track, using the Soundcloud API. Could anybody indicate me if that is possible, or should a different track with that limited length be created separately? Many thanks ! Maarten (WebForDreams) 回答1: There are a few ways you can do this. Are you going to be using the JavaScript SDK or the player widget? For the player widget, you can just use seekTo(). If you're using the JavaScript

How to create SoundCloud playlist using PHP wrapper

南楼画角 提交于 2019-12-01 10:57:07
问题 I am trying to create a playlist using the njasm PHP wrapper, which can be viewed here. The reason I am using this wrapper is because it allows for direct user login. And for my purposes, this is a requirement. Let me start by saying that I am able to connect to the API; before attempting to create a playlist, I do a few get requests for certain info. Right now I am trying this $response = $facade->post('/playlists', $prepaired_post_array)->request(); $prepaired_post_array contains [0] =

How to let users login to my site using SoundCloud

风流意气都作罢 提交于 2019-12-01 09:51:52
问题 I want to let users authenticate via SoundCloud for my ASP.NET MVC 4 project. Since there is no .NET SDK, I wrote a custom OAuth2Client to handle the authentication. After adding the client to my AuthConfig.cs , it appropriately showed up as an option to login. The problem is, when I click on the button to login, it always returns Login Failure. Unsuccessful login with service. without even asking me to login in SoundCloud. What is the problem? I implemented a very similar client for GitHub

Soundcloud 403 error for a range of IPs

久未见 提交于 2019-12-01 09:13:43
We have several servers, with exactly the same configurations (CentOS 6 + Plesk). On all our servers using an IP range beginning by 51 until 149, when we test this command in the terminal being connected to one of these servers: curl -v https://api.soundcloud.com/v1/playlists/29604379.json?consumer_key=xxxxxxxxxx (with a real key instead of "xxxx") it always responds with: HTTP/1.1 403 Forbidden Content-Type: text/html Date: Tue, 19 Jan 2016 14:15:37 GMT Server: ECS (pox/A5DD) Content-Length: 345 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Soundcloud 403 error for a range of IPs

喜欢而已 提交于 2019-12-01 07:10:41
问题 We have several servers, with exactly the same configurations (CentOS 6 + Plesk). On all our servers using an IP range beginning by 51 until 149, when we test this command in the terminal being connected to one of these servers: curl -v https://api.soundcloud.com/v1/playlists/29604379.json?consumer_key=xxxxxxxxxx (with a real key instead of "xxxx") it always responds with: HTTP/1.1 403 Forbidden Content-Type: text/html Date: Tue, 19 Jan 2016 14:15:37 GMT Server: ECS (pox/A5DD) Content-Length: