Skip to content

SaifMasoud/SeniorChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up Environment Variables

cd api/
touch .env
  • Add the following to .env
TWILIO_ACCOUNT_SID=<XXX>
TWILIO_API_KEY_SID=<XXX>
TWILIO_API_KEY_SECRET=<XXX>
TWILIO_AUTH_TOKEN=<XXX>
TWILIO_PHONE_NUMBER=<XXX>

Sample API requests with curl

curl -i -H "Content-Type: application/json" http://localhost:5000/api/v1/contacts -H "user_id: 0" # Get Contacts

curl -i -H "Content-Type: application/json" http://localhost:5000/api/v1/contact -H "user_id: 0" -X POST -d '{"friend_user_name": "saif1"}' # POST Contact (add contact)

curl -i -H "Content-Type: application/json" http://localhost:5000/api/v1/contact -H "user_id: 0" -X DELETE -d '{"friend_user_name": "saif1"}' # DELETE Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors