Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Integrate Endpoints

This example demonstrates the use of TORO Integrate's endpoints.

Setting Up the Endpoints

Some of the endpoints in the examples package needs to be setup before you could invoke the service. In this page, we'll run you through the setup process of each endpoint. For each of the endpoints, we've provided a Gloop and a Groovy file version that can be used as a service.

Scheduler Endpoint

The Scheduler Endpoint is already created in the examples package. Before enabling the scheduler endpoint, first go to package properties and configure the email credentials. All of the properties in the following table is required.

Key Description
protocol Protocol of the SMTP server.
server Host of the SMTP server.
port Port of the SMTP server.
login Username used for the SMTP server.
password Password used for the SMTP server.
email.bulk.to Comma-separated email addresses that will receive the email.

After configuring the properties you can now proceed with enabling and starting the endpoint with the name SendScheduledEmail in the examples package.

  • Gloop version

    1
    code/endpointServices/gloop/schedulerExamples/SendScheduledEmail.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/SchedulerExamples.sendScheduledEmail()
    

JMS Listener Endpoint

The JMS Listener Endpoint is already configured, all you have to do is to start the endpoint named JMSListenerExample in the examples package.

  • Gloop version

    1
    code/endpointServices/gloop/JMSExamples/ReceiveJMS.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/JMSExamples.receiveJMS()
    

Email Endpoint

For the Email Endpoint, create the endpoint and provide the credentials needed.

Key Description
protocol Protocol of the SMTP server.
server Host of the SMTP server.
port Port of the SMTP server.
login Username used for the SMTP server.
password Password used for the SMTP server.
  • Gloop version

    1
    code/endpointServices/gloop/emailExamples/ReadEmailAttachments.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/EmailExamples.readEmailAttachment()
    

Bonus Points

For bonus points, configure the send service response as a reply. The service will return the number of attachments it receives.

RSS Endpoint

The RSS Endpoint is already configured, you just have to enable and start the endpoint named RSSExample.

  • Gloop version

    1
    code/endpointServices/gloop/rssExamples/RssReader.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/RSSExamples.rssReader()
    

Tracker Resubmit Endpoint

The Tracker Resubmit Endpoint example is already configured, enable and start the endpoint to start using it. Take note that this is dependent on the RSS endpoint, so it has to be enabled and started before you can use this example.

  • Gloop version

    1
    code/endpointServices/gloop/trackerResubmitExamples/Resubmit.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/TrackerResubmitExamples.resubmit()
    

Directory Watcher Endpoint

Before creating the Directory Watcher Endpoint, configure the FTP credentials on package properties.

Key Description
ftp.host FTP server host
ftp.username FTP server username
ftp.password FTP server password
ftp.protocol FTP server

Use one of the following as the endpoint's service.

  • Gloop version

    1
    code/endpointServices/gloop/FileExamples/SendToRemoteLocation.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/FileExamples.sendToRemoteLocation()
    

REST Alias Endpoint

The REST Alias Endpoint is already configured, you just have to enable the endpoint named RestAliasExample.

  • Gloop version

    1
    code/endpointServices/gloop/JMSExamples/SendJMSMessage.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/JMSExamples.sendJMSMessage()
    

FTP Client Endpoint

Create the FTP Client Endpoint and use one of the following as the service of the endpoint.

  • Gloop version

    1
    code/endpointServices/gloop/FileExamples/LogToFile.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/FileExamples.logFileChange()
    

Jabber Endpoint

Create the Jabber Endpoint and use one of the services below.

  • Gloop version

    1
    code/endpointServices/gloop/JabberExamples/GuessingGame.gloop
    
  • Groovy version

    1
    code/endpointServices/groovy/JabberGuessingGame.guess()