Module: FirstGiving::Base
Constant Summary collapse
- DONATION_SANDBOX_ENDPOINT =
'http://usapisandbox.fgdev.net'- DONATION_PRODUCTION_ENDPOINT =
'https://api.firstgiving.com'- SEARCH_ENDPOINT =
'http://graphapi.firstgiving.com'
Instance Method Summary collapse
Instance Method Details
#headers_json ⇒ Object
9 10 11 12 13 14 |
# File 'lib/firstgiving/base.rb', line 9 def headers_json { 'User-Agent' => 'FirstGiving Ruby SDK', 'Content-Type' => 'application/json' } end |
#headers_security ⇒ Object
16 17 18 19 20 21 |
# File 'lib/firstgiving/base.rb', line 16 def headers_security { 'JG_APPLICATIONKEY' => "#{FirstGiving.configuration.application_key}", 'JG_SECURITYTOKEN' => "#{FirstGiving.configuration.security_token}" } end |
#logging(msg) ⇒ Object
38 39 40 |
# File 'lib/firstgiving/base.rb', line 38 def logging(msg) puts "[FG-LOG] #{msg}" if FirstGiving.configuration.[:verbose] end |