Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no código JS do exemplo de uso da API Vagalume #29

Open
amzero opened this issue Mar 4, 2017 · 1 comment
Open

Erro no código JS do exemplo de uso da API Vagalume #29

amzero opened this issue Mar 4, 2017 · 1 comment

Comments

@amzero
Copy link

amzero commented Mar 4, 2017

No site https://api.vagalume.com.br/docs/letras/ no tópico Exemplo Javascript está com a sintaxe errada.

O código mostrado é esse:

// Exemplo de requisição var artist = "U2"; var song = "One"; jQuery.getJSON( "https://api.vagalume.com.br/search.php" + "?art=" + artist + "&mus=" + song, + "&apikey={key}" function (data) { // Letra da música alert(data.mus[0].text); } );

Porém está faltando uma virgula separando os parâmetros. Ficando assim:

// Exemplo de requisição var artist = "U2"; var song = "One"; jQuery.getJSON( "https://api.vagalume.com.br/search.php" + "?art=" + artist + "&mus=" + song, + "&apikey={key}"**,** function (data) { // Letra da música alert(data.mus[0].text); } );

@amzero
Copy link
Author

amzero commented Mar 4, 2017

Formatei o texto acima mas não funcionou as tags código e negrito.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant