Skip to content

Commit 1e8408d

Browse files
author
unabris
committed
Merge remote-tracking branch 'upstream/master'
2 parents 7ea2027 + 7c1fa37 commit 1e8408d

File tree

6 files changed

+207
-201
lines changed

6 files changed

+207
-201
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v0.8.1.pre
2+
3+
* bug-fixes
4+
* Fix exception handling
5+
16
### v0.8.0.pre
27

38
* deprecations

GETTING_STARTED.md

Lines changed: 184 additions & 197 deletions
Large diffs are not rendered by default.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
beyond_api (0.8.0.pre)
4+
beyond_api (0.8.1.pre)
55
faraday (~> 0.15)
66

77
GEM

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55
[![Maintainability](https://api.codeclimate.com/v1/badges/1d173fa0b393e8eaf2a2/maintainability)](https://codeclimate.com/github/ePages-de/beyond_api-ruby_client/maintainability)
66
![License](https://img.shields.io/github/license/ePages-de/beyond_api-ruby_client)
77

8+
## Get your credentials
9+
10+
### Sign up for a developer test shop
11+
12+
First you will need to sign up for a Beyond test shop.
13+
Visit [our sign up form](https://signup.beyondshop.cloud), fill out the form with your data, and click the **Sign up** button.
14+
15+
### Create a custom app
16+
17+
Log in to the cockpit of your test shop, navigate to **Apps > Custom apps** and click **Add custom app**.
18+
Fill out the form with the **App name**, **Application Callback URL** and **App scopes**.
19+
Save your app.
20+
21+
You will then receive your `client_id` and `client_secret`.
22+
823
## Installation
924

1025
Add this line to your application's Gemfile:

lib/beyond_api/utils.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ def handle_response(response, status, respond_with_true: false)
1010
response = sanitize_response(response)
1111
BeyondApi.configuration.object_struct_responses ? to_object_struct(response) : response
1212
else
13-
error = BeyondApi::Error.new(response)
1413
BeyondApi.logger.error "[Beyond API] #{response}"
15-
BeyondApi.configuration.raise_error_requests ? raise(error) : error
14+
BeyondApi.configuration.raise_error_requests ? raise(response.to_s) : BeyondApi::Error.new(response)
1615
end
1716
end
1817

lib/beyond_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module BeyondApi
2-
VERSION = "0.8.0.pre".freeze
2+
VERSION = "0.8.1.pre".freeze
33
end

0 commit comments

Comments
 (0)