The MyHomeworkSpace public API provides a method of programmatically accessing a user’s account over the internet.
Requesting API Access
API Access is not yet automated. To get a Client ID, you can reach out to us by emailing [email protected], or using the feedback buttons in MyHomeworkSpace. In your request, make sure to include a valid origin (for CORS purposes), as well as a valid callback URL.
If you need to make any changes to this information, feel free to reach out to us.
If you just want to try out the API, without building a specific application, you can use the “Try it out” sections of the API Reference, which handles all authentication for you.
Authentication flow
When an app is registered for the API, it is given a Client ID. This unique code identifies the application to MyHomeworkSpace. When the app wants to gain access to a user’s account, they send the user to the application/requestAuth/:clientid
endpoint, where :clientid is replaced with your application’s Client ID. The user is then redirected to a sign in screen where they can approve your application’s access. If they approve your app, they are sent to your Callback URL (set at app registration) with a query string (url parameter) called token, with a specific token.
Endpoints
All endpoints are listed in the API Reference. Click on any endpoint to view more details about it.
- GET admin/getAllFeedback
- GET admin/getFeedbackScreenshot/:id
- GET admin/getUserCount
- POST auth/changeName
- POST auth/clearMigrateFlag
- GET auth/context
- GET auth/me
- POST calendar/events/add
- POST calendar/events/delete
- POST calendar/events/edit
- GET calendar/events/getWeek/:monday
- GET calendar/getStatus
- GET calendar/getView
- POST calendar/hwEvents/add
- POST calendar/hwEvents/delete
- POST calendar/hwEvents/edit
- POST calendar/import
- POST calendar/resetSchedule
- POST classes/delete
- POST classes/edit
- GET classes/get/:id
- GET classes/get
- GET classes/hwInfo/:id
- POST classes/swap
- POST classes/add
- POST feedback/add
- POST homework/add
- POST homework/delete
- POST homework/edit
- GET homework/get/:id
- GET homework/get
- GET homework/getForClass/:id
- GET homework/getHWView
- GET homework/getHWViewSorted
- GET homework/getPickerSuggestions
- GET homework/getWeek/:date
- POST homework/markOverdueDone
- GET homework/search
- POST notifications/add
- POST notifications/add
- GET notifications/get
- GET planner/getWeekInfo/:date
- POST prefixes/add
- POST prefixes/delete
- GET prefixes/getDefaultList
- GET prefixes/getList
- GET prefs/get/:key
- POST prefs/set
- GET status
Was this article helpful?
Yes
No