I'd like to introduce LinqToWiki: a new library for accessing the MediaWiki API from .Net languages (e.g. C#). Its main advantage is that it knows the API and is strongly-typed, which means autocompletion works on API modules, module parameters and result properties and correctness is checked at compile time.
More information is at http://en.wikipedia.org/wiki/User:Svick/LinqToWiki.
Any comments are welcome.
Petr Onderka [[en:User:Svick]]
Petr, make sure you require users to set their *User-Agent* string. Your library should not use any defaults.
For the examples I would recommend this *User-Agent:*
*MyCoolTool/1.1 (http://example.com/MyCoolTool/; MyCoolTool@example.com) LinqToWiki/1.0*
See http://www.mediawiki.org/wiki/API:Main_page#Identifying_your_client
On Sun, Feb 17, 2013 at 12:56 PM, Petr Onderka gsvick@gmail.com wrote:
I'd like to introduce LinqToWiki: a new library for accessing the MediaWiki API from .Net languages (e.g. C#). Its main advantage is that it knows the API and is strongly-typed, which means autocompletion works on API modules, module parameters and result properties and correctness is checked at compile time.
More information is at http://en.wikipedia.org/wiki/User:Svick/LinqToWiki.
Any comments are welcome.
Petr Onderka [[en:User:Svick]]
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I didn't realize that was a requirement for libraries (the library allowed setting the UserAgent, but it didn't force it until now). I have made that change and setting the UserAgent is now required.
Petr Onderka [[en:User:Svick]]
On Sun, Feb 17, 2013 at 7:42 PM, Yuri Astrakhan yuriastrakhan@gmail.com wrote:
Petr, make sure you require users to set their *User-Agent* string. Your library should not use any defaults.
For the examples I would recommend this *User-Agent:*
*MyCoolTool/1.1 (http://example.com/MyCoolTool/; MyCoolTool@example.com) LinqToWiki/1.0*
See http://www.mediawiki.org/wiki/API:Main_page#Identifying_your_client
On Sun, Feb 17, 2013 at 12:56 PM, Petr Onderka gsvick@gmail.com wrote:
I'd like to introduce LinqToWiki: a new library for accessing the MediaWiki API from .Net languages (e.g. C#). Its main advantage is that it knows the API and is strongly-typed, which means autocompletion works on API modules, module parameters and result properties and correctness is checked at compile time.
More information is at http://en.wikipedia.org/wiki/User:Svick/LinqToWiki.
Any comments are welcome.
Petr Onderka [[en:User:Svick]]
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Thanks for fixing it so fast!
In the constructor, you might want to add your lib's ID to the useragent param:
UserAgent = useragent.Trim() + " LinqWiki/1.0";
so that it would be possible not only to see that a bot is broken, but also catch framework bugs if all bots show the same problem.
--Yurik
On Sun, Feb 17, 2013 at 2:09 PM, Petr Onderka gsvick@gmail.com wrote:
I didn't realize that was a requirement for libraries (the library allowed setting the UserAgent, but it didn't force it until now). I have made that change and setting the UserAgent is now required.
Petr Onderka [[en:User:Svick]]
On Sun, Feb 17, 2013 at 7:42 PM, Yuri Astrakhan yuriastrakhan@gmail.com wrote:
Petr, make sure you require users to set their *User-Agent* string. Your library should not use any defaults.
For the examples I would recommend this *User-Agent:*
*MyCoolTool/1.1 (http://example.com/MyCoolTool/; MyCoolTool@example.com) LinqToWiki/1.0*
See http://www.mediawiki.org/wiki/API:Main_page#Identifying_your_client
On Sun, Feb 17, 2013 at 12:56 PM, Petr Onderka gsvick@gmail.com wrote:
I'd like to introduce LinqToWiki: a new library for accessing the MediaWiki API from .Net languages (e.g. C#). Its main advantage is that it knows the API and is strongly-typed, which means autocompletion works on API modules, module parameters and result properties and correctness is checked at compile time.
More information is at
http://en.wikipedia.org/wiki/User:Svick/LinqToWiki.
Any comments are welcome.
Petr Onderka [[en:User:Svick]]
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
mediawiki-api@lists.wikimedia.org