BoletoSimples / boletosimples-ruby

Biblioteca Ruby para API da Kobana
https://developers.kobana.com.br
MIT License
17 stars 4 forks source link

Is oAuth2 obligatory? #11

Closed fccoelho7 closed 5 years ago

fccoelho7 commented 5 years ago

Hello guys!

In my current use case, we don't need to access any user's info. I'm trying to use the SDK only with the API KEY. Is it possible? I've set the ENV for it, and when trying to make some request I'm receiving a 401 error. Ps.: I'm using the sandbox environment.

Thanks!!

kivanio commented 5 years ago

No. Just need token: https://github.com/BoletoSimples/boletosimples-ruby-test/blob/master/index.rb#L14 Uncomment lines 13 and 14, set your token from https://api.boletosimples.com.br/authentication/token/

fccoelho7 commented 5 years ago

@kivanio since I'm using Rails, do you suggest any place to add the config code?