Modules@robinpath/notify
notify

@robinpath/notify

0.1.2Node.jsPublic

Notify module for RobinPath.

Notify

Notify module for RobinPath.

Package: @robinpath/notify | Category: Messaging | Type: Integration

Authentication

No authentication required. All functions are available immediately.

Use Cases

Use the notify module when you need to:

  • send -- Use notify.send to perform this operation
  • sendUrgent -- Use notify.sendUrgent to perform this operation
  • sendSilent -- Use notify.sendSilent to perform this operation
  • beep -- Use notify.beep to perform this operation
  • say -- Use notify.say to perform this operation

Quick Reference

FunctionDescriptionReturns
sendsendobject
sendUrgentsendUrgentobject
sendSilentsendSilentobject
beepbeepobject
saysayobject
alertalertobject
confirmconfirmobject
promptpromptobject
clipboardclipboardobject
getClipboardgetClipboardobject

Functions

send

send

Module: notify | Returns: object -- API response.

notify.send
ParameterTypeRequiredDescription
inputstringNoInput parameter

sendUrgent

sendUrgent

Module: notify | Returns: object -- API response.

notify.sendUrgent
ParameterTypeRequiredDescription
inputstringNoInput parameter

sendSilent

sendSilent

Module: notify | Returns: object -- API response.

notify.sendSilent
ParameterTypeRequiredDescription
inputstringNoInput parameter

beep

beep

Module: notify | Returns: object -- API response.

notify.beep
ParameterTypeRequiredDescription
inputstringNoInput parameter

say

say

Module: notify | Returns: object -- API response.

notify.say
ParameterTypeRequiredDescription
inputstringNoInput parameter

alert

alert

Module: notify | Returns: object -- API response.

notify.alert
ParameterTypeRequiredDescription
inputstringNoInput parameter

confirm

confirm

Module: notify | Returns: object -- API response.

notify.confirm
ParameterTypeRequiredDescription
inputstringNoInput parameter

prompt

prompt

Module: notify | Returns: object -- API response.

notify.prompt
ParameterTypeRequiredDescription
inputstringNoInput parameter

clipboard

clipboard

Module: notify | Returns: object -- API response.

notify.clipboard
ParameterTypeRequiredDescription
inputstringNoInput parameter

getClipboard

getClipboard

Module: notify | Returns: object -- API response.

notify.getClipboard
ParameterTypeRequiredDescription
inputstringNoInput parameter

Error Handling

All functions throw on failure. Common errors:

ErrorCause
Notify: "..." not configured. Call notify.setCredentials first.Check the error message for details
@desc "Send and validate result"
do
  set $result as notify.send
  if $result != null
    print "Success"
  else
    print "No result"
  end
enddo

Recipes

1. List and iterate Clipboard

Retrieve all items and loop through them.

@desc "Get clipboard and iterate results"
do
  set $result as notify.getClipboard
  each $item in $result
    print $item
  end
enddo

2. Create a new item with send

Create a new resource and capture the result.

set $result as notify.send
print "Created: " + $result

3. Check before creating

List existing items and only create if needed.

@desc "Get clipboard and send"
do
  set $existing as notify.getClipboard
  if $existing == null
    notify.send
    print "Item created"
  else
    print "Item already exists"
  end
enddo

4. Multi-step Notify workflow

Chain multiple notify operations together.

@desc "Send, send urgent, and more"
do
  set $r_send as notify.send
  set $r_sendUrgent as notify.sendUrgent
  set $r_sendSilent as notify.sendSilent
  print "All operations complete"
enddo

5. Safe send with validation

Check results before proceeding.

@desc "Send and validate result"
do
  set $result as notify.send
  if $result != null
    print "Success: " + $result
  else
    print "Operation returned no data"
  end
enddo

Related Modules

  • slack -- Slack module for complementary functionality
  • discord -- Discord module for complementary functionality
  • teams -- Teams module for complementary functionality
  • telegram -- Telegram module for complementary functionality
  • whatsapp -- WhatsApp module for complementary functionality

Versions (1)

VersionTagPublished
0.1.2latest1 months ago
Install
$ robinpath add @robinpath/notify

Collaborators

Dumitru Balaban
Dumitru Balaban
@dumitru
View all @robinpath modules
Version0.1.2
LicenseMIT
Unpacked Size3.5 KB
Versions1
Weekly Downloads21
Total Downloads21
Stars0
Last Publish1 months ago
Created1 months ago