Skip to content

Instantly share code, notes, and snippets.

@gpolyn
Created March 15, 2016 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpolyn/148ca150ea1bd19db282 to your computer and use it in GitHub Desktop.
Save gpolyn/148ca150ea1bd19db282 to your computer and use it in GitHub Desktop.
github.com/Dwolla/dwolla-v2-ruby/tree/44bea580123ad914b184e54c65f80d05600d3d3d#usage doesn't give correct scopes in uat
require 'dwolla_v2'
$dwolla = DwollaV2::Client.new(id: ENV["DWOLLA_KEY"], secret: ENV["DWOLLA_SECRET"]) do |optional_config|
optional_config.environment = :sandbox
end
p "scope should be " + ( scope = "ManageCustomers|Funding" )
@token = $dwolla.auths.client scope: scope
p "...but scope is " + @token.scope
source "https://rubygems.org"
ruby '2.1.2'
gem 'dwolla_v2', '~> 0.4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment