You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,15 @@ gem 'bigcommerce', '~> 1.0.0'
24
24
- Ruby 2.0.0 or newer. Please refer to the `.travis.yml` to see which versions we officially support.
25
25
26
26
## Getting Started
27
-
In order to make requests to our API, you must register as a developer and have your credentials ready.
27
+
To make requests to our API, you must register as a developer and have your credentials ready.
28
28
29
-
Its also very important to note that for the OAuth authentication mechanism, the resources you have acccess to depend on the scopes which your application has been granted by the merchant. For more information about the Store API scopes, see: [OAuth Scopes](https://developer.bigcommerce.com/api/scopes).
29
+
Also very important: For the OAuth authentication mechanism, the resources to which you have acccess depend on the scopes that the merchant has granted to your application. For more information about Store API scopes, see: [OAuth Scopes](https://developer.bigcommerce.com/api/scopes).
30
30
31
31
## Authentication
32
-
We currently have two different authentication schemes you can use depending on your use case.
32
+
We currently have two different authentication schemes that you can select, depending on your use case.
33
33
34
34
### OAuth
35
-
OAuth apps can be submitted to [BigCommerce App Store](https://www.bigcommerce.com/apps), allowing other merchants to install it in their BigCommerce store.
35
+
OAuth apps can be submitted to [BigCommerce App Store](https://www.bigcommerce.com/apps), allowing other merchants to install these apps in their BigCommerce stores.
In order to authenticate the API client, you will need to configure the client like the following.
45
+
To authenticate your API client, you will need to configure the client like the following examples.
46
46
47
47
### OAuth App
48
48
49
-
-```client_id```: Obtained from the "My Apps" section on the [developer portal](http://developer.bigcommerce.com).
49
+
-```client_id```: Obtained from the on the BigCommerce [Developer Portal's](http://developer.bigcommerce.com) "My Apps" section.
50
50
-```access_token```: Obtained after a token exchange in the auth callback.
51
51
-```store_hash```: Also obtained after the token exchange.
52
52
@@ -60,7 +60,7 @@ end
60
60
61
61
### Basic Authentication (Legacy)
62
62
63
-
To get all the basic auth credentials, simply visit your store admin page and navigate to the `Advanced Settings > Legacy API Settings`. Once there, you can create a new legacy api account to authenticate with.
63
+
To get all the basic auth credentials, simply visit your store admin page, and navigate to the `Advanced Settings` > `Legacy API Settings`. Once there, you can create a new legacy API account on which to authenticate.
64
64
65
65
```rb
66
66
Bigcommerce.configure do |config|
@@ -73,7 +73,7 @@ end
73
73
74
74
__SSL Configuration__
75
75
76
-
If you are using your own self-signed certificate, you can pass SSL options to Faraday. This is not required, but may be useful in special edge cases.
76
+
If you are using your own, self-signed, certificate, you can pass SSL options to Faraday. This is not required, but might be useful in special edge cases.
77
77
78
78
```rb
79
79
Bigcommerce.configure do |config|
@@ -90,11 +90,11 @@ end
90
90
For more information about configuring SSL with Faraday, please see the following:
-[Setting up SSL certificates](https://github.com/lostisland/faraday/wiki/Setting-up-SSL-certificates)
93
+
-[Faraday: Setting up SSL certificates](https://github.com/lostisland/faraday/wiki/Setting-up-SSL-certificates)
94
94
95
95
96
96
## Usage
97
-
For full examples on using the API client, please see the [examples folder](examples) and refer to the[developer documentation](https://developer.bigcommerce.com/api).
97
+
For full examples of using the API client, please see the [examples folder](examples) and refer to BigCommerce's[developer documentation](https://developer.bigcommerce.com/api).
98
98
99
99
Example:
100
100
@@ -113,11 +113,11 @@ Bigcommerce::System.time
113
113
114
114
### Thread Safety
115
115
116
-
The `Bigcommerce.configure` method is NOT threadsafe. This mechanism is designed for applications or cli where thread safety is not a concern. If you need to guarantee thread safety, we support another mechanism to make threadsafe API requests.
116
+
The `Bigcommerce.configure` method is NOT thread-safe. This mechanism is designed for applications or CLI's (command-line interfaces) where thread safety is not a concern. If you need to guarantee thread safety, we support this alternative mechanism to make thread-safe API requests:
117
117
118
-
Rather then setting up a single `connection` for all API requests, you will want to construct a new connection for each thread. If you can make sure that each of these connections is stored in a threadsafe manner, you can pass the `connection` as you query the resource.
118
+
Rather then setting up a single `connection` for all API requests, you would construct a new connection for each thread. If you can ensure that each of these connections is stored in a thread-safe manner, you can pass the `connection` as you query the resource.
119
119
120
-
This connection is nothing more than a `Faraday::Connection` so if you want to write your own, or use your own adapers, you can feel free. Please refer to the[connection class](https://github.com/bigcommerce/bigcommerce-api-ruby/blob/master/lib/bigcommerce/connection.rb) for more details.
120
+
This connection is nothing more than a `Faraday::Connection`– so if you want to write your own, or to use your own adapters, you can feel free. Please refer to this gem's[connection class](https://github.com/bigcommerce/bigcommerce-api-ruby/blob/master/lib/bigcommerce/connection.rb) for more details.
0 commit comments