Skip to content

Commit

Permalink
Merge pull request #1 from Mifiel/readme-app-secret
Browse files Browse the repository at this point in the history
Readme app secret
  • Loading branch information
genaromadrid committed Mar 2, 2017
2 parents ede0e42 + 6d0d04b commit c3499a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ Metrics/LineLength:
Style/HashSyntax:
EnforcedStyle: ruby19

Metrics/BlockLength:
Exclude:
- 'spec/**/*'
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ group :development, :test do
gem 'guard', '2.13.0'
gem 'guard-rspec'
# compatible with ruby >= 1.9.3
gem 'listen', '3.0.8'
gem 'guard-rubocop'
gem 'listen', '3.0.8'
gem 'terminal-notifier-guard'
end
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ Or install it yourself as:

## Usage

To start using the API you will need an APP_ID and a APP_SECRET which will be provided upon request (contact us at hola@mifiel.com).
For your convenience Mifiel offers a Sandbox environment where you can confidently test your code.

You will first need to create an account in [mifiel.com](https://www.mifiel.com) since the APP_ID and APP_SECRET will be linked to your account.
To start using the API in the Sandbox environment you need to first create an account at [sandbox.mifiel.com](https://sandbox.mifiel.com).

Once you have an account you will need an APP_ID and an APP_SECRET which you can generate in [sandbox.mifiel.com/access_tokens](https://sandbox.mifiel.com/access_tokens).

Then you can configure the gem with:

Expand Down
1 change: 1 addition & 0 deletions lib/mifiel/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def self.create(args)
name: name
}
payload = args.merge(payload)
payload.reject! { |_k, v| v.nil? }
response = process_request('/documents', :post, payload)
Mifiel::Document.new(JSON.parse(response))
end
Expand Down

0 comments on commit c3499a7

Please sign in to comment.