Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Driving Groupwise with ruby - win32ole

0 views
Skip to first unread message

bww00...@yahoo.com

unread,
Aug 23, 2005, 4:42:27 PM8/23/05
to
Anyone have examples of driving groupwise with ruby ???

Thanks
Bryan Webb

Dave Burt

unread,
Aug 23, 2005, 6:02:36 PM8/23/05
to
Brian Webb wrote:
> Anyone have examples of driving groupwise with ruby ???

If you have an API reference, or examples in VB, they're easily translatable
into Ruby.

The API reference is available here:
http://developer.novell.com/ndk/gwobjapi.htm

And a comparison of some sample code is below:

VB:
Dim objGroupWise As Object
objGroupWise = CreateObject("NovellGroupWareSession")
Dim objAccount As AccountSet
objAccount = objGroupWise.Login(txtUserID, txtCommandLine)
Dim strPathToHost As String
strPathToHost = objAccount.PathToHost
Dim objABook As Object
For Each objABook In objAccount.AddressBooks
MsgBox objABook.Name
Next

Ruby:
groupwise = WIN32OLE.new("NovellGroupWareSession")
account = groupwise.Login(user_id, command_line)
path_to_host = account.PathToHost
account.AddressBooks.each do |address_book|
puts address_book.name
end

Cheers,
Dave


0 new messages