예제 #1
0
        /// <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)
        {
            Dictionary<string, object> parameters = new Dictionary<string, object>();

            parameters.Add("connections[][id]", connection.Id);

            if (sharingNote != null) parameters.Add("sharing_note", sharingNote);

            SoundCloudApi.ApiAction<Track>(ApiCommand.TrackShare, HttpMethod.Post, parameters, this.Id);
        }
예제 #2
0
 /// <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);
 }