SCAPI_Core 1.0.1.40

There is a newer version of this package available.
See the version list below for details.
dotnet add package SCAPI_Core --version 1.0.1.40                
NuGet\Install-Package SCAPI_Core -Version 1.0.1.40                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SCAPI_Core" Version="1.0.1.40" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SCAPI_Core --version 1.0.1.40                
#r "nuget: SCAPI_Core, 1.0.1.40"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SCAPI_Core as a Cake Addin
#addin nuget:?package=SCAPI_Core&version=1.0.1.40

// Install SCAPI_Core as a Cake Tool
#tool nuget:?package=SCAPI_Core&version=1.0.1.40                

SoundCloud C# API

Find SCAPI on Nuget as SCAPI_Core

NuGet Badge

Soundcloud API Changes

due to SoundCloud making changes to the API the authentication now needs to change. You need to use the /connect flow to be able to use this. If you have a working callback url you can just use the existing connect flow. If you have a non working callback url you can still use a browser.

https://api.soundcloud.com/connect?client_id={clientId}&redirect_uri={redirectUrl-UrlEncoded}&response_type=code&scope=&state=randomstring

Fill in the blanks aside from scope and state then visit the above link in a web browser to generate a connect id. After clicking the Connect and Continue it will use your redirect URl for the callback. In the web browser you can see the generated ID in the address bar if the callback fails

SCAPI.xml

this file is needed to persist the session token and store information on the refresh time. Storing the connect id and session token is needed to continue the /connect flow, without this you would have to reconnect for every request. You choose the location for this file with the Authenticate method and you can view its contents.

Commands

Authentication

SoundCloudClient.Authenticate(clientId, clientSecret, connectCode, storagePath);
Me Commands
UserObject me = Me.GetMe();
List<StreamTracks> activities = Me.GetMyActivities(10);
List<StreamTracks> activitiesAllOwn = Me.GetMyActivitiesAllOwn(10);
List<StreamTracks> activitiesTracks = Me.GetMyActivitiesTracks(10);
List<TrackObject> myLikedTracks = Me.GetMyLikedTracks(10);
List<PlaylistObject> myLikedPlaylists = Me.GetMyLikedPlaylists(10);
List<UserObject> followings = Me.GetMyFolowings(10);
List<TrackObject> tracks = Me.GetMyFolowingsTracks(10);
StatusResultObject followUserStatus = Me.FollowUser(Id);
StatusResultObject unFollowUserStatus = Me.UnFollowUser(Id);
List<UserObject> followers = Me.GetMyFollowers(10);
List<TrackObject> myTracks = Me.GetMyTracks(10);
List<PlaylistObject> myPlaylists = Me.GetMyPlaylists(10);
Search Commands
List<SearchObject> tracksQuery = Track.SearchTracks(testQuery, 10);
List<SearchObject> playlistsQuery = Playlist.SearchPlaylists(testQuery, 10);
List<SearchObject> usersQuery = User.SearchUsers(testQuery, 10);
Playlist Commands
PlaylistObject newPlaylist = Playlist.CreatePlaylist("Test Playlist", "Test Description", "private", new int[] { trackId, trackId });
PlaylistObject foundPlaylist = Playlist.GetPlaylist(Id);
StatusResultObject deleteStatus1 = Playlist.DeletePlaylist(Id);
PlaylistObject updatedPlaylist = Playlist.UpdatePlaylist(Id, "Test Updated Title", "Test Updated Description", "private", new int?[] { trackId, trackId });
PlaylistObject replacedPlaylist = Playlist.ReplacePlaylist(Id, "Test Replace Title", "Test Replace Description", "private", new int[] { trackId, trackId });
List<TrackObject> tracksFromPlaylist = Playlist.GetPlaylistTracks(Id);
List<UserObject> usersFromPlaylist = Playlist.GetPlaylistReposters(Id, 10);
Playlist.AddPlaylistToLikes(Id));
Playlist.RemovePlaylistFromLikes(Id));
Playlist.RepostPlaylist(Id)
Playlist.DeleteRepostedPlaylist(Id)
todo: PlaylistObject resolved =  Playlist.Resolve(id);
User Commands
UserObject foundUser = User.GetUser(Id);
List<UserObject> usersFollowers = User.GetFollowers(Id, 10);
List<UserObject> usersFollowings = User.GetFollowings(Id, 10);
List<PlaylistObject> usersPlaylists = User.GetPlaylists(Id, 10);
List<TrackObject> usersTracks = User.GetTracks(Id, 10);
List<WebProfileObject> usersWebProfiles = User.GetWebProfiles(Id, 10);
List<TrackObject> usersLikedTracks = User.GetLikedTracks(Id, 10);
List<PlaylistObject> usersLikedPlaylists = User.GetLikedPlaylists(Id, 10);
todo: UserObject resolved =  User.Resolve(id);
Track Commands
todo: Track.CreateTrack();
TrackObject t = Track.GetTrack(Id);
todo: Track.UpdateTrack();
todo: Track.DeleteTrack();
StreamUrlsObject streamUrlsFromTrack = Track.GetTrackStreamUrls(Id);
List<TrackCommentObject> commentsFromTrack = Track.GetTrackComments(Id, 10);
AddCommentResultObject result = Track.AddTrackComment(Id, "Test Comment", 10);
List<UserObject> usersWhoLikedTrack = Track.GetTrackLikers(Id, 10);
List<UserObject> usersWhoRepostedTrack = Track.GetTrackReposters(Id, 10);
List<TrackObject> relatedTracks = Track.GetTrackRelated(Id, 10);
Track.AddTrackToLikes(Id);
Track.RemoveTrackFromLikes(Id));
Track.RepostTrack(Id)
Track.DeleteRepostedTrack(Id)
todo: TrackObject resolved =  Track.Resolve(id);
DownloadResult result = Track
.GetTrack(Id)
.DownloadTo(@"\\Desktop\\");
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1.47 350 2/1/2023
1.0.1.46 305 1/11/2023
1.0.1.44 310 1/10/2023
1.0.1.43 304 1/9/2023
1.0.1.41 318 1/7/2023
1.0.1.40 302 1/7/2023
1.0.1.39 320 1/4/2023
1.0.1.38 839 11/14/2019
1.0.1.37 528 11/13/2019
1.0.1.36 539 11/13/2019
1.0.1.35 1,002 8/2/2017
1.0.1.34 908 8/2/2017
1.0.1.33 896 7/30/2017
1.0.1.32 921 7/29/2017
1.0.1.31 937 7/27/2017
1.0.1.30 945 7/27/2017
1.0.1.29 935 7/25/2017
1.0.1.28 925 7/25/2017
1.0.1.27 931 7/25/2017
1.0.1.26 912 7/25/2017
1.0.1.25 934 7/25/2017
1.0.1.24 924 7/25/2017
1.0.1.23 961 5/24/2017
1.0.1.22 1,078 5/20/2017
1.0.1.21 920 5/19/2017
1.0.1.20 900 5/19/2017
1.0.1.19 923 5/19/2017
1.0.1.18 935 5/18/2017
1.0.1.17 1,010 5/18/2017