When the user right tap or longpress in the calendar's pdf, a list of options show up for share the page as image or save to calendar. On share image, TOADD a middle page with the feature to draw in that.
DOING THIS with a commandbar:
When trying to fetch courses, if there is at least one closed course, we need the uid and the token to build the url for the announcements of the course. The scraper gets the first course of the list in the website(not the Eclass API), and navigates through pages to get a url for the announcements e.g. to get the uid of the user. If the first lesson is open, then we cannot get a uid Solution:
A few elements of the /main/portfolio.php page contains the uid of the user!(1)
Steps:
Make the fetching from the mobile api return more clear results(e.g. Flurl.Http for requests and try/catch, instead of if/else)
If there are closed courses and there isnt the uid stored in the device, get the uid(1)
Else if there are closed courses and there is a uid stored, continue
Go to the AuebUnofficialAPI to check if we have the token of the course, if there is a token for the given courseID, get it, else navigate to: eclass.aueb.gr/modules/announcements/?course={courseID}, get the token, post it to the API and return it to the UI
EDITED: