File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Please follow the [installation](#installation) procedure and then run the follo
3838```ruby
3939require 'mx-platform-ruby'
4040
41- MxPlatformRuby.configure do |config|
41+ :: MxPlatformRuby.configure do |config|
4242 # Configure with your Client ID/API Key from https://dashboard.mx.com
4343 config.username = 'Your Client ID'
4444 config.password = 'Your API Key'
@@ -51,16 +51,16 @@ api_client = ::MxPlatformRuby::ApiClient.new
5151api_client.default_headers['Accept'] = 'application/vnd.mx.api.v1+json'
5252mx_platform_api = ::MxPlatformRuby::MxPlatformApi.new(api_client)
5353
54- user_create_request_body = MxPlatformRuby::UserCreateRequestBody.new(
55- user: MxPlatformRuby::UserCreateRequest.new(
56- metadata: " Creating a user!"
54+ request_body = :: MxPlatformRuby::UserCreateRequestBody.new(
55+ user: :: MxPlatformRuby::UserCreateRequest.new(
56+ metadata: ' Creating a user!'
5757 )
5858)
5959
6060begin
61- result = mx_platform_api.create_user(user_create_request_body )
62- p result
63- rescue MxPlatformRuby::ApiError => e
61+ response = mx_platform_api.create_user(request_body )
62+ p response
63+ rescue :: MxPlatformRuby::ApiError => e
6464 puts "Error when calling MxPlatformApi->create_user: #{ e} "
6565end
6666```
You can’t perform that action at this time.
0 commit comments