I'm not entirely sure if I understand your use case, but I'd you're trying to have the code academy site make the api call to mediawiki, the way to do that is with OAuth.
However, if the entire application lives in JavaScript and you don't have access to call the api through the code academy servers, our version of OAuth isn't set up for that yet (that would require public app support, which we don't do yet).
So maybe look into OAuth?
Hello All,I am Diwanshi Pandey, an OPW intern working on the project "Completing mediawiki API development course on Codecademy" . I have completed Parsing and Querying aspects of API but stuck with Modifications as i don't have required permissions.
I was trying to get an edit token but there was a warning saying:
"Unrecognized value for parameter 'intoken': edit"The reason of this issue is certainly because of "callback" parameter.
I have also filed a bug as the above warning is unclear.In my course, I want to cover getting a token , editing a page , add a page to watchlist , etc but not deleting a page.
I am blocked by this isuue.Does anybody know some other way to code it? or Can someone guide me through some other process?
Thanks--Regards,Diwanshi Pandey
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api