Closed andersondiniznunes closed 9 months ago
This is a duplicate of #75. I am sorry, but I do not have a solution for single-chapter books that satisfies everyone.
hi first of all ... tks for share this api i solved the problem there are too few options that have the problem. for each items, i created a exception code to handle this
tks again
$nome_livro = $_GET['nome_livro']; $url = "https://bible-api.com/ ".$book."%20".$capitulo_escolhido."?translation=almeida&capitulos=".$capitulos; //echo "book $book"; switch ($book) { case 'OBA': $url = 'https://bible-api.com/OBA+1:1-21?translation=almeida'; break; case 'JUD': $url = 'https://bible-api.com/JUD+1:1-25?translation=almeida'; break; case 'filemom': $url = ' https://bible-api.com/filemom+1:1-25?translation=almeida'; break; case 'filipenses': { if ($capitulo_escolhido == 1) { $versiculos = 30; } if ($capitulo_escolhido == 2) { $versiculos = 30; } if ($capitulo_escolhido == 3) { $versiculos = 21; } if ($capitulo_escolhido == 4) { $versiculos = 23; } $url = ' https://bible-api.com/filipenses+'.$capitulo_escolhido.':1-'.$versiculos.'?translation=almeida'; break; } }
Em ter., 17 de out. de 2023 às 20:23, Tim Morgan @.***> escreveu:
This is a duplicate of #75 https://github.com/seven1m/bible_api/issues/75. I am sorry, but I do not have a solution for single-chapter books that satisfies everyone.
— Reply to this email directly, view it on GitHub https://github.com/seven1m/bible_api/issues/91#issuecomment-1767346124, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANWLSUVDKRKFYG32E4CN4HLX74HPJAVCNFSM6AAAAAA6ERY34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGM2DMMJSGQ . You are receiving this because you authored the thread.Message ID: @.***>
realizei a chamada à Api assim, e ao invés de virem todos os versiculos do capitulo, apareceu apenas o primeiro versiculo
https://bible-api.com/OBA%201?translation=almeida