Skip to content

Conversation

@Aaron022
Copy link
Contributor

https://github.com/workato/connector_sdk/pull/514
Status: Merged

Authentication type

  • none

Actions

  • Approve time-off request
  • Submit time-off request
  • Reject time-off request
  • Change time-off request status
  • Get time-off request details
  • Validate token
  • Get version
  • Get periods
  • Get leave balances

{
multipart_form_boundary: multipart_form_boundary,
multipart_form_parts:
call(:extract_multipart_parts, { multipart_form_boundary: multipart_form_boundary, body: body }),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/BracesAroundHashParameters: Redundant curly braces around a hash parameter.
Metrics/LineLength: Line is too long. [115/80]

if code.to_i != 200
error("#{code}:#{body}")
else
multipart_form_boundary = "--#{call(:extract_multipart_boundary, headers)}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [89/80]

'@xmlns:xsd' => 'http://services.workforcesoftware.com/xsd',
'@xmlns:xsd1' => 'http://ws.apache.org/axis2/xsd',
'@xmlns:xsd2' => 'http://data.service.webservices.workforcesoftware.com/xsd',
strip_response_namespaces: true).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

}]
}]
}]).
headers('Content-Type': 'text/xml;charset=UTF-8').
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

}]
}]
}]
}]).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

}]
}]
}]).
headers('Content-Type': 'text/xml;charset=UTF-8').
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

}]
}]
}]
}]).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

'@xmlns:wsu': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
'@soapenv:mustUnderstand': '1',
'wsse:UsernameToken': [{
'@wsu:Id': 'UsernameToken-CBF92886ABADBFD1E715712314369112',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [84/80]

nonce = "#{now.to_i}workto"
created_time = now.to_time.strftime('%Y-%m-%dT%H:%M:%SZ')
password_digest = (nonce + created_time + connection['password']).sha1.encode_base64
post('/workforce/services/E2G_getBankBalances').
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/DotPosition: Place the . on the next line, together with the method name.

execute: lambda do |connection, input|
nonce = "#{now.to_i}workto"
created_time = now.to_time.strftime('%Y-%m-%dT%H:%M:%SZ')
password_digest = (nonce + created_time + connection['password']).sha1.encode_base64
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [92/80]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants