bvstone

GreenTools for Slack (G4SLK) v1.00 Released as Beta

Posted:

GreenTools for Slack (G4SLK) v1.00 Released as Beta

Update:  Check out This Article on G4SLK at IT Jungle/The Four Hundred Magazine!

BVSTools is proud to have released our newest offering, GreenTools for Slack (G4SLK) v1.00 as a beta.  

GreenTools for Slack (G4SLK) provides you with both Command and ILE interfaces to the most popular Slack APIs available for your IBM i.

We have had a couple customers interested in a method other than email to communicate with users from their IBM i (for example sending messages when a job enters MSGW).  We still offer our GreenJab application that lets you communicate with Jabber/XMPP servers, but ever since Google dropped XMPP as their standard for Google Talk, the XMPP standard has really been all but forgotten.  

One of the customers mentioned Slack as a possible solution, and from there it's history.  I realized not only would it be a useful IBM i application, but that I would use it as well!  (Proof of Concept articles are in the works).

The G4SLK application gives you access to commands and functions which allow you to:

G4SLK uses OAuth 2.0 authentication which is easily set up using a simple command from your green screen.

The process is simple and goes like this:

  • Step 1:  Install G4SLK and run the G4SLK Register Service (G4SLKRSVC) Command
  • Step 2: Follow the Instructions And Log into your Slack Account and Team
  • Step 3: Authorize G4SLK to the Functionality Listed
  • Step 4: Complete the Registration

Step 1:  Install G4SLK and run the G4SLK Register Service (G4SLKRSVC) Command

The G4SLK package comes with a command that allows you to register the Slack service for any user id and team that you use on Slack.  It is important to understand that for each user and team combination you will need to go through this registration process before using any G4LSLK commands or ILE Functions.

The G4SLKRSVC screen will look like this:

The link provided contains a special code unique to your OAuth 2.0 session.  If you are using a modern 5250 browser (such as IBM i Access) you should be able to click on the link and have your browser open.  If not, simply copy and paste the entire link to your browser.

Step 2: Follow the Instructions And Log into your Slack Account and Team

Once you click on the link in the previous step your browser will open to a BVSTools web page.  There will be a link that you click on that will connect you to your Slack account.

Click on the "Click Here" link and if you are not signed into your Slack account you will be guided through that process.  

If you ARE logged into your Slack account you will be brought to the screen at Step 3 and you will want to make sure that the account you are registering with G4SLK is the SAME account you are logged into.

Next, you will be asked for your email address and password that is associated with the particular Slack team your are registering:

Step 3: Authorize G4SLK to the Functionality Listed

Part of the OAuth 2.0 authorization process means you need to allow the G4SLK function to have access to your account and some of the functions.  This allows you to run these functions from your IBM i and interact with your Slack account as if you were using a PC, web or mobile app.  The screen will look like the following:

Step 4: Complete the Registration

Once you click on the Authorize button on the Slack authorization page, you will be returned to the BVSTools website where a registration code will be:

Once here, you can close this browser window/tab and return to your green screen where you were running the G4SLKRSVC command and press the F6 command and complete the registration.  When you press F6 the G4SLKRSVC command will retrieve the code that was generated for you and use it to request an OAuth 2.0 token from Slack.  Unlink other OAuth 2.0 systems (like Google and Microsoft), their tokens do not expire.  I expect in the future this may be added, but if it does the G4SLK application will be updated to allow that.  (The code is already there, just commented out.  >:)  )

Now you're all done and can start using the G4SLK commands and ILE functions for this account and team.

We've even provided a few sample programs.  One being a program called "CHAT" that you'll find tin the QRPGLESRC source physical file in the G4SLK library.  This is a simple program that you can use to send and receive messages from a Slack channel:

Because G4SLK is in beta, it may be updated often adding new features and bug fixes, so we encourage users to let us know if there is any functionality they need as well as report bugs with the proper information.

