IAmJSD / smhw.py

The unofficial Python API for Show My Homework.
GNU General Public License v3.0
2 stars 1 forks source link

Question: How to find subdomain? #2

Closed Kaizen86 closed 3 years ago

Kaizen86 commented 5 years ago

In order to use this module, it requires a subdomain. (among other things). I know what the school ID is, but there doesn't appear to be a subdomain in the URL. (https://www.showmyhomework.co.uk/todos/issued) If there is a subdomain but is hidden somewhere, where can I find it? Sorry if this is a stupid question.

corpm014 commented 3 years ago

Hi there, Maybe this can help? https://gist.github.com/fourohfour/ccb010776c8a8157f597501bb55fde66

corpm014 commented 3 years ago

It isn't actually based on this specific showmyhomework module, but it uses the same API so I guess it might work.

corpm014 commented 3 years ago

Try entering this to your browser 'myschool.showmyhomework.co.uk', and instead change 'myschool' into your school name and if it responses without an error, you can use the name that you put in myschool for the subdomain.

Kaizen86 commented 3 years ago

I forgot I asked this question two years ago, oops