On Tue, Jul 7, 2015 at 4:20 PM, Brad Jorsch (Anomie) bjorsch@wikimedia.org wrote:
Is there a common approach for gadgets to identify themselves to the
API - e.g. setting a custom user-agent?
Clients that cannot set the User-Agent header (such as gadgets and other scripts running in a browser) may use the Api-User-Agent header instead. If present, this header is prepended to the standard User-Agent header for purposes such as the api-feature-usage log and Special:ApiFeatureUsage.
Only very few do so unfortunately.. We should see if we can figure out some strategy to encourage that a bit more... Add a 'user-agent' option into the JS mediawiki.Api lib for instance ? log if people then not use it ? Might be a bit 'loud'. Other ideas ?
DJ