https://github.com/clemfromspace/grooveshark-php-api
Grooveshark php api
https://github.com/clemfromspace/grooveshark-php-api
Last synced: 24 days ago
JSON representation
Grooveshark php api
- Host: GitHub
- URL: https://github.com/clemfromspace/grooveshark-php-api
- Owner: clemfromspace
- License: mit
- Created: 2015-02-14T12:37:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T15:57:58.000Z (over 11 years ago)
- Last Synced: 2025-01-14T02:43:59.517Z (over 1 year ago)
- Language: PHP
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Grooveshark Web Api PHP
This is a PHP implementation of the [Grooveshark Web API](http://developers.grooveshark.com/docs/public_api/v3/).
## Requirements
PHP 5.3 or greater.
## Installation
Using composer:
```json
"require": {
"clemfromspace/grooveshark-php-api": "dev-master"
}
```
## Examples
First, request a session ID using your [application credentials](http://developers.grooveshark.com/api).
```php
$session = new GroovesharkAPI\Session('YOUR APPLICATION KEY', 'YOUR APPLICATION SECRET');
$session->startSession();
$api = new GroovesharkAPI\GroovesharkAPI($session);
```
Using this session object, initialize the client :
```php
$api = new GroovesharkAPI\GroovesharkAPI($session);
```
You can now send requests to Grooveshark's API :
```php
$response = $api->getSongSearchResults('Beat it');
```
[Grooveshark Api documentation](http://developers.grooveshark.com/docs/public_api/v3/)