{"action":"created","issue":{"url":"https://api.github.com/repos/mptre/php-soundcloud/issues/34","labels_url":"https://api.github.com/repos/mptre/php-soundcloud/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/mptre/php-soundcloud/issues/34/comments","events_url":"https://api.github.com/repos/mptre/php-soundcloud/issues/34/events","html_url":"https://github.com/mptre/php-soundcloud/issues/34","id":66256269,"number":34,"title":"i want to play stream ","user":{"login":"myselfgaurav","id":1726505,"avatar_url":"https://avatars.githubusercontent.com/u/1726505?v=3","gravatar_id":"","url":"https://api.github.com/users/myselfgaurav","html_url":"https://github.com/myselfgaurav","followers_url":"https://api.github.com/users/myselfgaurav/followers","following_url":"https://api.github.com/users/myselfgaurav/following{/other_user}","gists_url":"https://api.github.com/users/myselfgaurav/gists{/gist_id}","starred_url":"https://api.github.com/users/myselfgaurav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myselfgaurav/subscriptions","organizations_url":"https://api.github.com/users/myselfgaurav/orgs","repos_url":"https://api.github.com/users/myselfgaurav/repos","events_url":"https://api.github.com/users/myselfgaurav/events{/privacy}","received_events_url":"https://api.github.com/users/myselfgaurav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T00:33:41Z","updated_at":"2015-04-04T15:06:32Z","closed_at":"2015-04-04T15:06:32Z","body":"i am able to get all stream from user is , how can i play it \r\n\r\n\r\nplease guide"},"comment":{"url":"https://api.github.com/repos/mptre/php-soundcloud/issues/comments/89592495","html_url":"https://github.com/mptre/php-soundcloud/issues/34#issuecomment-89592495","issue_url":"https://api.github.com/repos/mptre/php-soundcloud/issues/34","id":89592495,"user":{"login":"glenscott","id":124257,"avatar_url":"https://avatars.githubusercontent.com/u/124257?v=3","gravatar_id":"","url":"https://api.github.com/users/glenscott","html_url":"https://github.com/glenscott","followers_url":"https://api.github.com/users/glenscott/followers","following_url":"https://api.github.com/users/glenscott/following{/other_user}","gists_url":"https://api.github.com/users/glenscott/gists{/gist_id}","starred_url":"https://api.github.com/users/glenscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenscott/subscriptions","organizations_url":"https://api.github.com/users/glenscott/orgs","repos_url":"https://api.github.com/users/glenscott/repos","events_url":"https://api.github.com/users/glenscott/events{/privacy}","received_events_url":"https://api.github.com/users/glenscott/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T15:06:32Z","updated_at":"2015-04-04T15:06:32Z","body":"There is a guide to playing streams in the SoundCloud developers guide:\r\n\r\nhttps://developers.soundcloud.com/docs/api/guide#playing\r\n\r\nThe simple example shown is as follows:\r\n\r\n````\r\n<?php\r\nrequire_once 'Services/Soundcloud.php';\r\n\r\n// create a client object with your app credentials\r\n$client = new Services_Soundcloud('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET');\r\n$client->setCurlOptions(array(CURLOPT_FOLLOWLOCATION => 1));\r\n\r\n// get a tracks oembed data\r\n$track_url = 'http://soundcloud.com/forss/flickermood';\r\n$embed_info = json_decode($client->get('oembed', array('url' => $track_url)));\r\n\r\n// render the html for the player widget\r\nprint $embed_info->html;\r\n````"}}