docs/DistributionsApi.md in phrase-1.0.1 vs docs/DistributionsApi.md in phrase-1.0.2
- old
+ new
@@ -12,11 +12,11 @@
## distribution_create
-> distribution_create(account_id, distribution_create_parameters, opts)
+> Distribution distribution_create(account_id, distribution_create_parameters, opts)
Create a distribution
Create a new distribution.
@@ -31,12 +31,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::DistributionsApi.new
account_id = 'account_id_example' # String | Account ID
distribution_create_parameters = Phrase::DistributionCreateParameters.new # DistributionCreateParameters |
@@ -44,11 +43,12 @@
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}
begin
#Create a distribution
- api_instance.distribution_create(account_id, distribution_create_parameters, opts)
+ result = api_instance.distribution_create(account_id, distribution_create_parameters, opts)
+ pp result
rescue Phrase::ApiError => e
puts "Exception when calling DistributionsApi->distribution_create: #{e}"
end
```
@@ -61,20 +61,20 @@
**distribution_create_parameters** | [**DistributionCreateParameters**](DistributionCreateParameters.md)| |
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
### Return type
-Response<(nil (empty response body))>
+Response<([**Distribution**](Distribution.md))>
### Authorization
[Basic](../README.md#Basic), [Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: application/json
-- **Accept**: Not defined
+- **Accept**: application/json
## distribution_delete
> distribution_delete(account_id, id, opts)
@@ -94,12 +94,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::DistributionsApi.new
account_id = 'account_id_example' # String | Account ID
id = 'id_example' # String | ID
@@ -157,12 +156,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::DistributionsApi.new
account_id = 'account_id_example' # String | Account ID
id = 'id_example' # String | ID
@@ -221,12 +219,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::DistributionsApi.new
account_id = 'account_id_example' # String | Account ID
id = 'id_example' # String | ID
@@ -287,11 +284,10 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::DistributionsApi.new
account_id = 'account_id_example' # String | Account ID
opts = {