Soundcloud AS3 wrapper
This is a Soundcloud API WRAPPER written in AS3. It uses the robotlegs framework with as3 signals.
Installation
The simplest way to use it is to download the SoundcloudAPI.swc and drop it into the lib directory of your project. Otherwise I would checkout it out and compile your own .swc
Usage
Better examples to come.
If you're familiar with Robotlegs then posting a track is as simple as doing this:
-
In yourAppContext add credentials
soundcloudBus.startupRequest.dispatch( new CredentialVO( SoundcloudCredentials.CLIENT_ID, SoundcloudCredentials.CLIENT_SECRET, SoundcloudCredentials.REDIRECT_URI ));
-
In a mediator, Post a new track
//Inject the signal bus
[Inject]
public var soundcloudBus:SoundcloudSignalBus; soundcloudBus.postTrackRequest.dispatch( trackVO ); -
In a command, handle post response
[Inject]
public var soundcloudBus:SoundcloudSignalBus; soundcloudBus.postTrackResponse.add( onResult_postTrack );
TODO
- Write better documentation
- Test soundcloud oauth refresh token
- Continue fleshing out the API