Changes

Jump to: navigation, search

Bugzilla:REST API

515 bytes added, 23:50, 21 October 2015
with authentication
>>> 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 you should), 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 as a token. For example in Python:
 
>>> r = requests.get('https://bugzilla.mozilla.org/rest/bug', params={'id': '1214433', 'token': 'the-api-key-from-the-bugzilla-userprefs-page'})
>>> print res.json()['bugs'][0]['id']
[[category:Bugzilla]]
Confirm
1,158
edits

Navigation menu