Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Commit ffe2f6e

Browse files
authored
Merge pull request #5 from 2ndKitchen/fix-sandbox-urls
Fix sandbox urls, Fix api docs page
2 parents 16d7b16 + 1eeeb25 commit ffe2f6e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Codeship Status for StuartApp/stuart-client-ruby](https://app.codeship.com/projects/bacc9100-b159-0137-6e98-0e2ebd2815ea/status?branch=master)](https://app.codeship.com/projects/363050)
22

33
# Stuart Ruby Client
4-
For a complete documentation of all endpoints offered by the Stuart API, you can visit [Stuart API documentation](https://stuart.api-docs.io).
4+
For a complete documentation of all endpoints offered by the Stuart API, you can visit [Stuart API documentation](https://api-docs.stuart.com/).
55

66
## Install
77
``` bash
@@ -15,8 +15,8 @@ $ gem install stuart-client-ruby
1515
```ruby
1616
require 'stuart-client-ruby'
1717
environment = Stuart::Infrastructure::Environment::SANDBOX
18-
api_client_id = 'c6058849d0a056fc743203acb8e6a850dad103485c3edc51b16a9260cc7a7689' # can be found here: https://admin-sandbox.stuart.com/client/api
19-
api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin-sandbox.stuart.com/client/api
18+
api_client_id = 'c6058849d0a056fc743203acb8e6a850dad103485c3edc51b16a9260cc7a7689' # can be found here: https://admin.sandbox.stuart.com/client/api
19+
api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin.sandbox.stuart.com/client/api
2020
auth = Stuart::Infrastructure::Authenticator.new(environment, api_client_id, api_client_secret)
2121

2222
http_client = Stuart::Infrastructure::HttpClient.new(auth)

lib/stuart-client-ruby/infrastructure/environment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Stuart
22
module Infrastructure
33
class Environment
4-
SANDBOX = { base_url: "https://sandbox-api.stuart.com" }.freeze
4+
SANDBOX = { base_url: "https://api.sandbox.stuart.com" }.freeze
55

66
PRODUCTION = { base_url: "https://api.stuart.com" }.freeze
77
end

0 commit comments

Comments
 (0)