Skip to content

Instantly share code, notes, and snippets.

@josecelano
Last active August 29, 2015 14:20
Show Gist options
  • Save josecelano/69e5b998c6c328b125f1 to your computer and use it in GitHub Desktop.
Save josecelano/69e5b998c6c328b125f1 to your computer and use it in GitHub Desktop.
SDK Configurations
;## This is an example configuration file for the SDK.
;## The sample scripts configure the SDK dynamically
;## but you can choose to go for file based configuration
;## in simpler apps (See bootstrap.php for more).
[Account]
acct1.AccessToken = c0afcccdde5081d6429de37d16166ead
;Connection Information
[Http]
; Add Curl Constants to be configured
; The settings provided in configurations would override defaults
; if provided in configurations
http.CURLOPT_CONNECTTIMEOUT = 30
; Adding HTTP Headers to each request sent to BlockCypher APIs
;http.headers.BlockCypher-Partner-Attribution-Id = 123123123
;http.Proxy=http://[username:password]@hostname[:port]
;Service Configuration
[Service]
; can be set to sandbox / live
mode = live
;Logging Information
[Log]
log.LogEnabled = true
; When using a relative path, the log file is created
; relative to the .php file that is the entry point
; for this request. You can also provide an absolute
; path here
log.FileName = ../BlockCypher.log
; Logging level can be one of
; Sandbox Environments: DEBUG, INFO, WARN, ERROR
; Live Environments: INFO, WARN, ERROR
; Logging is most verbose in the 'DEBUG' level and
; decreases as you proceed towards ERROR
; DEBUG level is disabled for live, to not log sensitive information.
; If the level is set to DEBUG, it will be reduced to FINE automatically,
; with a warning message
log.LogLevel = INFO
;Validation Configuration
[validation]
; If validation is set to strict, the BlockCypherModel would make sure that
; there are proper accessors (Getters and Setters) for each model
; objects. Accepted value is
; 'log' : logs the error message to logger only (default)
; 'strict' : throws a php notice message
; 'disable' : disable the validation
validation.level = disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment