Quite awhile ago I wrote a Ruby API for Remedy -- I always intended to share it -- but never got the time. Today -- I made the time.

Is it perfect - no.
Is it documented - no.
Does it work - yes.

Works with ARS 7.5 back to 6.00.
Requires Kinetic Link  (free/open source) get it here:
http://www.kineticdata.com/Products/KineticLink.html

So -- if you are interested in Ruby and would like a copy -- let me know.


Example:


require 'rubygems'
require 'link'

include Kinetic

Link.set_connection('Demo','','matrix.kineticdata.com:8081','127.0.0.1')

# get a list of all forms on arserver
Link.structures

# get a list of all users defined on arserver
Link.entries("User")

# create a record in a sample form
fields = {'2' => 'Tester', '4' => 'Tester', '8' => 'Test entry'}
Link.create("KLINK_CanonicalForm")

# find all entries matching ???
param = %|'Request ID'!="0"|
existing_entry = Link::entries("KLINK_CanonicalForm",param)

# find specific entry
entry = Link::entry("KLINK_CanonicalForm", existing_entry)

# update the record
fields = {'8' => "Test entry - #{Time.now}"}
updated_record = Link.update("KLINK_CanonicalForm", record, updated_fields)


# delete that record
Link.delete("KLINK_CanonicalForm", entry)

# how many users logged in?
Link.statistics("CURRENT_USERS")








Thanks,


-John





--
John Sundberg

Kinetic Data, Inc.
"Building a Better Service Experience"
Recipient of the WWRUG09 Innovator of the Year Award

[email protected]
651.556.0930  I  www.kineticdata.com








_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

Reply via email to