Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Account info #9

Merged
merged 3 commits into from
May 6, 2020
Merged

Feature: Account info #9

merged 3 commits into from
May 6, 2020

Conversation

odlp
Copy link
Contributor

@odlp odlp commented May 6, 2020

Returns a RemoveBg::Account object with API & credits information.

Example usage:

account = RemoveBg.account(api_key: "<api_key>")
account.api.free_calls # => 50
account.credits.total  # => 200

Resolves #4

@odlp odlp requested a review from groe May 6, 2020 16:56
lib/remove_bg/account.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@groe groe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make it more verbose

@odlp odlp requested a review from groe May 6, 2020 17:11
@groe groe merged commit 6562807 into master May 6, 2020
@odlp odlp deleted the ft-account-info branch May 7, 2020 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

request - add "account" endpoint
2 participants