Confirmed users
1,158
edits
No edit summary |
|||
Line 79: | Line 79: | ||
>>> search_results.text | >>> search_results.text | ||
u'{"bugs":[{"id":639524},{"id":798158},{"id":821809}]}' | 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]] |