| darthbhyrava added a comment. |
I am behind schedule on this one.
As discussed in T136892, I have written a proof of concept which can thank revisions on test.wikipedia. However, I am not being successful in making a POST request to the API to thank the edit.
See the code for scripts/thanks.py here.
The error being thrown up on this one is:
{"servedby":"mw1136","error":{"code":"badtoken","info":"Invalid token","*":"See https://test.wikipedia.org/w/api.php for API usage"}}I have tried moving from urllib2 to request, I have change the values of the token by trying different combinations of escape sequences for the +\ at the end. It still shows the same error.
Can I have some help as to where I am going wrong?
TASK DETAIL
EMAIL PREFERENCES
To: darthbhyrava
Cc: Zppix, Xqt, Mpaa, valhallasw, kaldari, polybuildr, 01tonythomas, pywikibot-bugs-list, Aklapper, Sumit, darthbhyrava, Legoktm, jayvdb, Lethexie, fbstj, Catrope, Jay8g
Cc: Zppix, Xqt, Mpaa, valhallasw, kaldari, polybuildr, 01tonythomas, pywikibot-bugs-list, Aklapper, Sumit, darthbhyrava, Legoktm, jayvdb, Lethexie, fbstj, Catrope, Jay8g
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
