<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 17/02/2016 15:54, Jasper den Hertog
      wrote:<br>
      <br>
      Thanks.  Can this documentation update be included in:<br>
      <a class="moz-txt-link-freetext" href="https://atlas.ripe.net/docs/rest/">https://atlas.ripe.net/docs/rest/</a><br>
      Under the last topic of "Querying for Your Own Measurements"<br>
      <br>
      Thanks,<br>
      Hank<br>
      <br>
    </div>
    <blockquote cite="mid:A5E17BB1-09DC-4B1E-9BB7-5FCAE4C10402@ripe.net"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=utf-8">
      Hi Sebastian, Hi List,
      <div class=""><br class="">
      </div>
      <div class="">I would like to inform you that we’ve created an API
        endpoint with a key= query parameter on the (stil in progress)
        v2 API.</div>
      <div class=""><br class="">
      </div>
      <div class="">You can get a listing of your own measurements if
        you include a key - with sufficient permissions - that was
        created by you:</div>
      <div class=""><br class="">
      </div>
      <div class=""><a moz-do-not-send="true"
          href="https://atlas.ripe.net/api/v2/measurements/my/?key="
          class="">https://atlas.ripe.net/api/v2/measurements/my/?key=</a><YOURKEY><br
          class="">
        <div class="">
          <div class=""><br class="">
          </div>
          <div class="">The key has to to have either ‘create
            measurement’ or ‘download results of measurements’
             permissions. The listing will return ALL measurements
            belonging to the user who created the given key, not only
            the measurements created with that key.</div>
          <div class=""><br class="">
          </div>
          <div class="">The resource </div>
          <div class=""><br class="">
          </div>
          <div class=""><a moz-do-not-send="true"
              href="https://atlas.ripe.net/api/v2/measurements/my/"
              class="">https://atlas.ripe.net/api/v2/measurements/my/</a></div>
          <div class=""><br class="">
          </div>
          <div class="">also gives a listing of you measurements if
            you’re logged in and will replace the ?mine=true query
            parameter. The query parameter will be deprecated in v2.</div>
          <div class=""><br class="">
          </div>
          <div class="">greetings,</div>
          <div class=""><br class="">
          </div>
          <div class="">Jasper</div>
          <div class=""><br class="">
          </div>
          <div class="">
            <div>
              <blockquote type="cite" class="">
                <div class="">On 2016-01-26 0:41, Sebastian Castro
                  wrote:<br class="">
                  <blockquote type="cite" class="">Hi:<br class="">
                    <br class="">
                    I'm currently testing the API to get a list of my
                    own measurements. The<br class="">
                    API here reports<br class="">
                    <br class="">
                    -----------<br class="">
                    Querying for Your Own Measurements<br class="">
                    <br class="">
                    In order to limit the results to your measurements
                    only, just add a<br class="">
                    mine=true argument. For example:<br class="">
                    <br class="">
                     /api/v1/measurement/?mine=true<br class="">
                    Note that this only works if you're logged in,
                    otherwise the result is<br class="">
                    the same as for any unauthenticated user.<br
                      class="">
                    -----------<br class="">
                    <br class="">
                    This seems to imply you need to manage a session
                    within your code to get<br class="">
                    your own measurements, which I think violates the
                    principle of a REST<br class="">
                    API. If you have the API key that provides you with
                    access, shouldn't be<br class="">
                    reasonable to run the call as<br class="">
                    <br class="">
                    /api/v1/measurement/?mine=true&key=API_KEY<br
                      class="">
                    <br class="">
                    and get a list of your own measurements?<br class="">
                    <br class="">
                    Thoughts? Am I reading the documentation in the
                    wrong way?<br class="">
                    <br class="">
                    Thanks in advance<br class="">
                  </blockquote>
                  <br class="">
                </div>
              </blockquote>
            </div>
            <br class="">
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>