Skip to content

Commit

Permalink
Update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiolucca committed Apr 17, 2017
1 parent 8a44281 commit 74e7ac1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ SDK não oficial da API do vagalume desenvolvida em PHP (https://api.vagalume.co
## Exemplos

```sh
use GiorgioLucca\VagalumeSdk\Enum\TypeEnum;
use GiorgioLucca\VagalumeSdk\Vagalume;

$apiKey = 'j8a9dt8a07a7';
$sdk = new \VagalumeSdk\Vagalume($apiKey);
$sdk = new Vagalume($apiKey);

// Buscando um artista específico
$artist = $sdk->getArtist('u2');
Expand All @@ -31,7 +34,7 @@ SDK não oficial da API do vagalume desenvolvida em PHP (https://api.vagalume.co
$news = $sdk->getNews();

// Buscando rádios
$radios = $sdk->getRadios(\VagalumeSdk\Enum\TypeEnum::ARTIST, 'coca-cola-fm');
$radios = $sdk->getRadios(TypeEnum::ARTIST, 'coca-cola-fm');

// Buscando imagem do artista
$artistId = '3ade68b3gdb86eda3';
Expand Down

0 comments on commit 74e7ac1

Please sign in to comment.