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

Magister 6 Development Thread. #1

Open
lieuwex opened this issue Jul 6, 2014 · 3 comments
Open

Magister 6 Development Thread. #1

lieuwex opened this issue Jul 6, 2014 · 3 comments

Comments

@lieuwex
Copy link
Member

lieuwex commented Jul 6, 2014

Place to talk about Magister 6 development in general.

@maikgroenewegen
Copy link

maikgroenewegen commented Dec 9, 2016

Ik probeer via curl te verbinden met Magister maar ik krijg een foutmelding: "message":"Ongeldig account of verkeerde combinatie van gebruikersnaam en wachtwoord.

Ik heb via Mahgister getest en die doet het wel. Enig idee wat ik fout doe?

curl 'https://SCHOOL.magister.net/api/sessies'
-XPOST
-H 'Content-Type: application/json;charset=UTF-8'
--data '{"Wachtwoord":"PASS","Gebruikersnaam":"USER","IngelogdBlijven":false}'

@lieuwex
Copy link
Member Author

lieuwex commented Dec 9, 2016

Je moet eerst een delete request maken naar /api/sessies/huidige en de sessie id dat het teruggeeft opslaan, zie bijvoorbeeld: https://github.com/simplyGits/MagisterJS/blob/a22a34790400205150d0508efb0d4631db4aaf35/src/magister.js#L269-L279

@maikgroenewegen
Copy link

Thanks, that did it!

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

2 participants