Setting up Class

test app key = 9b7c5ab7e319a4cd630c70dd947d6bfb

require ('SoundCloud-API.php');
$SoundCloud_API = new SoundCloud_API('9b7c5ab7e319a4cd630c70dd947d6bfb');
                    

Sounds Search

$SoundCloud_API->sound_search('your key words',limit count);
                    
Array
(
    [0] => Array
        (
            [id] => 203229493
            [title] => The Confidence Gap - Cyan Ta'eed
            [description] => 
            [permalink_url] => http://soundcloud.com/envato/the-confidence-gap-cyan-taeed
            [created_at] => 30 April 2015
            [duration] => 18:39
            [playback_count] => 1007
            [favoritings_count] => 3
            [comment_count] => 1
            [artwork_url] => https://i1.sndcdn.com/artworks-000115123101-hv97ue-t300x300.jpg
            [user] => Array
                (
                    [id] => 65330758
                    [username] => Envato
                    [permalink_url] => http://soundcloud.com/envato
                    [avatar_url] => https://i1.sndcdn.com/avatars-000059574991-14k1lj-t300x300.jpg
                )

        )

    [1] => Array
        (
            [id] => 118951274
            [title] => Collis' AudioJungle Audition
            [description] => 
            [permalink_url] => http://soundcloud.com/envato/collis-audiojungle-audition
            [created_at] => 07 November 2013
            [duration] => 0:26
            [playback_count] => 3516
            [favoritings_count] => 8
            [comment_count] => 4
            [artwork_url] => https://i1.sndcdn.com/artworks-000062100096-uv0uph-t300x300.jpg
            [user] => Array
                (
                    [id] => 65330758
                    [username] => Envato
                    [permalink_url] => http://soundcloud.com/envato
                    [avatar_url] => https://i1.sndcdn.com/avatars-000059574991-14k1lj-t300x300.jpg
                )

        )

)
                    

Sound Data

$YT_Channel->sound_data('sound url');
                    
Array
(
    [id] => 64079660
    [title] => أروع ما قرأ الشيخ عبد الباسط عبد الصمد - Sheikh Abdul-Basit Abdul-Samad
    [description] => أروع ما قرأ الشيخ عبد الباسط عبد الصمد 
    [permalink_url] => http://soundcloud.com/ahmed-elmasri/sheikh-abdul-basit-abdul-samad
    [created_at] => 20 October 2012
    [duration] => 6:7
    [playback_count] => 167389
    [favoritings_count] => 4401
    [comment_count] => 51
    [artwork_url] => https://i1.sndcdn.com/artworks-000032517476-i1xctu-t300x300.jpg
    [user] => Array
        (
            [id] => 26055146
            [username] => Ahmed Elmasri
            [permalink_url] => http://soundcloud.com/ahmed-elmasri
            [avatar_url] => https://a1.sndcdn.com/images/default_avatar_t300x300.png
        )

)
                    

Sound Comments

$YT_Channel->sound_comments('sound url',limit count);
                    
Array
(
    [0] => Array
        (
            [id] => 288975493
            [track_id] => 64079660
            [created_at] => 30 May 2016
            [body] => الله يرحمك يا شيخ والله اسمك لن يموت ابدا مهما طال الزمان
            [uri] => https://api.soundcloud.com/comments/288975493
            [user] => Array
                (
                    [id] => 98470083
                    [username] => Tarek Ashraf 15
                    [permalink_url] => http://soundcloud.com/tarek-ashraf-17
                    [avatar_url] => https://i1.sndcdn.com/avatars-000129119202-ooqv9v-large.jpg
                )

        )

    [1] => Array
        (
            [id] => 277691431
            [track_id] => 64079660
            [created_at] => 23 March 2016
            [body] => ع
            [uri] => https://api.soundcloud.com/comments/277691431
            [user] => Array
                (
                    [id] => 213637896
                    [username] => User 733066823
                    [permalink_url] => http://soundcloud.com/uxbkdytmpjvc
                    [avatar_url] => https://i1.sndcdn.com/avatars-000212490607-fmqbqn-large.jpg
                )

        )

)
                    

Playlist Sounds

$YT_Channel->playlist_sounds('playlist url');
                    
