- Home /
Can we upload a soundfile on soundcloud using unity 3-D?
I have recorded a sound using unity now i want to upload it on the sound cloud for publicizing it , so is it possible to do this task in unity?
or if there'z some other mean to do it then please let me know that?
Answer by frarees · May 14, 2013 at 08:40 AM
Check out the WWW class. As long as SoundCloud offers an API (check out here), you can write your own wrapper to communicate with that service.
indeed, notice Bunny's very useful post here
http://answers.unity3d.com/questions/443240/using-www-to-simply-post-a-slab-of-text-ala-json.html
Yes, it should be possible since they use a plain POST request (they could have used PUT which the WWW class doesn't support). The main problem is to adapt their PHP interface to plain a post request. They use curl on php which takes json parameters to form the actual post. I think the best way is to intercept the traffic with wireshark to see how such a post should look like.
Usually the best bet is to use their JavaScript interface, but it uses a flash swf to do the actual communication ^^.
Your answer