On Mon, Jan 20, 2014 at 10:03 AM, Diwanshi Pandey <diwanshipandey@gmail.com> wrote:
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.

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