Open spydoug opened 7 years ago
mas essa resposta diz que você esta autenticado.
Sim, porém mesmo autenticado nenhuma API restrita tá funcionando, retorna 404.
Em 12 de mai de 2017 8:14 PM, "Jhonata Menezes" notifications@github.com escreveu:
mas essa resposta diz que você esta autenticado.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301205997, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpurlCT9l5iDUKDEs0MmMa7SQ8bgIRHks5r5Oe4gaJpZM4NZ1jM .
e como voce esta passando o glbId?
No próprio arquivo auth API.php tem dois exemplos da API passando string no $_GET para formar a URL e logo após o comando exec()
Em 13 de mai de 2017 10:29 AM, "Jhonata Menezes" notifications@github.com escreveu:
e como voce esta passando o glbId?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301248437, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpurgTPaZZj-LrGV8vZ1qRfG_--0DLYks5r5bAwgaJpZM4NZ1jM .
voce copiou o arquivo config.php.dist para config.php ? o dist é apenas para distribuição
Sim, por isso estou conseguindo logar... No config só vai login e senha... Você já usou essa API e funcionou ?
Em 13 de mai de 2017 10:35 AM, "Jhonata Menezes" notifications@github.com escreveu:
voce copiou o arquivo config.php.dist https://github.com/wgenial/cartrolandofc/blob/master/config.php.dist para config.php ? o dist é apenas para distribuição
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301248788, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpuriOPHIjPLZYkqUkRbEVK0MN7bRRpks5r5bGagaJpZM4NZ1jM .
ta certo, viajei agora desculpa. Acabei de testar e passou, verifica se o header X-GLB-Token esta sendo enviado, se executar com curl você pode passar o parâmetro -v que ele mostra os headers de requisição e resposta
// estatisticas e scouts dos atletas
else if ($_GET["api"] === "atleta-pontuacao") {
$url = "https://api.cartolafc.globo.com/auth/mercado/atleta/".
$_GET["atleta_id"] ."/pontuacao"; }
$json = exec("curl -X GET ". $url ." -H 'x-glb-token: ".
$_SESSION['glbId'] ."'"); echo $json; }
2017-05-13 10:41 GMT-03:00 Jhonata Menezes notifications@github.com:
ta certo, viajei agora desculpa. Acabei de testar e passou, verifica se o header X-GLB-Token esta sendo enviado, se executar com curl você pode passar o parâmetro -v que ele mostra os headers de requisição e resposta
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301249091, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpursRI6XwE0S2_PIKHyg_oyT6QggE_ks5r5bL2gaJpZM4NZ1jM .
--
Douglas Pootz Gerente de Projetos Tel: (61) 3037-9199 Cel: (61) 9.9681-5217 Skype: douglas.pootz douglas@grupocevicom.com.br www.grupocevicom.com.br http://www.grupocevicom.com.br/
coloca "curl -v -X" assim voce ve a requisição, testa com o postman tbm para ver o que ocorre
array(3) { ["id"]=> string(13) "Authenticated" ["userMessage"]=> string(32) "Usuário autenticado com sucesso" ["glbId"]=> string(255) "1466d969ceee6e701b53fc773dd807f44335a65734e6d6a7839637a47574679337a314a3345672d68666c675a475233427a4a77762d397549526446793364357236483257695f314b67574f5a4671734d37657a355745425a6346325a394731684e39594d67673d3d3a303a7566776d766d6d72647077626c6b736e77666571" } 404 page not found
Mesma coisa, será alguma configuração no servidor? de CURL?
2017-05-13 11:00 GMT-03:00 Jhonata Menezes notifications@github.com:
coloca "curl -v -X" assim voce ve a requisição, testa com o postman https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop tbm para ver o que ocorre
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301250220, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpurk3EgLj6_0k2AwWvb3YPX6ztkK5Vks5r5beBgaJpZM4NZ1jM .
--
Douglas Pootz Gerente de Projetos Tel: (61) 3037-9199 Cel: (61) 9.9681-5217 Skype: douglas.pootz douglas@grupocevicom.com.br www.grupocevicom.com.br http://www.grupocevicom.com.br/
Pessoal, vocês não acham melhor tratar sobre esse assunto no gitter https://gitter.im/cartrolandofc/dev pois isso não é uma issue e assim fica distorcido o objetivo. Valeu
Desculpe Giovani, irei por lá agora... na verdade o foco seria a melhoria que coloquei la em cima!
2017-05-13 11:08 GMT-03:00 Giovani Generali notifications@github.com:
Pessoal, vocês não acham melhor tratar sobre esse assunto no gitter https://gitter.im/cartrolandofc/dev pois isso não é uma issue e assim fica distorcido o objetivo. Valeu
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wgenial/cartrolandofc/issues/61#issuecomment-301250636, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpurk6Mu1heL4y313HT0QdhriWa0n1Fks5r5blJgaJpZM4NZ1jM .
--
Douglas Pootz Gerente de Projetos Tel: (61) 3037-9199 Cel: (61) 9.9681-5217 Skype: douglas.pootz douglas@grupocevicom.com.br www.grupocevicom.com.br http://www.grupocevicom.com.br/
@spydoug vou manter o label melhoria mas as dúvidas de autenticação e afim, melhor no gitter. Valeu
@spydoug se quiser contribuir com essa melhoria basta fazer um fork do projeto e enviar um pull request.
Olá,
Uma boa funcionalidade seria a Parcial/Pontos por Liga, exemplo: Digita a liga XYZ, busca os times da liga tendo como filtros de pontuação da Rodada, Mês, Ano, Turno.
Enquanto a rodada não finalizar trás as parciais, quando fechar trás o valor final.
Ano passado tinha feito isso com ajuda da API, porém esse ano já não consegui acessar mais nada.
Se tiverem interesse posso ajudar nessa funcionalidade, apenas precisaria de ajuda com a API AUTH pois fiz uns testes nela e não esta retornando nada.
array(3) { ["id"]=> string(13) "Authenticated" ["userMessage"]=> string(32) "Usuário autenticado com sucesso" ["glbId"]=> string(255) "1333d9fc9d06178edd1dfe01f37372a346c466256487051667a536c5730592d59704a436e4f3244315a70414e616d4b4347674f624c625271727a4e384c79363443576379726d35727a375f68357a685150714249754c336a6c37484c4c7876564736384342673d3d3a303a7566776d766d6d72647077626c6b736e77666571" } 404 page not found