You can download G4SLK from our website.   Don't forget to request a key for the software.  Because GETURI is also required, you will also be sent a trial key for that automatically when you select G4SLK as the software to get a key for.

If you wish to be a beta tester and really get your hands dirty, feel free to contact us and we can get you trial keys good for 30 days instead of the 10 you can get from our website.  And as always, feel free to request new keys for as long as you need to try out the software.

G4SLK Requirements:

  • V5R4 or higher OS version (tested up to V7R3)
  • GETURI v7.00 or higher (included with G4SLK distribution library.)
  • Licensing for the G4SLKCH addon and GETURI

See also: Sending a Slack Alert Using JOBWATCH and G4SLK When a Job Enters MSGW Status


Last edited 06/15/2017 at 08:00:21



Latest Posts:

MAILTOOL Updated to Allow Failed Message on Invalid Recipient MAILTOOL Updated to Allow Failed Message on Invalid Recipient
Posted by May 20, 2018
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
Non HTTPS Callbacks Removed from GreenTools for G Suite (G4G) Non HTTPS Callbacks Removed from GreenTools for G Suite (G4G)
Posted by April 15, 2018
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
IBM i Related Survey Available IBM i Related Survey Available
Posted by April 7, 2018
IBM Power Systems >> (QGPL) IBM i
BVSTools Releases Braintree Webhook Open Source Application - Node.js BVSTools Releases Braintree Webhook Open Source Application - Node.js
Posted by April 5, 2018
Programming >> Open Source
BVSTools Now Offering Web Services (BETA) BVSTools Now Offering Web Services (BETA)
Posted by April 3, 2018
BVSTools >> BVSTools Announcements
Creating a Reverse SSL Proxy Using RPG on the IBM i - Part 2 Creating a Reverse SSL Proxy Using RPG on the IBM i - Part 2
Posted by March 29, 2018
Programming >> Web Programming
Still on V7R1 or Earlier?  Here's Why You Should Upgrade NOW! Still on V7R1 or Earlier? Here's Why You Should Upgrade NOW!
Posted by February 21, 2018
IBM Power Systems >> (QGPL) IBM i
Converting a MMDDYY date format to YYMMDD for Sorting Using SQL Converting a MMDDYY date format to YYMMDD for Sorting Using SQL
Posted by February 16, 2018
Programming >> RPG Programming
Moving All Files from a Google Drive Folder to the Trash Using GreenTools for Google Apps (G4G) Moving All Files from a Google Drive Folder to the Trash Using GreenTools for Google Apps (G4G)
Posted by February 3, 2018
BVSTools >> BVSTools Software Discussion >> GreenTools for G Suite (Google Apps) (G4G) Specific Discussion
Removing Unwanted Characters from a String with RPG Removing Unwanted Characters from a String with RPG
Posted by February 2, 2018
Programming >> RPG Programming
GETURI Version 8.10 Released GETURI Version 8.10 Released
Posted by January 23, 2018
BVSTools >> BVSTools Announcements >> Get URI (GETURI) Specific Announcements
BVSTools is Now a Sponsor of ALLAS400S.com BVSTools is Now a Sponsor of ALLAS400S.com
Posted by January 17, 2018
BVSTools >> BVSTools Announcements
Service Pack SP171219 Released for G4PP v3.10 Service Pack SP171219 Released for G4PP v3.10
Posted by December 20, 2017
BVSTools >> BVSTools Announcements >> GreenTools for PayPal (G4PP) Specific Announcements
GETURI Now Requires Minimum OS of V7R1 or Higher GETURI Now Requires Minimum OS of V7R1 or Higher
Posted by December 12, 2017
BVSTools >> BVSTools Software Discussion >> Get URI (GETURI) Specific Discussion
Need Help Updating Your Software Versions?  We Can Help. Need Help Updating Your Software Versions? We Can Help.
Posted by December 8, 2017
BVSTools >> BVSTools Announcements

Reply




Copyright 1983-2018 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).