Array
(
    [id] => 83656566
    [title] => نصر الدين طوبار
    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud/sets/zjve4ewxde2o
    [duration] => 2:54:30
    [created_at] => 23 February 2015
    [track_count] => 9
    [user] => Array
        (
            [id] => 60071744
            [username] => Eng-Abdo Hamoud
            [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
            [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-large.jpg
        )

    [tracks] => Array
        (
            [0] => Array
                (
                    [id] => 51090299
                    [title] => نصر الدين طوبار - مجيب السائلين
                    [description] => إبتهالات
                    [permalink_url] => http://soundcloud.com/zuma_magdy/gvjlpeqbuj7d
                    [created_at] => 28 June 2012
                    [duration] => 4:42
                    [playback_count] => 157309
                    [favoritings_count] => 5396
                    [comment_count] => 95
                    [artwork_url] => https://i1.sndcdn.com/artworks-000025759540-6wtzpi-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 5545469
                            [username] => zoom zoom
                            [permalink_url] => http://soundcloud.com/zuma_magdy
                            [avatar_url] => https://i1.sndcdn.com/avatars-000041321433-g3auwv-t300x300.jpg
                        )

                )

            [1] => Array
                (
                    [id] => 83380180
                    [title] => آلضُحىَ مِنّ نوُرِ مَن " نَصّر آلدين طوبآر"
                    [description] => 
                    [permalink_url] => http://soundcloud.com/asmaaehab/ghjlekhtrj0m
                    [created_at] => 15 March 2013
                    [duration] => 4:5
                    [playback_count] => 189201
                    [favoritings_count] => 6014
                    [comment_count] => 122
                    [artwork_url] => https://i1.sndcdn.com/artworks-000043012262-d5u1rx-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 8338445
                            [username] => A S M A A🎈
                            [permalink_url] => http://soundcloud.com/asmaaehab
                            [avatar_url] => https://i1.sndcdn.com/avatars-000224561089-n27dzv-t300x300.jpg
                        )

                )

            [2] => Array
                (
                    [id] => 102004201
                    [title] => ابتهالات الشيخ نصر الدين طوبار . بك استجير
                    [description] => 
                    [permalink_url] => http://soundcloud.com/ebn-elbalad-1/99zdopszf6jq
                    [created_at] => 21 July 2013
                    [duration] => 58:32
                    [playback_count] => 218595
                    [favoritings_count] => 7563
                    [comment_count] => 53
                    [artwork_url] => 
                    [user] => Array
                        (
                            [id] => 51826990
                            [username] => Ebn Elbalad 1
                            [permalink_url] => http://soundcloud.com/ebn-elbalad-1
                            [avatar_url] => https://i1.sndcdn.com/avatars-000048105878-88fqfn-t300x300.jpg
                        )

                )

            [3] => Array
                (
                    [id] => 51090719
                    [title] => نصر الدين طوبار - حنينى
                    [description] => إبتهالات
                    [permalink_url] => http://soundcloud.com/zuma_magdy/rgnfyjrkpm2g
                    [created_at] => 28 June 2012
                    [duration] => 12:9
                    [playback_count] => 104265
                    [favoritings_count] => 3124
                    [comment_count] => 51
                    [artwork_url] => https://i1.sndcdn.com/artworks-000025759713-7q3rqg-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 5545469
                            [username] => zoom zoom
                            [permalink_url] => http://soundcloud.com/zuma_magdy
                            [avatar_url] => https://i1.sndcdn.com/avatars-000041321433-g3auwv-t300x300.jpg
                        )

                )

            [4] => Array
                (
                    [id] => 58307659
                    [title] => يا من يرانى - نصر الدين طوبار
                    [description] => 
                    [permalink_url] => http://soundcloud.com/kan-yamaa-kan/gibeijzrwjg6
                    [created_at] => 01 September 2012
                    [duration] => 3:1
                    [playback_count] => 88364
                    [favoritings_count] => 2415
                    [comment_count] => 28
                    [artwork_url] => 
                    [user] => Array
                        (
                            [id] => 6458509
                            [username] => kan.yamaa.kan
                            [permalink_url] => http://soundcloud.com/kan-yamaa-kan
                            [avatar_url] => https://i1.sndcdn.com/avatars-000005212840-xls97q-t300x300.jpg
                        )

                )

            [5] => Array
                (
                    [id] => 97062857
                    [title] => نصر الدين طوبار - يارب عدت الي رحابك تائبا
                    [description] => 
                    [permalink_url] => http://soundcloud.com/ibrahem-farhat/mb3sg8tyczeq
                    [created_at] => 16 June 2013
                    [duration] => 59:32
                    [playback_count] => 96248
                    [favoritings_count] => 4028
                    [comment_count] => 57
                    [artwork_url] => https://i1.sndcdn.com/artworks-000050692828-5cqhdi-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 23551824
                            [username] => Ibrahem Farhat
                            [permalink_url] => http://soundcloud.com/ibrahem-farhat
                            [avatar_url] => https://i1.sndcdn.com/avatars-000212416582-qf40yv-t300x300.jpg
                        )

                )

            [6] => Array
                (
                    [id] => 100811107
                    [title] => مجموعة إبتهالات نادرة * نصر الدين طوبار
                    [description] => المجموعة تتضمن إبتهالات :
- يا مالك المُلك .
- يا مَنْ لا شبيه لهُ .
- قطرة من نداك .
- طال في ساحةِ الرجاء دعائي .
- هو الله .
                    [permalink_url] => http://soundcloud.com/ghadawajeh/n0rj6d5lf0va
                    [created_at] => 13 July 2013
                    [duration] => 15:16
                    [playback_count] => 156911
                    [favoritings_count] => 7174
                    [comment_count] => 56
                    [artwork_url] => https://i1.sndcdn.com/artworks-000052793214-3cmxt3-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 28841339
                            [username] => Ghadah Wajeh
                            [permalink_url] => http://soundcloud.com/ghadawajeh
                            [avatar_url] => https://i1.sndcdn.com/avatars-000199101545-999lwc-t300x300.jpg
                        )

                )

            [7] => Array
                (
                    [id] => 61646930
                    [title] => جــل المنــــــادى - مولانا نصر الدين طوبار
                    [description] => 
                    [permalink_url] => http://soundcloud.com/walid-elalfy/txc55qxxljl8
                    [created_at] => 30 September 2012
                    [duration] => 5:0
                    [playback_count] => 91821
                    [favoritings_count] => 3281
                    [comment_count] => 33
                    [artwork_url] => https://i1.sndcdn.com/artworks-000031261761-1fnjy4-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 13404156
                            [username] => Walid Elalfy
                            [permalink_url] => http://soundcloud.com/walid-elalfy
                            [avatar_url] => https://i1.sndcdn.com/avatars-000024161653-45a4rk-t300x300.jpg
                        )

                )

            [8] => Array
                (
                    [id] => 188868718
                    [title] => سَالَ دَمعْي يا إلهي
                    [description] => 
                    [permalink_url] => http://soundcloud.com/sufiaelrooh/tydol25mumar
                    [created_at] => 01 February 2015
                    [duration] => 12:9
                    [playback_count] => 11860
                    [favoritings_count] => 614
                    [comment_count] => 5
                    [artwork_url] => 
                    [user] => Array
                        (
                            [id] => 45738676
                            [username] => sufia- صوفية
                            [permalink_url] => http://soundcloud.com/sufiaelrooh
                            [avatar_url] => https://i1.sndcdn.com/avatars-000042782387-n9uwsu-t300x300.jpg
                        )

                )

        )

)
                    

