Action Invoker Name: is public:
|
#
# ProBinder Action Invoker
#
# Action Invoker requires user params:
# - username: The ProBinder login username
# - password: The ProBinder login password
#
#
# createBinderEntry function requires arguments:
#
# - company: The ProBidner company of the binder
# - context: The ProBinder context (the binder ID)
#
exports.createBinderEntry = ( args ) ->
url = 'https://probinder.com/service/27/save'
credentials =
username: params.username
password: params.password
data =
companyId: args.company
context: args.context
text: args.content
needle.post url, data, credentials, ( err, resp, body ) ->
if err
log err
if resp.statusCode isnt 200
log 'Request not successful:'
log body
|
This action invoker requires user-specific properties:
|