Changes

Jump to: navigation, search

Bugzilla:REST API

560 bytes added, 00:34, 22 October 2015
Undo revision 1101766 by Amckay (talk)
>>> search_results.text
u'{"bugs":[{"id":639524},{"id":798158},{"id":821809}]}'
 
====with two factor authentication====
 
If you have two factor authentication on your Bugzilla account (which is recommended), then you will not be able to call the login endpoint. Instead [https://bugzilla.mozilla.org/userprefs.cgi?tab=apikey create a new API key]. Then that API key can be passed to each request. For example in Python:
 
>>> r = requests.get('https://bugzilla.mozilla.org/rest/bug', params={'id': '1214433', 'api_key': 'the-api-key-from-the-bugzilla-userprefs-page'})
>>> print res.json()['bugs'][0]['id']
1214433
 
[[category:Bugzilla]]
Confirm
1,158
edits

Navigation menu