Tag Archives: api

How to send a random alphanumeric in Postman

If you have a kind of session ID or something that you are passing in your payload in your request on postman and you want it to be generated randomly with each call, use the randomAlphaNumberic function as follows: In … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

Simple Python Script to Communicate with ChatGPT API

I wrote a simple python script that allows you to communicate with the ChatGPT API, the workflow is as straight-forward as this: Prerequisites: Limitations: Here is the code in its simplest form: https://github.com/ahmedatawfik/usefulscripts/blob/main/chatgptcomm.py That’s it, Enjoy! Sources:

Posted in python | Tagged , , , | Leave a comment

How to call GitHub REST API from Ubuntu

In brief, I needed to get a list of the members currently in my organization at GitHub. There are multiple ways to do so, including: Direct calls to the API from curl sudo apt install curl Python using PyGitHub pip … Continue reading

Posted in Ubuntu, Uncategorized | Tagged , , , , , , , , , , | 1 Comment