authentication using restful api

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2013 05:56 AM
Hi want to establish connection using resful api , but i am fail
can u give me code how to establish connection and accessing ticket
can u give me code how to establish connection and accessing ticket
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2013 07:16 AM
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
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
