/// <summary> /// Share a track to a social network. /// </summary> /// <param name="connection"> Registered social profile on sound cloud. </param> /// <param name="sharingNote"> String that will be used as status message. This string might be truncated by SoundCloud. </param> public void Share(Connection connection, string sharingNote) { var parameters = new Dictionary<string, object> { { "connections[][id]", connection.Id } }; if (sharingNote != null) parameters.Add("sharing_note", sharingNote); SoundCloudApi.ApiAction<Track>(ApiCommand.TrackShare, HttpMethod.Post, parameters, Id); }
/// <summary> /// Share a track to a social network. /// </summary> /// <param name="connection"> Registered social profile on sound cloud. </param> public void Share(Connection connection) { Share(connection, null); }