Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 01 Getting Started/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class GiftBasket < Sinatra::Base
API_SECRET = ENV['API_SECRET']
APP_URL = "jamie.ngrok.io"

fail 'API_KEY environment variable is not set' if API_KEY.blank?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7734a7413ba97ca00265d396e5a4b90f

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fail 'API_SECRET environment variable is not set' if API_SECRET.blank?

def initialize
@tokens = {}
super
Expand Down
3 changes: 3 additions & 0 deletions 02 Charging For Your App/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class GiftBasket < Sinatra::Base
API_SECRET = ENV['API_SECRET']
APP_URL = "jamie.ngrok.io"

fail 'API_KEY environment variable is not set' if API_KEY.blank?
fail 'API_SECRET environment variable is not set' if API_SECRET.blank?

def initialize
@tokens = {}
super
Expand Down