<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 12px; font-family: Verdana, sans-serif; ">
<div>
<div>Hi</div>
<div><br>
</div>
<div>It tells you how to store the session id for reuse over the command line in the Archives Space Developer You Tube videos: <a href="https://www.youtube.com/playlist?list=PLJFitFaE9AY_DDlhl3Kq_vFeX27F1yt6I">https://www.youtube.com/playlist?list=PLJFitFaE9AY_DDlhl3Kq_vFeX27F1yt6I</a>.
  They are really useful to watch if you are using the API.</div>
<div><br>
</div>
<div>
<div style="font-family: Consolas; font-size: medium; ">
<div style="font-family: Verdana; font-size: 12px; ">
<div style="font-size: medium; ">Claire Knowles</div>
<div style="font-size: medium; ">University of Edinburgh</div>
<div style="font-size: medium; "><br>
</div>
</div>
</div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Levy>, Michael <<a href="mailto:mlevy@ushmm.org">mlevy@ushmm.org</a>><br>
<span style="font-weight:bold">Reply-To: </span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, 6 May 2014 16:48<br>
<span style="font-weight:bold">To: </span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Archivesspace_Users_Group] Help with REST API<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">PS, using AS version <span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; text-align: right; ">1.0.7.1</span>
<div class="gmail_extra">
<div>
<div dir="ltr">
<p><span style="font-size:9.0pt"><span style="color:blue"><br>
</span></span></p>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Tue, May 6, 2014 at 11:46 AM, Levy, Michael <span dir="ltr">
<<a href="mailto:mlevy@ushmm.org" target="_blank">mlevy@ushmm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Hello, </div>
<div><br>
</div>
<div>We're attempting to retrieve the data for a resource in using the REST API.</div>
<div><br>
</div>
<div>The request is:</div>
<div>GET /repositories/1/resources/1</div>
<div><br>
</div>
<div>We're receiving receiving a 403 Forbidden HTTP response.  I assume I must authenticate.</div>
<div><br>
</div>
<div>We're able to "log in" using:</div>
<div>POST /users/admin/login (supplying Username and Password as parameters.)</div>
<div><br>
</div>
<div>The log in appears to work.  Among other values, we're receiving back a "session" string.</div>
<div><br>
</div>
<div>Maybe the session string is required on subsequent requests to show authentication, but are unsure of the correct way to pass it.</div>
<div><br>
</div>
<div>Is this documented; are there examples we're not finding yet?</div>
<div><br>
</div>
<div>TIA</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>