docs/FulfillmentApi.md in ultracart_api-3.0.76 vs docs/FulfillmentApi.md in ultracart_api-3.1.0
- old
+ new
@@ -20,22 +20,15 @@
### Example
```ruby
# load the gem
require 'ultracart_api'
-# setup authorization
-UltracartClient.configure do |config|
- # Configure OAuth2 access token for authorization: ultraCartOauth
- config.access_token = 'YOUR ACCESS TOKEN'
- # Configure API key authorization: ultraCartSimpleApiKey
- config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
-end
+# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
+simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
+api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
-api_instance = UltracartClient::FulfillmentApi.new
distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
order_ids = [UltracartClient::Array<String>.new] # Array<String> | Orders to acknowledge receipt of (limit 100)
@@ -79,22 +72,15 @@
### Example
```ruby
# load the gem
require 'ultracart_api'
-# setup authorization
-UltracartClient.configure do |config|
- # Configure OAuth2 access token for authorization: ultraCartOauth
- config.access_token = 'YOUR ACCESS TOKEN'
- # Configure API key authorization: ultraCartSimpleApiKey
- config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
-end
+# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
+simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
+api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
-api_instance = UltracartClient::FulfillmentApi.new
distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
begin
@@ -136,23 +122,17 @@
### Example
```ruby
# load the gem
require 'ultracart_api'
-# setup authorization
-UltracartClient.configure do |config|
- # Configure OAuth2 access token for authorization: ultraCartOauth
- config.access_token = 'YOUR ACCESS TOKEN'
- # Configure API key authorization: ultraCartSimpleApiKey
- config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
-end
+# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
+simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
+api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
-api_instance = UltracartClient::FulfillmentApi.new
+
begin
#Retrieve distribution centers
result = api_instance.get_distribution_centers
p result
rescue UltracartClient::ApiError => e
@@ -187,22 +167,15 @@
### Example
```ruby
# load the gem
require 'ultracart_api'
-# setup authorization
-UltracartClient.configure do |config|
- # Configure OAuth2 access token for authorization: ultraCartOauth
- config.access_token = 'YOUR ACCESS TOKEN'
- # Configure API key authorization: ultraCartSimpleApiKey
- config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
-end
+# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
+simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
+api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
-api_instance = UltracartClient::FulfillmentApi.new
distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
shipments = [UltracartClient::FulfillmentShipment.new] # Array<FulfillmentShipment> | Orders to mark shipped
@@ -246,21 +219,14 @@
### Example
```ruby
# load the gem
require 'ultracart_api'
-# setup authorization
-UltracartClient.configure do |config|
- # Configure OAuth2 access token for authorization: ultraCartOauth
- config.access_token = 'YOUR ACCESS TOKEN'
- # Configure API key authorization: ultraCartSimpleApiKey
- config.api_key['x-ultracart-simple-key'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['x-ultracart-simple-key'] = 'Bearer'
-end
+# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
+simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
+api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
-api_instance = UltracartClient::FulfillmentApi.new
distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
inventories = [UltracartClient::FulfillmentInventory.new] # Array<FulfillmentInventory> | Inventory updates (limit 500)