Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How Can I use REST API in Perl to connect to JAZZ and get the user information back in perl

I want to loging using Perl to JAZZ RTC and get the User details (like user id, name etc) Can one guide me please. How do I use REST API to do this work

0 votes



2 answers

Permanent link
currently I don't think anyone has built any perl modules to wrapper oslc.

one could certainly do it.   the Eclipse Lyo project http://www.eclipse.org/lyo/ intends to support other languages.

this article  does a good job of describing the data flows, authorization and services catalog discovery

here is a little windows batch file that will pull back the project list from a server.. it does not use the proper discovery methodology defined

<code>
set COOKIES=.\cookies.txt

set USER=xxxxx
set PASSWORD=yyyyy
set HOST=https://server:port


curl -k -c %cookies% "%host%/jts/authenticated/identity" >nul

curl -k -L -b %COOKIES% -c %COOKIES% -d j_username=%USER% -d j_password=%PASSWORD% "%host%/jts/authenticated/j_security_check" >nul

curl -k -L -b %COOKIES% "%host%/ccm/oslc/workitems/catalog
</code>

0 votes


Permanent link
I posted another example to read/write SystemMessages with perl over REST. This shows you how to connect and login.


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 1,700

Question asked: Apr 29 '13, 8:51 a.m.

Question was seen: 7,459 times

Last updated: Apr 29 '13, 12:24 p.m.

Related questions
Confirmation Cancel Confirm