Skip to content

Instantly share code, notes, and snippets.

@eeshansim
Created May 3, 2016 00:42
Show Gist options
  • Save eeshansim/8e7e046df7f966086262b95d4bfdb741 to your computer and use it in GitHub Desktop.
Save eeshansim/8e7e046df7f966086262b95d4bfdb741 to your computer and use it in GitHub Desktop.
Workato SDK Basic Authentication definition
connection: {
fields: [
{
name: 'api_key',
optional: false,
hint: 'Profile (top right) > Settings > Your API Keys'
}
],
authorization: {
type: 'basic_auth',
# close.io uses api key only for authentication. treats apikey as username and password left blank
# curl -u "{your api_key}:" "https://app.close.io/api/v1/me/"
credentials: ->(connection) {
user(connection['api_key'])
password("")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment