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.
The link to the course: http://www.codecademy.com/courses/web-intermediate-en-BLea4/4/1
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
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? On Jan 18, 2014 12:08 AM, "Diwanshi Pandey" diwanshipandey@gmail.com wrote:
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.
The link to the course: http://www.codecademy.com/courses/web-intermediate-en-BLea4/4/1
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
Hello Chris First thanks for the suggestion. Yes its correct that i want to make a api call to mediawiki from codecademy. I don't know much about OAuth.I have just started to explore it though. I am using json and ajax to call the api and its working properly but not with modifications. What do you think OAuth would work? Or is there some other way too?
On Sat, Jan 18, 2014 at 1:34 PM, Diwanshi Pandey diwanshipandey@gmail.comwrote:
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.
The link to the course: http://www.codecademy.com/courses/web-intermediate-en-BLea4/4/1
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*
On Mon, Jan 20, 2014 at 10:03 AM, Diwanshi Pandey diwanshipandey@gmail.comwrote:
Hello Chris First thanks for the suggestion. Yes its correct that i want to make a api call to mediawiki from codecademy. I don't know much about OAuth.I have just started to explore it though. I am using json and ajax to call the api and its working properly but not with modifications. What do you think OAuth would work? Or is there some other way too?
And just to clarify, is "mediawiki" a MediaWiki instance you manage, or a WMF wiki like mediawiki.org? If it's the latter, then the cross-origin issues are going to make it very difficult in general, and the only way will likely be to have your javascript talk to codeacademy, and have codecademy use OAuth to access the wiki on behalf of the user. If it's the former, then you can setup CORS between the domains, and use the api to login, and all calls with be authenticated due to the user's session.
On Sat, Jan 18, 2014 at 1:34 PM, Diwanshi Pandey <diwanshipandey@gmail.com
wrote:
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.
The link to the course: http://www.codecademy.com/courses/web-intermediate-en-BLea4/4/1
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*
--
*Regards,* *Diwanshi Pandey*
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org