User Data

$YT_Channel->user_data('user url');
                    
Array
(
    [id] => 60071744
    [kind] => user
    [permalink] => eng-abdo-hamoud
    [username] => Eng-Abdo Hamoud
    [last_modified] => 2015/10/14 13:02:28 +0000
    [uri] => https://api.soundcloud.com/users/60071744
    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
    [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-t300x300.jpg
    [country] => 
    [first_name] => Eng-Abdo
    [last_name] => Hamoud
    [full_name] => Eng-Abdo Hamoud
    [description] => 
    [city] => 
    [discogs_name] => 
    [myspace_name] => 
    [website] => 
    [website_title] => 
    [online] => 
    [track_count] => 0
    [playlist_count] => 4
    [plan] => Free
    [public_favorites_count] => 23
    [subscriptions] => Array
        (
        )

    [followers_count] => 44
    [followings_count] => 3
)
                    

User Playlist

$YT_Channel->user_playlists('user url');
                    
Array
(
    [playlist_count] => 4
    [playlists] => Array
        (
            [0] => Array
                (
                    [id] => 127973530
                    [title] => صوفي
                    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud/sets/ygp4udo7jo8x
                    [duration] => 50:56
                    [created_at] => 24 July 2015
                    [track_count] => 7
                    [user] => Array
                        (
                            [id] => 60071744
                            [username] => Eng-Abdo Hamoud
                            [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
                            [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-t300x300.jpg
                        )

                )

            [1] => Array
                (
                    [id] => 123934979
                    [title] => ياسين التهامي
                    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud/sets/nkjp3gfnowsp
                    [duration] => 3:51:29
                    [created_at] => 10 July 2015
                    [track_count] => 11
                    [user] => Array
                        (
                            [id] => 60071744
                            [username] => Eng-Abdo Hamoud
                            [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
                            [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-t300x300.jpg
                        )

                )

            [2] => Array
                (
                    [id] => 83723150
                    [title] => عبدالباسط عبدالصمد
                    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud/sets/ttqj24mm7bay
                    [duration] => 6:7
                    [created_at] => 23 February 2015
                    [track_count] => 1
                    [user] => Array
                        (
                            [id] => 60071744
                            [username] => Eng-Abdo Hamoud
                            [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
                            [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-t300x300.jpg
                        )

                )

            [3] => Array
                (
                    [id] => 83656566
                    [title] => نصر الدين طوبار
                    [permalink_url] => http://soundcloud.com/eng-abdo-hamoud/sets/zjve4ewxde2o
                    [duration] => 2:54:30
                    [created_at] => 23 February 2015
                    [track_count] => 9
                    [user] => Array
                        (
                            [id] => 60071744
                            [username] => Eng-Abdo Hamoud
                            [permalink_url] => http://soundcloud.com/eng-abdo-hamoud
                            [avatar_url] => https://i1.sndcdn.com/avatars-000055849643-ldadao-t300x300.jpg
                        )

                )

        )

)
                    

User Sounds

$YT_Channel->user_sounds('user url');
                    
Array
(
    [tracks] => Array
        (
            [0] => Array
                (
                    [id] => 203229493
                    [title] => The Confidence Gap - Cyan Ta'eed
                    [description] => 
                    [permalink_url] => http://soundcloud.com/envato/the-confidence-gap-cyan-taeed
                    [created_at] => 30 April 2015
                    [duration] => 18:39
                    [playback_count] => 1007
                    [favoritings_count] => 3
                    [comment_count] => 1
                    [artwork_url] => https://i1.sndcdn.com/artworks-000115123101-hv97ue-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 65330758
                            [username] => Envato
                            [permalink_url] => http://soundcloud.com/envato
                            [avatar_url] => https://i1.sndcdn.com/avatars-000059574991-14k1lj-t300x300.jpg
                        )

                )

            [1] => Array
                (
                    [id] => 118951508
                    [title] => AudioJungle Watermark
                    [description] => 
                    [permalink_url] => http://soundcloud.com/envato/audiojungle-watermark
                    [created_at] => 07 November 2013
                    [duration] => 0:1
                    [playback_count] => 3794
                    [favoritings_count] => 7
                    [comment_count] => 1
                    [artwork_url] => https://i1.sndcdn.com/artworks-000062100237-tiqd7h-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 65330758
                            [username] => Envato
                            [permalink_url] => http://soundcloud.com/envato
                            [avatar_url] => https://i1.sndcdn.com/avatars-000059574991-14k1lj-t300x300.jpg
                        )

                )

            [2] => Array
                (
                    [id] => 118951274
                    [title] => Collis' AudioJungle Audition
                    [description] => 
                    [permalink_url] => http://soundcloud.com/envato/collis-audiojungle-audition
                    [created_at] => 07 November 2013
                    [duration] => 0:26
                    [playback_count] => 3516
                    [favoritings_count] => 8
                    [comment_count] => 4
                    [artwork_url] => https://i1.sndcdn.com/artworks-000062100096-uv0uph-t300x300.jpg
                    [user] => Array
                        (
                            [id] => 65330758
                            [username] => Envato
                            [permalink_url] => http://soundcloud.com/envato
                            [avatar_url] => https://i1.sndcdn.com/avatars-000059574991-14k1lj-t300x300.jpg
                        )

                )

        )

)
                    

Iframe Player

$YT_Channel->iframe_sound_player('sound url');
                    


HTML5 Player

$YT_Channel->html_sound_player('sound url');
                    


Download Sound

$YT_Channel->download_sound('sound url');
                    
http://api.soundcloud.com/tracks/64079660/stream?client_id=9b7c5ab7e319a4cd630c70dd947d6bfb
                    

Get User ID

$YT_Channel->get_user_id('user url');
                    
60071744
                    

Get Sound ID

$YT_Channel->get_sound_id('sound url');
                    
64079660
                    

copyright 2015 Tatwerat-Team