<jupyter_start><jupyter_text>Requires urllib2<jupyter_code>import requests<jupyter_output><empty_output><jupyter_text>Using requests library, make call to the GitLab API Currently, the test api call is using my(Brian) credentials, with my personal email and access token.<jupyter_code>req = requests.get('https://gitlab.com/api/v4/users?search=<EMAIL>', headers = {'private-token': '<KEY>'})<jupyter_output><empty_output><jupyter_text>We can now print the get status code.  This should be 200 (OK), if it's something else you'll need to refer to the gitlab api status codes to resolve the error.<jupyter_code>print(req)<jupyter_output><Response [200]><jupyter_text>Data is returned as json file, this can be printed or used as necessary.  Note my own information is output below.<jupyter_code>print(req.json())<jupyter_output>[{'id': 8287974, 'name': '<NAME>', 'username': 'BDRoss', 'state': 'active', 'avatar_url': 'https://secure.gravatar.com/avatar/a16edf49de7d53bcf4610919b2135ca3?s=80&d=identicon', 'web_url': 'https://gitlab.com/BDRoss'}]
{'fraction_non_alphanumeric': 0.13505747126436782, 'fraction_numerical': 0.034482758620689655, 'mean_word_length': 7.636363636363637, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '476752', 'license': 'MIT', 'n_tokens_mistral': 381, 'n_tokens_neox': 358, 'n_words': 93, 'path': 'test notebook/test api call.ipynb', 'repo_name': 'gms4kc/augur', 'size': '1073'}