Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.12 KB

File metadata and controls

47 lines (30 loc) · 2.12 KB

Simple example of integration with GitHub, Stripe, and Twilio

How to use:

1. Create a BitScoop account and add these GitHub, Stripe, and Twilio API Maps.

These example maps are stripped down to simplify their functionality.

GitHub Quick Add:

Add to BitScoop

Twilio Quick Add:

Add to BitScoop

Stripe Quick Add:

Add to BitScoop

2. Create a BitScoop API Key and add the key to the project's config file.
3. Add the Map IDs, parameters, and authentication information to the config file.

Stripe's Secret Key should be appended with a colon in the form <secret_key>: and then base64 encoded.

Twilio's Account SID and Auth Token should be concatenated around a colon, in the form <account_sid>:<auth_token>, and then base64 encoded.

Authentication using a Connection to an OAuth2-backed service is beyond the scope of this demonstration. More information about connections can be found in our documentation. We also have a tutorial video showing how to set up and use connections. You can also view and run other demonstration projects that involve creating Connections such as our Alexa Demo.

4. Run the app.
yarn install
node app.js
5. Make calls to the application server
curl -X GET \
  http://localhost:8080/<service>/<endpoint> \

Note that the endpoint and service names are case sensitive. Also note that the endpoint defined in the Twilio map is called via a POST instead of a GET.