cancel
Showing results for 
Search instead for 
Did you mean: 

authentication using restful api

priyankasoni
Champ in-the-making
Champ in-the-making
Hi want to establish connection  using resful api , but i am fail

can u give me code how to establish connection and accessing ticket

1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Hi Priyanka,

there is a login webscript

http://localhost:8080/alfresco/service/api/login?u=admin&pw=admin"


which will return you ticket

<ticket>TICKET_259b1752d680ce926783ff61cc0902beea00d9a6</ticket>



you need to extract that ticket from the response
TICKET_259b1752d680ce926783ff61cc0902beea00d9a6


and can use that ticket for all subsequent calls.
http://localhost:8080/alfresco/service/av/deals/Deals?format=json&ticket= TICKET_259b1752d680ce926783ff61cc0902beea00d9a6