https://github.com/shivamarora1/crypto-ivr
Horus: IVR based on (Twillio Voice) which is used to fetch price of crypto currency from coin market cap api
https://github.com/shivamarora1/crypto-ivr
flask python3 requests twillio twillio-api
Last synced: 30 days ago
JSON representation
Horus: IVR based on (Twillio Voice) which is used to fetch price of crypto currency from coin market cap api
- Host: GitHub
- URL: https://github.com/shivamarora1/crypto-ivr
- Owner: shivamarora1
- License: mit
- Created: 2022-04-24T20:33:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-25T15:00:27.000Z (about 4 years ago)
- Last Synced: 2025-03-12T21:22:37.509Z (over 1 year ago)
- Topics: flask, python3, requests, twillio, twillio-api
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Horus🐴: Crypto IVR
This IVR🤙 will tell you price of some famous crypto currencies💰. The IVR is based on [Twillio](https://www.twilio.com/docs/voice) voice and fetched crypto price from [coin market cap api](https://coinmarketcap.com/api/).
This project is used flask framewok for the webhooks of Twillio incoming calls.
## Working
1. Call to the number that you get from **twillio**.
2. **IVR** will tell you all the **crypto currencies** available and ask you to make a selection.
3. According to the selection e.g. 1 for **Bitcoin**, IVR connected web app will fetch the real time prize of crypto currency.
4. IVR will tell/ say the price of selected **crypto currency**.
5. If user make invalid selection then IVR will revert it back to the **main menu**.
## Steps for local set up of project
1. First clone this repository and cd into it.
``$ git clone git@github.com:shivamarora1/crypto-ivr.git``
``$ cd crypto-ivr``
2. Create a new virtual environment.
```python3 venv -m .venv```
```source .venv/bin/activate```
3. Install the dependencies.
```pip install -r requirements.txt```
4. Set coin market api key in **environment variables**.
```COIN_MARKET_KEY```
5. Start the server.
```make run```
6. Expose the application to the wider Internet using ngrok.
7. Configure Twilio to call your webhooks
#### Python constructs used
1. **requests** to make http request.
2. **objects** and **classes**.