{"action":"created","issue":{"url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/5","repository_url":"https://api.github.com/repos/simplyGits/Magister6.php","labels_url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/5/comments","events_url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/5/events","html_url":"https://github.com/simplyGits/Magister6.php/issues/5","id":160426164,"number":5,"title":"Probleem met ophalen van roepnaam, achternaam en foto","user":{"login":"splintah","id":16049456,"avatar_url":"https://avatars.githubusercontent.com/u/16049456?v=3","gravatar_id":"","url":"https://api.github.com/users/splintah","html_url":"https://github.com/splintah","followers_url":"https://api.github.com/users/splintah/followers","following_url":"https://api.github.com/users/splintah/following{/other_user}","gists_url":"https://api.github.com/users/splintah/gists{/gist_id}","starred_url":"https://api.github.com/users/splintah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splintah/subscriptions","organizations_url":"https://api.github.com/users/splintah/orgs","repos_url":"https://api.github.com/users/splintah/repos","events_url":"https://api.github.com/users/splintah/events{/privacy}","received_events_url":"https://api.github.com/users/splintah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simplyGits/Magister6.php/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tkon99","id":2544496,"avatar_url":"https://avatars.githubusercontent.com/u/2544496?v=3","gravatar_id":"","url":"https://api.github.com/users/tkon99","html_url":"https://github.com/tkon99","followers_url":"https://api.github.com/users/tkon99/followers","following_url":"https://api.github.com/users/tkon99/following{/other_user}","gists_url":"https://api.github.com/users/tkon99/gists{/gist_id}","starred_url":"https://api.github.com/users/tkon99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkon99/subscriptions","organizations_url":"https://api.github.com/users/tkon99/orgs","repos_url":"https://api.github.com/users/tkon99/repos","events_url":"https://api.github.com/users/tkon99/events{/privacy}","received_events_url":"https://api.github.com/users/tkon99/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-06-15T13:46:38Z","updated_at":"2016-06-15T14:57:50Z","closed_at":null,"body":"Hoi,\r\n\r\nIk ben bezig met het maken van een site die gegevens uit magister kan halen. Maar ik heb een probleempje. Als ik de volgende code heb, krijg ik wel de Magister-versie maar niet de roepnaam, achternaam en foto. (user en pass heb ik vervangen door mijn eigen gebruikersnaam en wachtwoord).\r\n\r\n```PHP\r\n<html>\r\n<body>\r\n<?php\r\nrequire('lib/Magister6.class.php');\r\n$magister = new Magister(\"cgu.magister.net\", \"user\", \"pass\");\r\n// $magister->setSchool('https://cgu.magister.net/');\r\n// $magister->setCredentials(\"user\", \"pass\");\r\n// $userInfo = $magister->getUserInfo();\r\n// $magister->login();\r\n\r\necho('<h1>'Magister '.$magister->getMagisterInfo()->ProductVersie.'</h1>);\r\n\r\necho('Naam: '.$magister->getUserInfo()->Roepnaam.' '. $magister->getUserInfo()->Achternaam.'<hr>');\r\n\r\necho('<img src=\"data:image/jpeg;base64,'.$magister->getPicture(200,200,true).'\">');\r\n\r\n?>\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\nAls ik\r\n\r\n```PHP\r\n // $magister->setSchool('https://cgu.magister.net/');\r\n // $magister->setCredentials(\"user\", \"pass\");\r\n // $userInfo = $magister->getUserInfo();\r\n // $magister->login();\r\n```\r\n\r\nzonder `//` gebruik, krijg ik de error 'Session not verified'.\r\n\r\nIs mijn code onjuist? Of hoe kan ik het anders oplossen?\r\n\r\nSplinter"},"comment":{"url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/comments/226213985","html_url":"https://github.com/simplyGits/Magister6.php/issues/5#issuecomment-226213985","issue_url":"https://api.github.com/repos/simplyGits/Magister6.php/issues/5","id":226213985,"user":{"login":"lieuwex","id":6019113,"avatar_url":"https://avatars.githubusercontent.com/u/6019113?v=3","gravatar_id":"","url":"https://api.github.com/users/lieuwex","html_url":"https://github.com/lieuwex","followers_url":"https://api.github.com/users/lieuwex/followers","following_url":"https://api.github.com/users/lieuwex/following{/other_user}","gists_url":"https://api.github.com/users/lieuwex/gists{/gist_id}","starred_url":"https://api.github.com/users/lieuwex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lieuwex/subscriptions","organizations_url":"https://api.github.com/users/lieuwex/orgs","repos_url":"https://api.github.com/users/lieuwex/repos","events_url":"https://api.github.com/users/lieuwex/events{/privacy}","received_events_url":"https://api.github.com/users/lieuwex/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T14:57:50Z","updated_at":"2016-06-15T14:57:50Z","body":"@tkon99 Ik had geen problemen met Magister 6.1, maar wel met een eerdere versie. Waarvoor ik de inlogcode toen heb aangepast. (voor de login code, zie: https://github.com/simplyGits/MagisterJS/blob/c663117511c1fece8acdba6695cc1a2ba1a49ef7/src/Magister.coffee#L743)"}}
{"actor":{"display_login":"lieuwex"}}