lib/boletosimples/oauth_client.rb in boletosimples-0.0.5 vs lib/boletosimples/oauth_client.rb in boletosimples-0.0.6

- old
+ new

@@ -30,9 +30,14 @@ token_hash[:access_token] ||= token_hash[:token] token_hash.delete :expires fail 'No access token provided' unless token_hash[:access_token] @oauth_token = OAuth2::AccessToken.from_hash(@oauth_client, token_hash) end + + # Users + def partner_create_user(options = {}) + post '/partner/users', options + end def http_verb(verb, path, options = {}) path = remove_leading_slash(path) request_options = { headers: { 'Accept-Charset' => 'UTF-8',