Git Product home page Git Product logo

knack-to-endpoint-to-twillio's Introduction

Knack Twilio

Back-end repository

Install instruction:

Requirements:

Node v10.17.0
npm v6.11.3
HapiJS v18.1.0

  1. Clone repository git clone https://github.com/SOLUNTECH/Knack-to-Endpoint-to-Twillio.git
  2. Install modules using npm install
  3. Create environment .env file with Twilio credentials and the server port to assign
TWILIO_ACCOUNT_ID=xxxxxxxxxxx
TWILIO_AUTH_TOKEN=xxxxxxxxxxx
PORT=9095
  1. Run the server using node server
  2. The endpoints work under the base url http://localhost:{{port}}/api/v1/twiliosm
  3. From postman you can test the endpoint
URL: [http://localhost:9095/api/v1/twiliosms](http://localhost:9095/api/v1/twiliosms)  
Method: POST  
Body JSON: {  
	"message": "test message",  
	"to": "573008169506"  
}

Response: {  
	"accountSid": "xxxxxxxxxxxxxxxxxxxxx",  
	"apiVersion": "2010-04-01",  
	"body": "test message",  
	"dateCreated": "2020-04-14T21:48:52.000Z",  
	"dateUpdated": "2020-04-14T21:48:52.000Z",  
	"dateSent": null,  
	"direction": "outbound-api",  
	"errorCode": null,  
	"errorMessage": null,  
	"from": "+1xxxxxxxx",  
	"messagingServiceSid": null,  
	"numMedia": "0",  
	"numSegments": "1",  
	"price": null,  
	"priceUnit": "USD",  
	"sid": "xxxxxxxxxxxxxxxxxxxxx",  
	"status": "queued",  
	"subresourceUris": {  
		"media": "/2010-04-01/Accounts/xxxxxxxxxxxxxxxxxxxxx/Messages/SM70ea733f0f884b90b4549c570c5f2b15/Media.json"  
	},  
	"to": "+1xxxxxxxx",  
	"uri": "/2010-04-01/Accounts/xxxxxxxxxxxxxxxxxxxxx/Messages/SM70ea733f0f884b90b4549c570c5f2b15.json"  
}

knack-to-endpoint-to-twillio's People

Contributors

giancarlovs2891 avatar

Watchers

James Cloos avatar  avatar Ralph Manga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.