CINXE.COM
Mendeley API Reference
<!doctype html> <html> <head> <meta charset="utf-8"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>Mendeley API Reference</title> <link href="stylesheets/screen.css" rel="stylesheet" type="text/css" media="screen" /> <link href="stylesheets/print.css" rel="stylesheet" type="text/css" media="print" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="javascripts/all.js" type="text/javascript"></script> <script> $(function() { setupLanguages(["shell"]); }); </script> </head> <body class="index"> <a href="#" id="nav-button"> <span> NAV <img src="images/navbar.png" /> </span> </a> <div class="tocify-wrapper"> <img src="images/logo.png" /> <div class="lang-selector"> <a href="#" data-language-name="shell">cURL</a> </div> <div class="search"> <input type="text" class="search" id="input-search" placeholder="Search"> </div> <ul class="search-results"></ul> <div id="toc"> </div> <ul class="toc-footer"> <li><a href="http://dev.mendeley.com/">Sign Up for a Developer Key</a></li> <li><a href='http://github.com/tripit/slate'>Documentation Powered by Slate</a></li> </ul> </div> <div class="page-wrapper"> <div class="dark-box"></div> <div class="content"> <h1 id="introduction">Introduction</h1> <p>This is the reference documentation for the Mendeley API. It contains details of the endpoints that the API offers, and examples of how to use it.</p> <p>For more information, see the <a href="http://dev.mendeley.com">developer portal</a>.</p> <p>When working with collections, paged results and ordering please consult the <a href="http://dev.mendeley.com/reference/topics/pagination.html">pagination section on our developer portal</a></p> <h1 id="annotations">Annotations</h1> <h2 id="annotation-attributes">Annotation attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>identifier (UUID)</td> </tr> <tr> <td>created</td> <td>string</td> <td>date the annotation was created. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>last_modified</td> <td>string</td> <td>date the annotation was updated. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>color</td> <td>color</td> <td>RGB values</td> </tr> <tr> <td>text</td> <td>string</td> <td>text value of the annotation</td> </tr> <tr> <td>positions</td> <td>array of HighlightBox’s</td> <td>wrapper object contains page and coordinates of the annotation bounding box.</td> </tr> <tr> <td>privacy_level</td> <td>string</td> <td>public, group or private.</td> </tr> <tr> <td>document_id</td> <td>string</td> <td>UUID of the document which the file is attached to.</td> </tr> <tr> <td>profile_id</td> <td>string</td> <td>UUID of the user that created the annotation.</td> </tr> <tr> <td>filehash</td> <td>string</td> <td>filehash of which the annotation belongs to.</td> </tr> </tbody></table> <h2 id="retrieving-annotations">Retrieving annotations</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/annotations'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-annotation.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"d6526d08-22f2-4c1f-b80b-092e6e3df528"</span>, <span class="s2">"color"</span>: <span class="o">{</span> <span class="s2">"r"</span>: 255, <span class="s2">"g"</span>: 255, <span class="s2">"b"</span>: 0 <span class="o">}</span>, <span class="s2">"text"</span>: <span class="s2">"This is a sticky note"</span>, <span class="s2">"positions"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"top_left"</span>: <span class="o">{</span> <span class="s2">"x"</span>: 269.035, <span class="s2">"y"</span>: 695.428 <span class="o">}</span>, <span class="s2">"bottom_right"</span>: <span class="o">{</span> <span class="s2">"x"</span>: 269.035, <span class="s2">"y"</span>: 695.428 <span class="o">}</span>, <span class="s2">"page"</span>: 1 <span class="o">}</span> <span class="o">]</span>, <span class="s2">"created"</span>: <span class="s2">"2011-10-07T14:19:09.000Z"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2011-10-07T14:19:37.000Z"</span>, <span class="s2">"privacy_level"</span>: <span class="s2">"private"</span>, <span class="s2">"filehash"</span>: <span class="s2">"bd3293b2-d20c-0d9f-3773-df51a506c7b2"</span>, <span class="s2">"document_id"</span>: <span class="s2">"2a3f09be-75b0-3bf9-bdbd-838c5e588969"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"e2cc65ad-5ef2-3838-b934-737fdb3b196d"</span> <span class="o">}</span> </code></pre> <pre><code class="highlight java"><span class="n">AnnotationList</span> <span class="n">annotationList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getAnnotations</span><span class="o">();</span> <span class="n">List</span><span class="o"><</span><span class="n">Annotation</span><span class="o">></span> <span class="n">annotations</span> <span class="o">=</span> <span class="n">annotationList</span><span class="o">.</span><span class="na">annotations</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">annotationList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Retrieve all your annotations</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/annotations</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>group_id</td> <td>string</td> <td>UUID of the group you would like to get the annotations from. This will only return all the annotations in that group.</td> </tr> <tr> <td>document_id</td> <td>string</td> <td>UUID of the document you would like to get the annotations from. This will only return the annotations associated with that document.</td> </tr> <tr> <td>modified_since</td> <td>string</td> <td>returns only documents modified since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>deleted_since</td> <td>string</td> <td>returns only documents deleted since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> <tr> <td>marker</td> <td>string</td> <td>a marker for the last key in the previous page (automatically generated, here for completeness)</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>Will return a paginated collection of all private annotations in your library.</p> <h2 id="creating-an-annotation">Creating an annotation</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/annotations'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-annotation.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-annotation.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span> <span class="s2">"color"</span>: <span class="o">{</span><span class="s2">"r"</span>: 255,<span class="s2">"g"</span>: 255, <span class="s2">"b"</span>: 0<span class="o">}</span>, <span class="s2">"text"</span>: <span class="s2">"This is a sticky note"</span>, <span class="s2">"positions"</span>: <span class="o">[</span> <span class="o">{</span><span class="s2">"top_left"</span>: <span class="o">{</span><span class="s2">"x"</span>: 269.035, <span class="s2">"y"</span>: 695.428<span class="o">}</span>, <span class="s2">"bottom_right"</span>: <span class="o">{</span> <span class="s2">"x"</span>: 269.035,<span class="s2">"y"</span>: 695.428<span class="o">}</span>, <span class="s2">"page"</span>: 1<span class="o">}</span> <span class="o">]</span>, <span class="s2">"privacy_level"</span>: <span class="s2">"private"</span>, <span class="s2">"filehash"</span>: <span class="s2">"bd3293b2-d20c-0d9f-3773-df51a506c7b2"</span>,<span class="s2">"document_id"</span>: <span class="s2">"2bf33ebd-7cd1-3786-903d-d74d04958e40"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"e2cc65ad-5ef2-3838-b934-737fdb3b196d"</span><span class="o">}</span><span class="s1">' { "id": "f2405d7a-466b-46f3-8f2f-ab57003dafcd", "color": { "r": 255, "g": 255, "b": 0 }, "text": "This is a sticky note", "profile_id": "4afc0c0f-88ab-3aed-a20a-f50934fc83b1", "positions": [ { "top_left": { "x": 269.035, "y": 695.428 }, "bottom_right": { "x": 269.035, "y": 695.428 }, "page": 1 } ], "created": "2014-07-03T11:17:11.868Z", "last_modified": "2014-07-03T11:17:11.868Z", "privacy_level": "private", "filehash": "bd3293b2-d20c-0d9f-3773-df51a506c7b2", "document_id": "2bf33ebd-7cd1-3786-903d-d74d04958e40" } </span></code></pre> <pre><code class="highlight java"><span class="n">List</span><span class="o"><</span><span class="n">Box</span><span class="o">></span> <span class="n">positions</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ArrayList</span><span class="o"><</span><span class="n">Box</span><span class="o">>();</span> <span class="n">positions</span><span class="o">.</span><span class="na">add</span><span class="o">(</span><span class="k">new</span> <span class="n">Box</span><span class="o">(</span><span class="k">new</span> <span class="n">Point</span><span class="o">(</span><span class="mf">269.035</span><span class="o">,</span> <span class="mf">695.428</span><span class="o">),</span> <span class="k">new</span> <span class="n">Point</span><span class="o">(</span><span class="mf">269.035</span><span class="o">,</span> <span class="mf">695.428</span><span class="o">),</span> <span class="mi">1</span><span class="o">));</span> <span class="n">Annotation</span> <span class="n">annotation</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Annotation</span><span class="o">.</span><span class="na">Builder</span><span class="o">()</span> <span class="o">.</span><span class="na">setColor</span><span class="o">(</span><span class="n">Color</span><span class="o">.</span><span class="na">rgb</span><span class="o">(</span><span class="mi">255</span><span class="o">,</span> <span class="mi">255</span><span class="o">,</span> <span class="mi">0</span><span class="o">))</span> <span class="o">.</span><span class="na">setText</span><span class="o">(</span><span class="s">"This is a sticky note"</span><span class="o">)</span> <span class="o">.</span><span class="na">setPositions</span><span class="o">(</span><span class="n">positions</span><span class="o">)</span> <span class="o">.</span><span class="na">setPrivacyLevel</span><span class="o">(</span><span class="n">Annotation</span><span class="o">.</span><span class="na">PrivacyLevel</span><span class="o">.</span><span class="na">PRIVATE</span><span class="o">)</span> <span class="o">.</span><span class="na">setFileHash</span><span class="o">(</span><span class="s">"bd3293b2-d20c-0d9f-3773-df51a506c7b2"</span><span class="o">)</span> <span class="o">.</span><span class="na">setDocumentId</span><span class="o">(</span><span class="s">"2bf33ebd-7cd1-3786-903d-d74d04958e40"</span><span class="o">)</span> <span class="o">.</span><span class="na">setProfileId</span><span class="o">(</span><span class="s">"e2cc65ad-5ef2-3838-b934-737fdb3b196d"</span><span class="o">)</span> <span class="o">.</span><span class="na">build</span><span class="o">();</span> <span class="n">sdk</span><span class="o">.</span><span class="na">postAnnotation</span><span class="o">(</span><span class="n">annotation</span><span class="o">);</span> </code></pre> <p>Creates a new annotation.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/annotations</code></p> <h3 id="returns">Returns</h3> <p>A 201 Created response containing the annotation object.</p> <h2 id="updating-an-annotation">Updating an annotation</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/annotations/f2405d7a-466b-46f3-8f2f-ab57003dafcd'</span> -X PATCH -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-annotation.1+json'</span> -H <span class="s1">'Accept: application/vnd.mendeley-annotation.1+json'</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"text"</span> : <span class="s2">"My new sticky note"</span><span class="o">}</span><span class="s1">' { "id": "f2405d7a-466b-46f3-8f2f-ab57003dafcd", "color": { "r": 255, "g": 255, "b": 0 }, "text": "My new sticky note", "profile_id": "4afc0c0f-88ab-3aed-a20a-f50934fc83b1", "positions": [ { "top_left": { "x": 269.035, "y": 695.428 }, "bottom_right": { "x": 269.035, "y": 695.428 }, "page": 1 } ], "created": "2014-07-03T11:17:11.868Z", "last_modified": "2014-07-03T11:26:07.311Z", "privacy_level": "private", "filehash": "bd3293b2-d20c-0d9f-3773-df51a506c7b2", "document_id": "2bf33ebd-7cd1-3786-903d-d74d04958e40" } </span></code></pre> <pre><code class="highlight java"><span class="n">Annotation</span> <span class="n">amendment</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Annotation</span><span class="o">.</span><span class="na">Builder</span><span class="o">().</span><span class="na">setColor</span><span class="o">(</span><span class="n">Color</span><span class="o">.</span><span class="na">rgb</span><span class="o">(</span><span class="mi">128</span><span class="o">,</span> <span class="mi">0</span><span class="o">,</span> <span class="mi">128</span><span class="o">)).</span><span class="na">build</span><span class="o">();</span> <span class="n">sdk</span><span class="o">.</span><span class="na">patchAnnotation</span><span class="o">(</span><span class="s">"f2405d7a-466b-46f3-8f2f-ab57003dafcd"</span><span class="o">,</span> <span class="n">amendment</span><span class="o">);</span> </code></pre> <p>Updates a specific annotation. Any parameters not provided will be left unchanged. The fields that can be updated are: text, color, positions, privacy_level and filehash.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/annotations/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>annotations unique id</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing the annotation object.</p> <h2 id="deleting-an-annotation">Deleting an annotation</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/annotations/f2405d7a-466b-46f3-8f2f-ab57003dafcd'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">deleteAnnotation</span><span class="o">(</span><span class="s">"f2405d7a-466b-46f3-8f2f-ab57003dafcd"</span><span class="o">);</span> </code></pre> <p>Deletes an annotation</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE https://api.mendeley.com/annotations/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>annotations unique id</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>If the request is successful then the server will return a 204 No Content response.</p> <h1 id="academic-statuses">Academic Statuses</h1> <h2 id="retrieve-all-academic-statuses">Retrieve all academic statuses</h2> <p>Retrieves all academic statuses. </p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/academic_statuses'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.academic_status.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Post Doc"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Doctoral Student"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Ph.D. Student"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student (Postgraduate)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student (Master)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student (Bachelor)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Professor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Associate Professor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Assistant Professor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Senior Lecturer"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Lecturer"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Researcher (at an Academic Institution)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Librarian"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Researcher (at a non-Academic Institution)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Other Professional"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/academic_statuses</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all academic statuses</p> <h1 id="catalog-documents">Catalog Documents</h1> <h2 id="core-catalog-document-attributes">Core catalog document attributes</h2> <p>The following attributes are returned by default.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> <tr> <td>title</td> <td>string</td> <td>Title of the document.</td> </tr> <tr> <td>type</td> <td>string</td> <td>The type of the document. Supported types: journal, book, generic, book_section, conference_proceedings, working_paper, report, web_page, thesis, magazine_article, statute, patent, newspaper_article, computer_program, hearing, television_broadcast, encyclopedia_article, case, film, bill.</td> </tr> <tr> <td>abstract</td> <td>string</td> <td>Brief summary of the document.</td> </tr> <tr> <td>source</td> <td>string</td> <td>Publication outlet, i.e. where the document was published.</td> </tr> <tr> <td>year</td> <td>integer</td> <td>Year in which the document was issued/published.</td> </tr> <tr> <td>authors</td> <td>array</td> <td>List of authors of the document, as <a href="#people">person</a> objects.</td> </tr> <tr> <td>identifiers</td> <td>array</td> <td>List of identifiers available for the document. The supported identifiers are: arxiv, doi, isbn, issn, pmid (PubMed), scopus and ssrn.</td> </tr> <tr> <td>keywords</td> <td>array</td> <td>50 each</td> </tr> <tr> <td>link</td> <td>string</td> <td>Link to the document’s page on the Mendeley website.</td> </tr> </tbody></table> <h2 id="additional-catalog-document-attributes">Additional catalog document attributes</h2> <p>The following attributes are available using a <a href="#catalog-document-views">view</a>.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>month</td> <td>integer</td> <td>Month in which the document was issued/published.</td> </tr> <tr> <td>day</td> <td>integer</td> <td>Day in which the document was issued/published.</td> </tr> <tr> <td>revision</td> <td>string</td> <td>Number identifying the item (e.g. a report number).</td> </tr> <tr> <td>pages</td> <td>string</td> <td>range of pages the document covers in the issue, e.g 4-8.</td> </tr> <tr> <td>volume</td> <td>string</td> <td>volume holding the document, e.g “2” from journal volume 2.</td> </tr> <tr> <td>issue</td> <td>string</td> <td>issue holding the document, e.g. “5” for a journal article from journal volume 2, issue 5</td> </tr> <tr> <td>websites</td> <td>array</td> <td>Where the document was accessed from.</td> </tr> <tr> <td>publisher</td> <td>string</td> <td>Publisher of the document.</td> </tr> <tr> <td>city</td> <td>string</td> <td>city where the document was published.</td> </tr> <tr> <td>edition</td> <td>array</td> <td>edition holding the document, e.g. “3” from the third edition of a book.</td> </tr> <tr> <td>institution</td> <td>string</td> <td>Institution in which the document was published.</td> </tr> <tr> <td>series</td> <td>string</td> <td>title of the collection holding the document (e.g. the series title for a book)</td> </tr> <tr> <td>chapter</td> <td>string</td> <td>Chapter number.</td> </tr> <tr> <td>editors</td> <td>array</td> <td>List of editors of the document. Like authors, this is a collection (array) of person objects, which include first_name and last_name (strings), as <a href="#people">person</a> objects.</td> </tr> <tr> <td>file_attached</td> <td>boolean</td> <td></td> </tr> <tr> <td>reader_count</td> <td>integer</td> <td>Total number of users in Mendeley that have the document in their library.</td> </tr> <tr> <td>reader_count_by_academic_status</td> <td>object</td> <td>Number of readers based on their academic status.</td> </tr> <tr> <td>reader_count_by_discipline</td> <td>object</td> <td>Number of readers based on their discipline.</td> </tr> <tr> <td>reader_count_by_country</td> <td>object</td> <td>Number of readers based on their country.</td> </tr> <tr> <td>group_count</td> <td>integer</td> <td>Number of Mendeley groups that this document has been added to.</td> </tr> <tr> <td>imported</td> <td>boolean</td> <td>Whether the document metadata has been imported from a source other than a users library. For example, Scopus and is therefore likely to be of a higher quality.</td> </tr> <tr> <td>has_pdf</td> <td>boolean</td> <td>Whether the catalogue document has an associated full-text pdf suitable for download.</td> </tr> </tbody></table> <h2 id="catalog-document-views">Catalog document views</h2> <table><thead> <tr> <th>Value</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>bib</td> <td>Will return the core fields plus the bibliographic data. This includes: pages, volume, issue, websites, month, publisher, day, city, edition, institution, series, chapter, revision and editors.</td> </tr> <tr> <td>client</td> <td>Will return the core fields plus file_attached and imported.</td> </tr> <tr> <td>stats</td> <td>This view will return the core fields plus the statistics data. This includes: reader_count, reader_count_by_academic_status, reader_count_by_discipline, reader_by_country and group_count.</td> </tr> <tr> <td>all</td> <td>Will return all fields.</td> </tr> </tbody></table> <h2 id="retrieving-catalog-documents">Retrieving catalog documents</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/catalog?doi=10.1016/j.molcel.2009.09.013'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"eaede082-7d8b-3f0c-be3a-fb7be685fbe6"</span>, <span class="s2">"title"</span>: <span class="s2">"How To Choose a Good Scientific Problem"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Uri"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Alon"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2009, <span class="s2">"source"</span>: <span class="s2">"Molecular Cell"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"doi"</span>: <span class="s2">"10.1016/j.molcel.2009.09.013"</span>, <span class="s2">"isbn"</span>: <span class="s2">"1097-4164 (Electronic)</span><span class="se">\\</span><span class="s2">r1097-2765 (Linking)"</span>, <span class="s2">"pmid"</span>: <span class="s2">"19782018"</span>, <span class="s2">"issn"</span>: <span class="s2">"10972765"</span>, <span class="s2">"arxiv"</span>: <span class="s2">"z0024"</span> <span class="o">}</span>, <span class="s2">"abstract"</span>: <span class="s2">"Choosing good problems is essential for being a good scientist. But what is a good problem, and how do you choose one? The subject is not usually discussed explicitly within our profession. Scientists are expected to be smart enough to figure it out on their own and through the observation of their teachers. This lack of explicit discussion leaves a vacuum that can lead to approaches such as choosing problems that can give results that merit publication in valued journals, resulting in a job and tenure. ?? 2009 Elsevier Inc. All rights reserved."</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">catalog</span><span class="o">.</span><span class="n">by_identifier</span><span class="p">(</span><span class="n">doi</span><span class="o">=</span><span class="s">'10.1016/j.molcel.2009.09.013'</span><span class="p">)</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Retrieve catalog documents by identifier.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/catalog</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>arxiv</td> <td>string</td> <td><a href="http://uk.arxiv.org/help/arxiv_identifier">arXiv identifier </a></td> </tr> <tr> <td>doi</td> <td>string</td> <td><a href="http://uk.arxiv.org/help/arxiv_identifier">Digital Object Identifier </a></td> </tr> <tr> <td>isbn</td> <td>string</td> <td><a href="https://www.isbn-international.org">International Standard Book Number</a></td> </tr> <tr> <td>issn</td> <td>string</td> <td><a href="http://www.issn.org">International Standard Serial Number</a></td> </tr> <tr> <td>pmid</td> <td>string</td> <td><a href="http://www.ncbi.nlm.nih.gov/pubmed">PubMed identifier</a></td> </tr> <tr> <td>scopus</td> <td>string</td> <td><a href="http://www.scopus.com/home.url">Scopus identifier</a></td> </tr> <tr> <td>ssrn</td> <td>string</td> <td><a href="http://www.ssrn.com/en/">Social Science Research Network</a></td> </tr> <tr> <td>filehash</td> <td>string</td> <td>filehash of the file</td> </tr> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> </tbody></table> <h2 id="retrieving-a-catalog-document">Retrieving a catalog document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/catalog/eaede082-7d8b-3f0c-be3a-fb7be685fbe6?view=stats'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>:<span class="s2">"eaede082-7d8b-3f0c-be3a-fb7be685fbe6"</span>, <span class="s2">"title"</span>:<span class="s2">"How To Choose a Good Scientific Problem"</span>, <span class="s2">"type"</span>:<span class="s2">"journal"</span>, <span class="s2">"authors"</span>:[ <span class="o">{</span> <span class="s2">"first_name"</span>:<span class="s2">"Uri"</span>, <span class="s2">"last_name"</span>:<span class="s2">"Alon"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>:2009, <span class="s2">"source"</span>:<span class="s2">"Molecular Cell"</span>, <span class="s2">"identifiers"</span>:<span class="o">{</span> <span class="s2">"doi"</span>:<span class="s2">"10.1016/j.molcel.2009.09.013"</span>, <span class="s2">"isbn"</span>:<span class="s2">"1097-4164 (Electronic)</span><span class="se">\\</span><span class="s2">r1097-2765 (Linking)"</span>, <span class="s2">"pmid"</span>:<span class="s2">"19782018"</span>, <span class="s2">"issn"</span>:<span class="s2">"10972765"</span>, <span class="s2">"arxiv"</span>:<span class="s2">"z0024"</span> <span class="o">}</span>, <span class="s2">"reader_count"</span>:65955, <span class="s2">"reader_count_by_academic_status"</span>:<span class="o">{</span> <span class="s2">"Professor"</span>:2393, <span class="s2">"Associate Professor"</span>:1694, <span class="s2">"Assistant Professor"</span>:1936, <span class="s2">"Post Doc"</span>:4690, <span class="s2">"Ph.D. Student"</span>:14964, <span class="s2">"Researcher (at an Academic Institution)"</span>:3257, <span class="s2">"Researcher (at a non-Academic Institution)"</span>:2292, <span class="s2">"Librarian"</span>:592, <span class="s2">"Other Professional"</span>:2637, <span class="s2">"Student (Postgraduate)"</span>:4987, <span class="s2">"Student (Master)"</span>:11939, <span class="s2">"Student (Bachelor)"</span>:9485, <span class="s2">"Senior Lecturer"</span>:480, <span class="s2">"Lecturer"</span>:1025, <span class="s2">"Doctoral Student"</span>:3579 <span class="o">}</span>, <span class="s2">"reader_count_by_subdiscipline"</span>:<span class="o">{</span> <span class="s2">"Chemistry"</span>:<span class="o">{</span> <span class="s2">"Crystallography"</span>:5, <span class="s2">"Industrial and Engineering Chemistry"</span>:17, <span class="s2">"Inorganic Chemistry"</span>:41, <span class="s2">"Mass Spectrometry"</span>:3, <span class="s2">"Analytical Chemistry"</span>:53, <span class="s2">"Applied Chemistry"</span>:23, <span class="s2">"Chromatography"</span>:1, <span class="s2">"Physical Chemistry"</span>:90, <span class="s2">"Photochemistry"</span>:5, <span class="s2">"Radiochemistry"</span>:4, <span class="s2">"Polymer Chemistry"</span>:30, <span class="s2">"Nuclear Magnetic Resonance"</span>:9, <span class="s2">"Miscellaneous"</span>:2525, <span class="s2">"Petroleum"</span>:5, <span class="s2">"Organic Chemistry"</span>:116, <span class="s2">"Stereochemistry"</span>:1, <span class="s2">"Theoretical Chemistry"</span>:34, <span class="s2">"Biochemistry"</span>:47 <span class="o">}</span>, <span class="s2">"Business Administration"</span>:<span class="o">{</span> <span class="s2">"Banks and Banking"</span>:4, <span class="s2">"Accounting"</span>:19, <span class="s2">"Industrial Relations"</span>:1, <span class="s2">"Human Resource Management"</span>:14, <span class="s2">"Finance and Financial Services"</span>:14, <span class="s2">"Entrepreneurship"</span>:25, <span class="s2">"Management Information Systems"</span>:27, <span class="s2">"International Business"</span>:9, <span class="s2">"Insurance"</span>:1, <span class="s2">"Production, Operations and Manufacturing Management"</span>:5, <span class="s2">"Public and Non-Profit Management"</span>:7, <span class="s2">"Quality Control"</span>:1, <span class="s2">"Taxation"</span>:3, <span class="s2">"Management and Communication"</span>:4, <span class="s2">"Management and Strategy"</span>:36, <span class="s2">"Marketing"</span>:30, <span class="s2">"Miscellaneous"</span>:677, <span class="s2">"Technological Change"</span>:2, <span class="s2">"Logistics"</span>:3 <span class="o">}</span>, <span class="s2">"Medicine"</span>:<span class="o">{</span> <span class="s2">"Alcoholism and Addiction"</span>:4, <span class="s2">"AIDS"</span>:11, <span class="s2">"Anesthesiology"</span>:36, <span class="s2">"Allergy"</span>:2, <span class="s2">"Asthma"</span>:1, <span class="s2">"Arthritis"</span>:1, <span class="s2">"Cancer"</span>:56, <span class="s2">"Biomedical Engineering"</span>:54, <span class="s2">"Clinical Molecular and Microbiology"</span>:19, <span class="s2">"Cardiology"</span>:47, <span class="s2">"Dentistry and Oral Surgery"</span>:67, <span class="s2">"Communication Disorders"</span>:3, <span class="s2">"Emergency Medicine and Critical Care"</span>:27, <span class="s2">"Dermatology"</span>:10, <span class="s2">"Environmental"</span>:4, <span class="s2">"Endocrinology"</span>:18, <span class="s2">"Ophthalmology"</span>:20, <span class="s2">"Oncology"</span>:35, <span class="s2">"Occupational and Environmental"</span>:8, <span class="s2">"Occupational Therapy"</span>:6, <span class="s2">"Obstetrics"</span>:20, <span class="s2">"Obesity"</span>:2, <span class="s2">"Nutrition and Metabolism"</span>:26, <span class="s2">"Pharmacy"</span>:47, <span class="s2">"Pharmacology"</span>:31, <span class="s2">"Pediatrics"</span>:33, <span class="s2">"Pathology and Forensics"</span>:17, <span class="s2">"Pain Medicine and Palliative Care"</span>:8, <span class="s2">"Otolaryngology"</span>:13, <span class="s2">"Orthopedics"</span>:23, <span class="s2">"Optometry"</span>:11, <span class="s2">"Hematology"</span>:16, <span class="s2">"Histology"</span>:2, <span class="s2">"Geriatrics and Aging"</span>:6, <span class="s2">"Gynecology"</span>:11, <span class="s2">"Gastroenterology and Hepatology"</span>:15, <span class="s2">"General Medicine"</span>:17, <span class="s2">"Epidemiology"</span>:85, <span class="s2">"Family"</span>:8, <span class="s2">"Neurology"</span>:46, <span class="s2">"Neuroscience"</span>:124, <span class="s2">"Nephrology, Urology"</span>:17, <span class="s2">"Neurobiology"</span>:6, <span class="s2">"Medical Imaging"</span>:33, <span class="s2">"Miscellaneous"</span>:9166, <span class="s2">"Internal Medicine"</span>:40, <span class="s2">"Rheumatology"</span>:14, <span class="s2">"Surgery"</span>:54, <span class="s2">"Toxicology"</span>:8, <span class="s2">"Tropical"</span>:5, <span class="s2">"Physiology"</span>:27, <span class="s2">"Public Health and Community Medicine"</span>:74, <span class="s2">"Reproductive Medicine"</span>:6, <span class="s2">"Respiratory and Pulmonary"</span>:23, <span class="s2">"Nursing"</span>:44, <span class="s2">"Physiotherapy"</span>:49 <span class="o">}</span> <span class="o">}</span>, <span class="s2">"reader_count_by_country"</span>:<span class="o">{</span> <span class="s2">"Belarus"</span>:5, <span class="s2">"Portugal"</span>:218, <span class="s2">"Philippines"</span>:41, <span class="s2">"Hong Kong"</span>:18, <span class="s2">"Morocco"</span>:5, <span class="s2">"Tanzania"</span>:15, <span class="s2">"Mali"</span>:4, <span class="s2">"Ecuador"</span>:44, <span class="s2">"...all countries listed..."</span>:99 <span class="o">}</span>, <span class="s2">"abstract"</span>:<span class="s2">"Choosing good problems is essential for being a good scientist. But what is a good problem, and how do you choose one?.........."</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">catalog</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'eaede082-7d8b-3f0c-be3a-fb7be685fbe6'</span><span class="p">,</span> <span class="n">view</span><span class="o">=</span><span class="s">'stats'</span><span class="p">)</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">reader_count</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Retrieve a catalog document by ID.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/catalog/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>the catalog id (UUID)</td> </tr> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> </tbody></table> <h1 id="catalog-search">Catalog Search</h1> <p>The documents returned have the same attributes as the <a href="#catalog-documents">Catalog Documents</a> API.</p> <h2 id="search-by-query">Search by query</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/search/catalog?query=polar+bears&limit=3'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"52a7f7b4-3cde-399b-a20e-889dc90e62b8"</span>, <span class="s2">"title"</span>: <span class="s2">"In the Marine Environment"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Polar"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Bears"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2002, <span class="s2">"source"</span>: <span class="s2">"Arctic"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"issn"</span>: <span class="s2">"00063185"</span> <span class="o">}</span>, <span class="s2">"abstract"</span>: <span class="s2">"..."</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"dd18e5ad-74d0-3bfa-a5da-84640ad82976"</span>, <span class="s2">"title"</span>: <span class="s2">"Behavior"</span>, <span class="s2">"type"</span>: <span class="s2">"book_section"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"I"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Stirling"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 1988, <span class="s2">"source"</span>: <span class="s2">"Polar Bears"</span>, <span class="s2">"abstract"</span>: <span class="s2">"..."</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"248883ce-5377-3aa3-aa84-57163c89d3f6"</span>, <span class="s2">"title"</span>: <span class="s2">"Polar Bears"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Nicholas J"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Lunn"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Scott"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Schliebe"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Erik W"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Born"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2003, <span class="s2">"source"</span>: <span class="s2">"Oryx"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"pmid"</span>: <span class="s2">"20535730"</span>, <span class="s2">"issn"</span>: <span class="s2">"00306053"</span>, <span class="s2">"doi"</span>: <span class="s2">"10.1017/S0030605303250663"</span>, <span class="s2">"isbn"</span>: <span class="s2">"2831709598"</span> <span class="o">}</span>, <span class="s2">"abstract"</span>: <span class="s2">"..."</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">page</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">catalog</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="s">'polar bears'</span><span class="p">)</span><span class="o">.</span><span class="nb">list</span><span class="p">()</span> <span class="k">for</span> <span class="n">doc</span> <span class="ow">in</span> <span class="n">page</span><span class="o">.</span><span class="n">items</span><span class="p">:</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Retrieve documents which match general query terms.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/search/catalog</code></p> <h3 id="url-parameters">URL Parameters</h3> <p>The search query is considered to be a string of terms separated by spaces. The search will return documents which match any of these, but rank those which match many terms higher than those which only match a few.</p> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>query</td> <td>string</td> <td>Query terms, which match any field in the document, e.g. title, author etc (<strong>required</strong>).</td> </tr> <tr> <td>view</td> <td>string</td> <td>Request additional fields in the documents returned, as for <a href="#catalog-documents">Catalog Documents</a>.</td> </tr> </tbody></table> <h2 id="advanced-search">Advanced search</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/search/catalog?source=polar+bears&limit=3'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"dd18e5ad-74d0-3bfa-a5da-84640ad82976"</span>, <span class="s2">"title"</span>: <span class="s2">"Behavior"</span>, <span class="s2">"type"</span>: <span class="s2">"book_section"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"I"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Stirling"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 1988, <span class="s2">"source"</span>: <span class="s2">"Polar Bears"</span>, <span class="s2">"abstract"</span>: <span class="s2">"Our understanding of the behavior of any animal comes from many sources of information..."</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"e807b6ff-1726-358a-9ec1-2768abe0936e"</span>, <span class="s2">"title"</span>: <span class="s2">"New data on the winter ecology of the polar bear (Ursus maritimus Phipps) on the Vrangel Island"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"a a"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Kishchinskij"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"S M"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Uspenskij"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 1973, <span class="s2">"source"</span>: <span class="s2">"Ecology and morphology of the polar bear."</span>, <span class="s2">"abstract"</span>: <span class="s2">"Winter ecology of the polar bear was studied in March-April of 1969 and 1970..."</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"a9ee415c-7e8d-3d96-84d8-eb2b6d88cd65"</span>, <span class="s2">"title"</span>: <span class="s2">"Uncertainty in climate model projections of Arctic sea ice decline: an evaluation relevant to polar bears"</span>, <span class="s2">"type"</span>: <span class="s2">"report"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"E T"</span>, <span class="s2">"last_name"</span>: <span class="s2">"DeWeaver"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2007, <span class="s2">"source"</span>: <span class="s2">"USGS Science Strategy to Support U.S. Fish and Wildlife Service Polar Bear Listing Decision."</span>, <span class="s2">"abstract"</span>: <span class="s2">"This report describes uncertainties in climate model simulations of Arctic sea ice decline, and proposes a selection criterion for models to be used in projecting polar bear (Ursus maritimus) habitat loss..."</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">page</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">catalog</span><span class="o">.</span><span class="n">advanced_search</span><span class="p">(</span><span class="n">source</span><span class="o">=</span><span class="s">'polar bears'</span><span class="p">)</span><span class="o">.</span><span class="nb">list</span><span class="p">()</span> <span class="k">for</span> <span class="n">doc</span> <span class="ow">in</span> <span class="n">page</span><span class="o">.</span><span class="n">items</span><span class="p">:</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Retrieve documents which match the supplied values in specific fields.</p> <h3 id="http-request">HTTP Request</h3> <p>Advanced search uses the same endpoint as search by query:</p> <p><code class="prettyprint">GET https://api.mendeley.com/search/catalog</code></p> <h3 id="url-parameters">URL Parameters</h3> <p>Multiple search fields may be specified. At least one of <code class="prettyprint">title</code>, <code class="prettyprint">author</code>, <code class="prettyprint">source</code> or <code class="prettyprint">abstract</code> <strong>must</strong> be provided. If more than one of these is set, the results will return documents which match any of these, but rank those which match several fields higher than those which match fewer fields.</p> <p><code class="prettyprint">min_year</code>, <code class="prettyprint">max_year</code> and <code class="prettyprint">open_access</code> act as filters. Setting either a minimum or maximum year excludes documents which do not have a year defined.</p> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>title</td> <td>string</td> <td>Matches terms in the title of the document.</td> </tr> <tr> <td>author</td> <td>string</td> <td>Matches the names of one or more authors.</td> </tr> <tr> <td>source</td> <td>string</td> <td>Matches the publication name.</td> </tr> <tr> <td>abstract</td> <td>string</td> <td>Matches terms in the abstract.</td> </tr> <tr> <td>min_year</td> <td>integer</td> <td>The earliest publication year to return results for.</td> </tr> <tr> <td>max_year</td> <td>integer</td> <td>The latest publication year to return results for.</td> </tr> <tr> <td>open_access</td> <td>boolean</td> <td>Specify true to limit results to open access publications (default = false).</td> </tr> <tr> <td>view</td> <td>string</td> <td>Request additional fields in documents returned, as for <a href="#catalog-documents">Catalog Documents</a>.</td> </tr> </tbody></table> <h1 id="datasets">Datasets</h1> <h2 id="public-dataset-attributes">Public dataset attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The unique identifier for the dataset (required for other operations).</td> </tr> <tr> <td>version</td> <td>integer</td> <td>The version number of the dataset.</td> </tr> <tr> <td>name</td> <td>string</td> <td>The name of the dataset.</td> </tr> <tr> <td>description</td> <td>string</td> <td>A description of the data (files) contained in the dataset.</td> </tr> <tr> <td>publish_date</td> <td>string</td> <td>The date that this dataset version was made public. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>files</td> <td>array</td> <td>The dataset files, as <a href="#dataset-file-attributes">file objects</a>.</td> </tr> <tr> <td>categories</td> <td>array</td> <td>The categories that this dataset belongs to, as <a href="#category-attributes">category objects</a>.</td> </tr> <tr> <td>contributors</td> <td>array</td> <td>The contributors of the dataset, as <a href="#contributor-attributes">contributor objects</a>.</td> </tr> <tr> <td>doi</td> <td>object</td> <td>The DOI associated with the dataset, as <a href="#doi-attributes">DOI object</a>.</td> </tr> <tr> <td>versions</td> <td>array</td> <td>All versions of this dataset, as <a href="#version-attributes">version objects</a>.</td> </tr> <tr> <td>data_licence</td> <td>object</td> <td>The licence that applies to this dataset version, as <a href="#data-licence-attributes">data licence object</a>.</td> </tr> <tr> <td>articles</td> <td>array</td> <td>Journal articles associated with the dataset, <a href="#article-attributes">article objects</a>.</td> </tr> </tbody></table> <div id="dataset-file-attributes"></div> <h3 id="file-attributes">File attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>filename</td> <td>string</td> <td>The file’s filename</td> </tr> <tr> <td>name</td> <td>string</td> <td>A friendly name for the file</td> </tr> <tr> <td>content_details</td> <td>object</td> <td>Immutable metadata about the file, as a <a href="#file-content-details-attributes">content details object</a></td> </tr> </tbody></table> <h3 id="file-content-details-attributes">File content details attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>File ID</td> </tr> <tr> <td>sha256_hash</td> <td>string</td> <td>An SHA256 checksum for the file</td> </tr> <tr> <td>content_type</td> <td>string</td> <td>The file’s content type</td> </tr> <tr> <td>size</td> <td>number</td> <td>The file’s size in bytes</td> </tr> <tr> <td>created_date</td> <td>string</td> <td>The date the file was uploaded. This date is represented in ISO 8601 format</td> </tr> <tr> <td>status</td> <td>string</td> <td>The current status of the file object (claimed, unclaimed, not_uploaded)</td> </tr> <tr> <td>download_url</td> <td>string</td> <td>The URL where the file can be downloaded. Sets the <code class="prettyprint">content-disposition: attachment; filename=</code> using the parent file’s filename attribute</td> </tr> <tr> <td>download_expiry_time</td> <td>string</td> <td>The time that the download URL will expire</td> </tr> <tr> <td>view_url</td> <td>string</td> <td>Sets <code class="prettyprint">content-disposition: inline</code></td> </tr> </tbody></table> <h3 id="category-attributes">Category attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Category ID</td> </tr> <tr> <td>label</td> <td>string</td> <td>The label to display for the category</td> </tr> </tbody></table> <p>The following categories are currently available:</p> <table><thead> <tr> <th>id</th> <th>label</th> </tr> </thead><tbody> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-170589324</td> <td>Applied Sciences</td> </tr> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-170589320</td> <td>Arts and Humanities</td> </tr> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-186201601</td> <td>Health Sciences</td> </tr> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-170589436</td> <td>Mathematics</td> </tr> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-170589326</td> <td>Natural Sciences</td> </tr> <tr> <td>http://data.elsevier.com/vocabulary/OmniScience/Concept-170589328</td> <td>Social Sciences</td> </tr> </tbody></table> <h3 id="contributor-attributes">Contributor attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Mendeley Profile ID (optional)</td> </tr> <tr> <td>first_name</td> <td>string</td> <td>The contributor’s first name</td> </tr> <tr> <td>last_name</td> <td>string</td> <td>The contributor’s last name</td> </tr> <tr> <td>email</td> <td>string</td> <td>The contributor’s email address (this attribute is not included in public datasets)</td> </tr> <tr> <td>contribution</td> <td>string</td> <td>The contribution of this contributor</td> </tr> <tr> <td>institution</td> <td>object</td> <td>Optional, the institution that the contributor belongs to. Contains id (optional), name</td> </tr> </tbody></table> <h3 id="doi-attributes">DOI attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>ID of this DOI</td> </tr> <tr> <td>status</td> <td>string</td> <td>Status of the DOI. One of r<code class="prettyprint">equested</code> or <code class="prettyprint">allocated</code> for public datasets or <code class="prettyprint">reservered</code> for draft datasets</td> </tr> </tbody></table> <h3 id="version-attributes">Version attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>version</td> <td>string</td> <td>The version number</td> </tr> <tr> <td>publish_date</td> <td>string</td> <td>The date that this dataset version was made public. This date is represented in ISO 8601 format</td> </tr> <tr> <td>available</td> <td>string</td> <td>Whether this version is available (true, false)</td> </tr> </tbody></table> <h3 id="data-licence-attributes">Data licence attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The ID of this licence type</td> </tr> <tr> <td>short_name</td> <td>string</td> <td>Friendly name of this licence</td> </tr> <tr> <td>full_name</td> <td>string</td> <td>Full legal name of this licence</td> </tr> <tr> <td>description</td> <td>string</td> <td>Description of this licence’s details</td> </tr> <tr> <td>url</td> <td>string</td> <td>URL of licence definition</td> </tr> </tbody></table> <h3 id="article-attributes">Article attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Article ID</td> </tr> <tr> <td>title</td> <td>string</td> <td>The articles’s title</td> </tr> <tr> <td>doi</td> <td>string</td> <td>The Digital Object Identifier for the article</td> </tr> <tr> <td>journal_id</td> <td>string</td> <td>The ID of the <a href="#journal-attributes">journal</a> this article is published in</td> </tr> </tbody></table> <h3 id="journal-attributes">Journal attributes</h3> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Journal ID</td> </tr> <tr> <td>name</td> <td>string</td> <td>The journal’s name</td> </tr> <tr> <td>url</td> <td>string</td> <td>The journal’s home URL</td> </tr> <tr> <td>logo_url</td> <td>string</td> <td>A URL to the journal’s logo</td> </tr> </tbody></table> <h2 id="draft-dataset-attributes">Draft dataset attributes</h2> <p>Draft dataset objects are similar to public dataset objects. They have some additional properties to help manage access to unpublished datasets.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The unique identifier for the dataset (required for other operations).</td> </tr> <tr> <td>name</td> <td>string</td> <td>The name of the dataset.</td> </tr> <tr> <td>description</td> <td>string</td> <td>A description of the data (files) contained in the dataset.</td> </tr> <tr> <td>files</td> <td>array</td> <td>The dataset files, as <a href="#dataset-file-attributes">file objects</a>.</td> </tr> <tr> <td>categories</td> <td>array</td> <td>The dataset categories, as <a href="#category-attributes">category objects</a>.</td> </tr> <tr> <td>contributors</td> <td>array</td> <td>The contributors of the dataset, as <a href="#contributor-attributes">contributor objects</a>.</td> </tr> <tr> <td>doi</td> <td>object</td> <td>The DOI associated with the dataset, as <a href="#doi-attributes">DOI object</a>.</td> </tr> <tr> <td>versions</td> <td>array</td> <td>All versions of this dataset, as <a href="#version-attributes">version objects</a>.</td> </tr> <tr> <td>data_licence</td> <td>object</td> <td>The licence that applies to this dataset version, as <a href="#data-licence-attributes">data licence object</a>.</td> </tr> <tr> <td>articles</td> <td>array</td> <td>Journal articles associated with the dataset, <a href="#article-attributes">article objects</a>.</td> </tr> <tr> <td>owner_id</td> <td>string</td> <td>ID of dataset owner</td> </tr> <tr> <td>created_data</td> <td>string</td> <td>Date that this dataset was created. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>last_modification_date</td> <td>string</td> <td>Date that this dataset was last modified. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>access_code</td> <td>string</td> <td>This will allow anyone to see the dataset if provided.</td> </tr> <tr> <td>permissions</td> <td>array</td> <td>Permission IDs applied to this draft</td> </tr> </tbody></table> <h2 id="submission-attributes">Submission attributes</h2> <p>Submissions are a way for submission systems to add datasets (draft) related to the article submissions. Submissions and their data is only available to submission system and the authors associated with it.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The unique (among the submission system) identifier for the submission (submission id) (required for other operations).</td> </tr> <tr> <td>owner</td> <td>object</td> <td>Article author information as <a href="#owner-attributes">owner object</a>.</td> </tr> <tr> <td>submission_data</td> <td>string</td> <td>Submission system specific data in a form of JSON object</td> </tr> <tr> <td>submission_token</td> <td>string</td> <td>A token generated when submission is created. It can later be used by other API clients (on behalf of the journal author) to add, modify and unlink datasets.</td> </tr> <tr> <td>datasets</td> <td>array</td> <td>datasets, associated with submission, as objects with “id” and “version” properties of the draft datasets.</td> </tr> </tbody></table> <h2 id="owner-attributes">Owner attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>email</td> <td>string</td> <td>The article author’s email address.</td> </tr> </tbody></table> <h2 id="specifying-fields-to-return">Specifying fields to return</h2> <p>By default, only the id will be returned for requests. You should specify which attributes to return using the <code class="prettyprint">fields</code> query paramenter.</p> <p>For example, to return a list of datasets with the <code class="prettyprint">id</code>, <code class="prettyprint">version</code>, <code class="prettyprint">title</code>, <code class="prettyprint">description</code> and the <code class="prettyprint">mime_type</code> for <code class="prettyprint">files</code>, you would provide:</p> <p><code class="prettyprint">GET /datasets?fields=results.id,results.version,results.name,results.description,results.files.mime_type</code></p> <p>For nested objects such as contributors, you must provide the keys within the object.</p> <p>For example, to return a list of datasets, each with contributors’ <code class="prettyprint">first_name</code> and <code class="prettyprint">last_name</code> you would provide:</p> <p><code class="prettyprint">GET /datasets?fields=results.contributors.first_name,results.contributors.last_name</code></p> <p>If you want to receive all fields, you can pass <code class="prettyprint">*</code> to the fields parameter. Be aware that this query may take longer to receive and you may want to avoid using this in production.</p> <p><code class="prettyprint">GET /datasets?fields=*</code></p> <h2 id="retrieving-datasets-(public)">Retrieving datasets (public)</h2> <h3 id="retrieve-datasets-with-the-id,-name,-description-and-version-fields">Retrieve datasets with the id, name, description and version fields</h3> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets?fields=results.id,results.name,results.description,results.version'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-public-dataset.1+json'</span> <span class="se">\</span> <span class="o">{</span> <span class="s2">"results"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"r4xggzrjxm"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"name"</span>: <span class="s2">"Test dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"xrnfvfkzkg"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"name"</span>: <span class="s2">"Another dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <h3 id="retrieve-datasets-with-the-id,-name,-description,-version-and-contributors-first_name-and-last_name-fields">Retrieve datasets with the id, name, description, version and contributors first_name and last_name fields</h3> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets?fields=results.id,results.name,results.description,results.version,results.contributors.first_name,results.contributors.last_name'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-public-dataset.1+json'</span> <span class="se">\</span> <span class="o">{</span> <span class="s2">"results"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"r4xggzrjxm"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"name"</span>: <span class="s2">"Example dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span> <span class="s2">"first_name"</span>: <span class="s2">"Dorian"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Weimann"</span> <span class="o">}]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"xrnfvfkzkg"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"name"</span>: <span class="s2">"Another dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span> <span class="s2">"first_name"</span>: <span class="s2">"Barry"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Tester"</span> <span class="o">}]</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/datasets</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>article_doi</td> <td>string</td> <td>Filter by datasets linked to an article doi (optional)</td> </tr> <tr> <td>limit</td> <td>string</td> <td>The maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> <tr> <td>order</td> <td>string</td> <td>The sort order</td> </tr> <tr> <td>fields</td> <td>string</td> <td>A comma separated list of fields to return in the response.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a paginated list of public datasets.</p> <h2 id="retrieving-a-dataset-(public)">Retrieving a dataset (public)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/856xgy2hy9'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-public-dataset.1+json'</span> <span class="se">\</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"4c35399a-1c2e-42eb-baed-3dc5281141e3"</span>, <span class="s2">"version"</span>: 2, <span class="s2">"versions"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"version"</span>: 2, <span class="s2">"publish_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span>, <span class="s2">"available"</span>: <span class="nb">true</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"version"</span>: 1, <span class="s2">"publish_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span>, <span class="s2">"available"</span>: <span class="nb">true</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"collaborators"</span>: <span class="o">[]</span>, <span class="s2">"name"</span>: <span class="s2">"Example dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Description of the data"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span> <span class="s2">"id"</span>: <span class="s2">"c4676e62-10c3-3efe-b494-2f2dcec084c7"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Barry"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Tester"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"eb0429bd-6f79-30b1-81b8-2855f457f380"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Dorian"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Weimann"</span> <span class="o">}]</span> <span class="s2">"publish_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span>, <span class="s2">"doi"</span>: <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"10.17632/856xgy2hy9.2"</span>, <span class="s2">"status"</span>: <span class="s2">"allocated"</span> <span class="o">}</span>, <span class="s2">"short_id"</span>: <span class="s2">"856xgy2hy9"</span>, <span class="s2">"data_licence"</span>: <span class="o">{</span> <span class="s2">"short_name"</span>: <span class="s2">"CC BY 4.0"</span>, <span class="s2">"full_name"</span>: <span class="s2">"Creative Commons Attribution 4.0 International"</span>, <span class="s2">"description"</span>: <span class="s2">"Unless indicated otherwise, you can share, copy and modify the images or other third party..."</span>, <span class="s2">"url"</span>: <span class="s2">"http://creativecommons.org/licenses/by/4.0"</span> <span class="o">}</span> <span class="o">}</span> </code></pre> <p>Retrieves a public dataset for the provided dataset ID</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/datasets/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>version</td> <td>string</td> <td>Specify a version other than the latest</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a paginated list of public datasets.</p> <h2 id="retrieving-datasets-(draft)">Retrieving datasets (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts?roles=owner&fields=id,version,name,description'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"mp98hktrwp"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"name"</span>: <span class="s2">"Test dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <p>Returns a list of draft datasets where the user is the owner.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/datasets/drafts</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>roles</td> <td>string</td> <td>Comma delimited list of any roles the user should have on a dataset. Can include owner, author, collaborator.</td> </tr> <tr> <td>limit</td> <td>string</td> <td>The maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> <tr> <td>order</td> <td>string</td> <td>The sort order</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a paginated list of draft datasets.</p> <h2 id="retrieving-a-dataset-(draft)">Retrieving a dataset (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/{id}'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"jynm7bxcyb"</span>, <span class="s2">"name"</span>: <span class="s2">"A dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Description of my dataset"</span>, <span class="s2">"owner_id"</span>: <span class="s2">"34851d06-9994-3732-ad14-b283e037c04c"</span>, <span class="s2">"version"</span>: 1, <span class="s2">"versions"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"version"</span>: 1, <span class="s2">"available"</span>: <span class="nb">true</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"last_modification_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span>, <span class="s2">"data_licence"</span>: <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"01d9c749-3c4d-4431-9df3-620b2dcfe144"</span>, <span class="s2">"short_name"</span>: <span class="s2">"CC BY 4.0"</span>, <span class="s2">"full_name"</span>: <span class="s2">"Creative Commons Attribution 4.0 International"</span>, <span class="s2">"description"</span>: <span class="s2">"Unless indicated otherwise, you can share, copy and modify..."</span>, <span class="s2">"url"</span>: <span class="s2">"http://creativecommons.org/licenses/by/4.0"</span> <span class="o">}</span>, <span class="s2">"access_code"</span>: <span class="s2">"2d67e8e2-3d77-416e-9c1b-82bde731f4e5"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span> <span class="s2">"id"</span>: <span class="s2">"34851d06-9994-3732-ad14-b283e037c04c"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Barry"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Tester"</span>, <span class="s2">"email"</span>: <span class="s2">"barry.tester@mendeley.com"</span>, <span class="s2">"corresponding_author"</span>: <span class="nb">false</span> <span class="o">}]</span>, <span class="s2">"collaborators"</span>: <span class="o">[]</span>, <span class="s2">"all_versions"</span>: <span class="o">[]</span>, <span class="s2">"files"</span>: <span class="o">[{</span> <span class="s2">"id"</span>: <span class="s2">"869290bb-0c47-43fc-ad83-44167f7316a7"</span>, <span class="s2">"filename"</span>: <span class="s2">"mugs.jpg"</span>, <span class="s2">"name"</span>: <span class="s2">"mugs"</span>, <span class="s2">"file_size"</span>: 94839, <span class="s2">"hash"</span>: <span class="s2">"cac511c0aa8eaf77c763bda2c2110121d055d2c3ab60d7339434b487bc2f13ef"</span>, <span class="s2">"last_modification_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span>, <span class="s2">"mime_type"</span>: <span class="s2">"image/jpeg"</span>, <span class="s2">"created_date"</span>: <span class="s2">"2015-12-15T10:34:34.897Z"</span> <span class="o">}]</span>, <span class="s2">"articles"</span>: <span class="o">[]</span>, <span class="s2">"roles"</span>: <span class="o">[</span><span class="s2">"owner"</span>, <span class="s2">"author"</span><span class="o">]</span>, <span class="s2">"permissions"</span>: <span class="o">[</span><span class="s2">"Read"</span>, <span class="s2">"ReadAccessCode"</span>, <span class="s2">"ReadAuthorEmailAddresses"</span>, <span class="s2">"ReadCollaborators"</span>, <span class="s2">"Update"</span>, <span class="s2">"Publish"</span><span class="o">]</span> <span class="o">}</span> </code></pre> <p>Retrieves the draft dataset for the provided dataset ID</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/datasets/drafts/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>access_code</td> <td>string</td> <td>Provides access to users other than the owner (optional)</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a paginated list of public datasets.</p> <h2 id="creating-a-dataset-(draft)">Creating a dataset (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-dataset-creation-request.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"name"</span>: <span class="s2">"Test dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span><span class="s2">"first_name"</span>: <span class="s2">"Dorian"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Weimann"</span>, <span class="s2">"email"</span>: <span class="s2">"example@email.com"</span><span class="o">}]}</span><span class="s1">' { "id": "mp98hktrwp", "version": 1, "versions": [ { "version": 1, "available": true } ], "name": "Test dataset", "description": "Test description", "contributors": [ { "first_name": "Dorian", "last_name": "Weimann", "email": "example@email.com" } ], "files": [], "categories": [ { "id": "http://data.elsevier.com/vocabulary/OmniScience/Concept-170589324" } ], "roles": [ "owner", "author" ], "last_modification_date": "2015-12-15T10:34:34.897Z", "doi": { "id": "10.4124/mp98hktrwP.1", "status": "reserved" } } </span></code></pre> <p>Returns a draft dataset.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/datasets/drafts</code></p> <h3 id="returns">Returns</h3> <p>A 201 CREATED response containing a draft dataset.</p> <h2 id="updating-a-dataset-(draft)">Updating a dataset (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/mp98hktrwp'</span> <span class="se">\</span> -X PATCH <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-dataset-patch.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"name"</span>: <span class="s2">"Updated dataset"</span><span class="o">}</span><span class="s1">' { "id": "mp98hktrwp", "version": 1, "versions": [ { "version": 1, "available": true } ], "name": "Updated dataset", "description": "Test description", "contributors": [ { "first_name": "Dorian", "last_name": "Weimann", "email": "example@email.com" } ], "files": [], "roles": [ "owner", "author" ], "last_modification_date": "2015-12-15T10:34:34.897Z", "doi": { "id": "10.4124/mp98hktrwP.1", "status": "reserved" } } </span></code></pre> <p>Returns a draft dataset.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/datasets/drafts/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a draft dataset.</p> <h2 id="adding-a-file-to-a-draft-dataset">Adding a file to a draft dataset</h2> <p>You will first need to upload the file content to the <a href="#file-content">file content endpoint</a>. Now, with the returned <code class="prettyprint">id</code>, you can send it as the <code class="prettyprint">content_details.id</code> for the file.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/mp98hktrwp'</span> <span class="se">\</span> -X PATCH <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-dataset-patch.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"content_details"</span>: <span class="o">{</span><span class="s2">"id"</span>: <span class="s2">"3f2f968f-553b-467d-8121-ba02cab937a0"</span><span class="o">}</span>, <span class="s2">"filename"</span>: <span class="s2">"my-file.pdf"</span>, <span class="s2">"description"</span>: <span class="s2">"Example decription"</span><span class="o">}</span><span class="s1">' { "id": "mp98hktrwp", "files": [ { "filename": "my-file.pdf", "description": "Example Description", "content_details": { "id": "3f2f968f-553b-467d-8121-ba02cab937a0", "sha256_hash": "3fc0992551a40279346de32e6deb8bce0ca75d32a07c71451473bc024a400840", "content_type": "image/jpeg", "size": 141714, "created_date": "2015-12-15T10:34:34.897Z", "download_url": "https://downloads.mendeley.com/3fc0992551a40279346de32e6deb8bce0ca75d32a07c71451473bc024a400840", "download_expiry_time": 1445343439786 } } ], ... } </span></code></pre> <p>Returns a draft dataset.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/datasets/drafts/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a draft dataset.</p> <h2 id="publishing-a-dataset-(draft)">Publishing a dataset (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/{id}'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"name"</span>: <span class="s2">"Test dataset"</span>, <span class="s2">"description"</span>: <span class="s2">"Test description"</span>, <span class="s2">"contributors"</span>: <span class="o">[{</span><span class="s2">"first_name"</span>: <span class="s2">"Dorian"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Weimann"</span>, <span class="s2">"email"</span>: <span class="s2">"example@email.com"</span><span class="o">}]}</span><span class="s1">' { "id": "mp98hktrwp", "version": 1, "versions": [ { "version": 1, "available": true } ], "name": "Test dataset", "description": "Test description", "contributors": [ { "first_name": "Dorian", "last_name": "Weimann", "email": "example@email.com" } ], "files": [ { "filename": "my-file.pdf", "description": "Example Description", "content_details": { "id": "3f2f968f-553b-467d-8121-ba02cab937a0", "sha256_hash": "3fc0992551a40279346de32e6deb8bce0ca75d32a07c71451473bc024a400840", "content_type": "image/jpeg", "size": 141714, "created_date": "2015-12-15T10:34:34.897Z", "download_url": "https://downloads.mendeley.com/3fc0992551a40279346de32e6deb8bce0ca75d32a07c71451473bc024a400840", "download_expiry_time": 1445343439786 } } ], "roles": [ "owner", "author" ], "last_modification_date": "2015-12-15T10:34:34.897Z", "doi": { "id": "10.4124/mp98hktrwP.1", "status": "reserved" } } </span></code></pre> <p>Publishes a draft as the next sequential version</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/datasets/drafts/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing the published dataset.</p> <h2 id="deleting-a-dataset-(draft)">Deleting a dataset (draft)</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/mp98hktrwp'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> </code></pre> <p>Permanently deletes a draft dataset.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE https://api.mendeley.com/datasets/drafts/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h2 id="creating-a-submission">Creating a submission</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/submissions/{submission_system}'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-rdm-submission-creation-request.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-rdm-submission.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"b3zdUk4s"</span>, <span class="s2">"owner"</span>: <span class="o">{</span> <span class="s2">"email"</span>: <span class="s2">"example@email.com"</span> <span class="o">}</span>, <span class="s2">"submission_data"</span>: <span class="o">{</span> <span class="s2">"title"</span>: <span class="s2">"Test title"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">]</span> <span class="o">}}</span><span class="s1">' { "id": "b3zdUk4s", "owner": { "email": "example@email.com" }, "submission_data": { "title": "Test title", "authors": [] }, "submission_token": "628e0343-5de5-4955-a64f-2637f675bd6e", "datasets": [] } </span></code></pre> <p>Returns created submission.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/datasets/submissions/{submission_system}</code></p> <h3 id="returns">Returns</h3> <p>A 201 Created response containing a submission.</p> <h2 id="updating-a-submission">Updating a submission</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/drafts/mp98hktrwp'</span> <span class="se">\</span> -X PATCH <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-rdm-submission-modification-request.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-rdm-submission.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"b3zdUk4s"</span>, <span class="s2">"owner"</span>: <span class="o">{</span> <span class="s2">"email"</span>: <span class="s2">"example@email.com"</span><span class="o">}</span>, <span class="s2">"submission_data"</span>: <span class="o">{</span> <span class="s2">"title"</span>: <span class="s2">"Test title"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Example"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Author"</span>, <span class="s2">"email"</span>: <span class="s2">"example@email.com"</span>, <span class="s2">"webuser_id"</span>: <span class="s2">"1234-1234-1234-1234"</span><span class="o">}</span> <span class="o">]}</span> <span class="o">}</span><span class="s1">' { "id": "b3zdUk4s2", "owner": { "email": "example@email.com" }, "submission_data": { "title": "Test title", "authors": [ { "first_name": "Example", "last_name": "Author", "email": "example@email.com", "webuser_id": "1234-1234-1234-1234" } ] }, "submission_token": "628e0343-5de5-4955-a64f-2637f675bd6e", "datasets": [] } </span></code></pre> <p>Returns a modified submission.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH /datasets/submissions/{submission_system}/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 201 Created response containing a submission.</p> <h2 id="adding-dataset-to-submission">Adding dataset to submission</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/submissions/{submission_system}/{id}/datasets?submission_token={submission_token}'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-dataset-creation-request.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Some description goes here"</span>, <span class="s2">"files"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"filename"</span>: <span class="s2">"test.txt"</span>, <span class="s2">"content_details"</span>: <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"883487f3-9bfe-4e44-9cc4-705fec68913a"</span><span class="o">}</span> <span class="o">}]</span> <span class="o">}</span> <span class="s1">' { "related_links": [], "id": "6gz33fkcs7", "doi": { "id": "10.4124/6gz33fkcs7.1", "status": "reserved" }, "description": "Some description goes here", "owner": { "email": "example@email.com" }, "version": 1, "created_date": "2016-07-28T07:27:51.492Z", "last_modification_date": "2016-07-28T07:27:51.492Z", "view_token": "dc0c279a-dd71-4a48-8d96-62fbf58558aa", "contributors": [], "versions": [], "files": [ { "filename": "test.txt", "content_details": { "id": "883487f3-9bfe-4e44-9cc4-705fec68913a", "sha256_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "sha1_hash": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "content_type": "text/plain", "size": 0, "created_date": "2016-05-18T00:00:00.000Z", "download_url": {download url}, "view_url": {download url}, "download_expiry_time": "2016-07-28T08:27:52.226Z" } } ], "articles": [], "permissions": [ "read_dataset", "read_view_token", "read_contributor_email_addresses", "update_dataset", "publish_dataset", "delete_draft" ], "categories": [], "institutions": [] } </span></code></pre> <p>Returns created submission’s dataset.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST /datasets/submissions/{submission_system}/{id}/datasets?submission_token={submission_token}</code></p> <h3 id="returns">Returns</h3> <p>A 201 Created response containing a dataset.</p> <h2 id="getting-datasets-associated-with-submission">Getting datasets associated with submission</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/submissions/{submission_system}/{id}/datasets?fields=id,version,description&submission_token={submission_token}'</span> <span class="se">\</span> -X GET <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-draft-dataset.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"6gz33fkcs7"</span>, <span class="s2">"description"</span>: <span class="s2">"Some description goes here"</span>, <span class="s2">"version"</span>: 1 <span class="o">}</span> <span class="o">]</span> </code></pre> <p>Returns datasets associated with submission.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET /datasets/submissions/{submission_system}/{id}/datasets?fields=id,version,description&submission_token={submission_token}</code></p> <h3 id="returns">Returns</h3> <p>A 200 Ok response containing a datasets.</p> <h2 id="unlinking-dataset-from-submission">Unlinking dataset from submission</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/datasets/submissions/{submission_system}/{id}/datasets/{dataset_id}?submission_token={submission_token}'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE https://api.mendeley.com/datasets/submissions/{submission_system}/{id}/datasets/{dataset_id}?submission_token={submission_token}</code></p> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h1 id="disciplines">Disciplines</h1> <h2 id="retrieve-all-disciplines">Retrieve all disciplines</h2> <p>Retrieves all disciplines and possible sub-disciplines. Sample JSON is abbreviated below to the top 3 disciplines. </p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/disciplines'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-discipline.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Arts and Literature"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Architecture"</span>, <span class="s2">"Art History"</span>, <span class="s2">"Children's Literature"</span>, <span class="s2">"Culture Heritage"</span>, <span class="s2">"Film and TV Studies"</span>, <span class="s2">"Folklore"</span>, <span class="s2">"Latin"</span>, <span class="s2">"Literature"</span>, <span class="s2">"Miscellaneous"</span>, <span class="s2">"Music"</span>, <span class="s2">"Visual and Performing Arts"</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Astronomy / Astrophysics / Space Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Celestial Mechanics"</span>, <span class="s2">"Cosmology"</span>, <span class="s2">"Extragalactic Astronomy"</span>, <span class="s2">"Interstellar Matter"</span>, <span class="s2">"Meteors"</span>, <span class="s2">"Miscellaneous"</span>, <span class="s2">"Solar Terrestrial Physics"</span>, <span class="s2">"Stars"</span>, <span class="s2">"The Sun"</span>, <span class="s2">"Theoretical Astrophysics"</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Biological Sciences"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Agricultural Science"</span>, <span class="s2">"Algology"</span>, <span class="s2">"Animal Behavior"</span>, <span class="s2">"Animal Physiology"</span>, <span class="s2">"Biochemistry"</span>, <span class="s2">"Bioinformatics"</span>, <span class="s2">"Biometry"</span>, <span class="s2">"Biophysics"</span>, <span class="s2">"Biotechnology"</span>, <span class="s2">"Botany"</span>, <span class="s2">"Cellular Biology"</span>, <span class="s2">"Embryology"</span>, <span class="s2">"Entomology"</span>, <span class="s2">"Food Science and Technology"</span>, <span class="s2">"Forestry Science"</span>, <span class="s2">"Genetics"</span>, <span class="s2">"Hydrobiology"</span>, <span class="s2">"Ichthyology"</span>, <span class="s2">"Immunology"</span>, <span class="s2">"Limnology"</span>, <span class="s2">"Marine Biology"</span>, <span class="s2">"Microbiology"</span>, <span class="s2">"Microscopy"</span>, <span class="s2">"Miscellaneous"</span>, <span class="s2">"Molecular Biology"</span>, <span class="s2">"Mycology"</span>, <span class="s2">"Neurobiology"</span>, <span class="s2">"Ornithology"</span>, <span class="s2">"Parasitology"</span>, <span class="s2">"Plant Sciences"</span>, <span class="s2">"Soil Sciences"</span>, <span class="s2">"Veterinary Science"</span>, <span class="s2">"Virology"</span>, <span class="s2">"Zoology and Animal Science"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> .... .... </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/disciplines</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all disciplines and subdisciplines in Mendeley.</p> <h1 id="documents">Documents</h1> <h2 id="core-document-attributes">Core document attributes</h2> <p>The following attributes are returned by default.</p> <p>Some string attributes have a maximum length - these are indicated in the table below.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td></td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> <tr> <td>title</td> <td>string</td> <td>500</td> <td>Title of the document. This is a required field.</td> </tr> <tr> <td>type</td> <td>string</td> <td></td> <td>The type of the document. Supported types: journal, book, generic, book_section, conference_proceedings, working_paper, report, web_page, thesis, magazine_article, statute, patent, newspaper_article, computer_program, hearing, television_broadcast, encyclopedia_article, case, film, bill.</td> </tr> <tr> <td>profile_id</td> <td>string</td> <td></td> <td>Profile id (UUID) of the Mendeley user that added the document to the system.</td> </tr> <tr> <td>group_id</td> <td>string</td> <td></td> <td>Group id (UUID) that the document belongs to.</td> </tr> <tr> <td>created</td> <td>string</td> <td></td> <td>Date the document was added to the system. This date is set by the server after a successful create request. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>last_modified</td> <td>string</td> <td></td> <td>Date in which the document was last modified. This date is set by the server after a successful update request. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>abstract</td> <td>string</td> <td>10,000</td> <td>Brief summary of the document.</td> </tr> <tr> <td>source</td> <td>string</td> <td>255</td> <td>Publication outlet, i.e. where the document was published.</td> </tr> <tr> <td>year</td> <td>integer</td> <td></td> <td>Year in which the document was issued/published.</td> </tr> <tr> <td>authors</td> <td>array</td> <td></td> <td>List of authors of the document, as <a href="#people">person</a> objects.</td> </tr> <tr> <td>identifiers</td> <td>object</td> <td>500 each</td> <td>List of identifiers available for the document. The supported identifiers are: arxiv, doi, isbn, issn, pmid (PubMed), scopus and ssrn.</td> </tr> <tr> <td>keywords</td> <td>array</td> <td>300 each</td> <td>List of author-supplied keywords for the document.</td> </tr> </tbody></table> <h2 id="additional-document-attributes">Additional document attributes</h2> <p>The following attributes are available using a <a href="#document-views">view</a>.</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>month</td> <td>integer</td> <td></td> <td>Month in which the document was issued/published. This should be an integer between 1 and 12.</td> </tr> <tr> <td>day</td> <td>integer</td> <td></td> <td>Day in which the document was issued/published. This should be an integer between 1 and 31.</td> </tr> <tr> <td>revision</td> <td>string</td> <td>255</td> <td>Number identifying the item (e.g. a report number).</td> </tr> <tr> <td>pages</td> <td>string</td> <td>50</td> <td>range of pages the document covers in the issue, e.g 4-8.</td> </tr> <tr> <td>volume</td> <td>string</td> <td>20</td> <td>volume holding the document, e.g “2” from journal volume 2.</td> </tr> <tr> <td>issue</td> <td>string</td> <td>255</td> <td>issue holding the document, e.g. “5” for a journal article from journal volume 2, issue 5</td> </tr> <tr> <td>websites</td> <td>array</td> <td>5000 total</td> <td>Where the document was accessed from.</td> </tr> <tr> <td>publisher</td> <td>string</td> <td>255</td> <td>Publisher of the document.</td> </tr> <tr> <td>city</td> <td>string</td> <td>255</td> <td>city where the document was published.</td> </tr> <tr> <td>edition</td> <td>array</td> <td>20</td> <td>edition holding the document, e.g. “3” from the third edition of a book.</td> </tr> <tr> <td>institution</td> <td>string</td> <td>255</td> <td>Institution in which the document was published.</td> </tr> <tr> <td>series</td> <td>string</td> <td>255</td> <td>title of the collection holding the document (e.g. the series title for a book)</td> </tr> <tr> <td>chapter</td> <td>string</td> <td>20</td> <td>Chapter number.</td> </tr> <tr> <td>editors</td> <td>array</td> <td></td> <td>List of editors of the document, as <a href="#people">person</a> objects.</td> </tr> <tr> <td>accessed</td> <td>string</td> <td></td> <td>Date that the document was accessed. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>tags</td> <td>array</td> <td>100 each</td> <td>List of user-supplied tags for the document.</td> </tr> <tr> <td>read</td> <td>boolean</td> <td></td> <td>Flag used to identify whether the document has been read or not.</td> </tr> <tr> <td>starred</td> <td>boolean</td> <td></td> <td>Flag used to identify whether the user has marked the document as favourite.</td> </tr> <tr> <td>authored</td> <td>boolean</td> <td></td> <td>Flag used to identify whether the user has authored the document.</td> </tr> <tr> <td>confirmed</td> <td>boolean</td> <td></td> <td>Flag to identify whether the metadata of the document is correct after it has been extracted from the PDF file.</td> </tr> <tr> <td>hidden</td> <td>boolean</td> <td></td> <td>Flag to identify whether Mendeley can publish this document to the Mendeley catalog.</td> </tr> <tr> <td>file_attached</td> <td>boolean</td> <td></td> <td>Flag to identify whether the document has a file attached. Files can be retrieved using the <a href="#files">files API</a>.</td> </tr> <tr> <td>citation_key</td> <td>string</td> <td>255</td> <td>Identifier used by BibTeX when citing documents.</td> </tr> <tr> <td>source_type</td> <td>string</td> <td>255</td> <td>Original type of a document imported from BibTeX.</td> </tr> <tr> <td>language</td> <td>string</td> <td>255</td> <td>Language of the document.</td> </tr> <tr> <td>short_title</td> <td>string</td> <td>50</td> <td>A short version of the title, used in some citations.</td> </tr> <tr> <td>reprint_edition</td> <td>string</td> <td>10</td> <td>Edition number of this reprint of the document.</td> </tr> <tr> <td>genre</td> <td>string</td> <td>255</td> <td>Class, type or genre of the document.</td> </tr> <tr> <td>country</td> <td>string</td> <td>255</td> <td>Country where the document was published.</td> </tr> <tr> <td>translators</td> <td>array</td> <td></td> <td>List of translators of the document, as <a href="#people">person</a> objects.</td> </tr> <tr> <td>series_editor</td> <td>string</td> <td>255</td> <td>Editor name for a book series.</td> </tr> <tr> <td>code</td> <td>string</td> <td>255</td> <td>Code for legal documents.</td> </tr> <tr> <td>medium</td> <td>string</td> <td>255</td> <td>Medium description (e.g. “CD”, “DVD”).</td> </tr> <tr> <td>user_context</td> <td>string</td> <td>255</td> <td>The format of the item (e.g. Journal)</td> </tr> <tr> <td>department</td> <td>string</td> <td>255</td> <td>University department name.</td> </tr> <tr> <td>patent_owner</td> <td>string</td> <td>255</td> <td>Name of patent assignee.</td> </tr> <tr> <td>patent_application_number</td> <td>string</td> <td>255</td> <td>Patent application number.</td> </tr> <tr> <td>patent_legal_status</td> <td>string</td> <td>255</td> <td>Legal status of document, example values “Restricted”, “Pending approval”, “Granted”.</td> </tr> </tbody></table> <h3 id="people">People</h3> <p>People are represented as an object with the following attributes:</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>last_name</td> <td>string</td> <td>255</td> <td>Last name of the person. Required.</td> </tr> <tr> <td>first_name</td> <td>string</td> <td>255</td> <td>First name of the person.</td> </tr> </tbody></table> <h2 id="document-views">Document views</h2> <p>To get additional fields, you can use one of the following views:</p> <table><thead> <tr> <th>Value</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>bib</td> <td>Will return the core fields plus the bibliographic data. This includes: pages, volume, issue, websites, month, publisher, day, city, edition, institution, series, chapter, revision, editors, accessed, citation_key, source_type, language, short_title, reprint_edition, genre, country, translators, series_editor, code, medium, user_context, department.</td> </tr> <tr> <td>client</td> <td>Will return the core fields plus the fields needed for clients to sync across different devices like read, starred, authored, confirmed, hidden and file_attached.</td> </tr> <tr> <td>tags</td> <td>Will return the core fields plus tags.</td> </tr> <tr> <td>patent</td> <td>Will return the core fields plus patent_owner, patent_application_number and patent_legal_status.</td> </tr> <tr> <td>all</td> <td>Will return all fields.</td> </tr> </tbody></table> <h2 id="retrieving-a-document">Retrieving a document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents/cb58a7d9-8463-34e2-b1b8-457a3872ecdc'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"cb58a7d9-8463-34e2-b1b8-457a3872ecdc"</span>, <span class="s2">"title"</span>: <span class="s2">"Linked Data - The Story So Far"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Christian"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Bizer"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Tom"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Heath"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Tim"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Berners-Lee"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2009, <span class="s2">"source"</span>: <span class="s2">"International Journal on Semantic Web and Information Systems"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"doi"</span>: <span class="s2">"10.4018/jswis.2009081901"</span>, <span class="s2">"issn"</span>: <span class="s2">"15526283"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2014-04-09T09:36:44.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-04-09T09:36:44.000Z"</span>, <span class="s2">"abstract"</span>: <span class="s2">"The term Linked Data refers to a set of best practices for publishing and connecting structured data on the Web......."</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">documents</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'cb58a7d9-8463-34e2-b1b8-457a3872ecdc'</span><span class="p">)</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">Document</span> <span class="n">doc</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getDocument</span><span class="o">(</span><span class="s">"cb58a7d9-8463-34e2-b1b8-457a3872ecdc"</span><span class="o">,</span> <span class="n">View</span><span class="o">.</span><span class="na">ALL</span><span class="o">);</span> </code></pre> <p>Retrieves a document by ID.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/documents/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a single document.</p> <h2 id="retrieving-documents">Retrieving documents</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"b9a91b83-c091-3bd1-93b4-88b4a3123f8e"</span>, <span class="s2">"title"</span>: <span class="s2">"Differential synchronization"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Igor"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Žutić"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2009, <span class="s2">"source"</span>: <span class="s2">"Proceedings of the 9th ACM symposium on Document engineering - DocEng '09"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"isbn"</span>: <span class="s2">"9781605585758"</span>, <span class="s2">"doi"</span>: <span class="s2">"10.1145/1600193.1600198"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2013-10-21T11:47:18.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-01-15T11:43:24.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"2bf33ebd-7cd1-3786-903d-d74d04958e40"</span>, <span class="s2">"title"</span>: <span class="s2">"How to Design a Good API and Why it Matters"</span>, <span class="s2">"type"</span>: <span class="s2">"report"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Joshua"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Bloch"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2006, <span class="s2">"source"</span>: <span class="s2">"Google Inc"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-04-07T08:42:34.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-04-08T10:11:41.000Z"</span>, <span class="s2">"abstract"</span>: <span class="s2">"In lieu of a traditional abstract, I’ve tried to distill the essence of the talk into a collection of maxims"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="k">for</span> <span class="n">doc</span> <span class="ow">in</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">documents</span><span class="o">.</span><span class="nb">iter</span><span class="p">():</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">DocumentList</span> <span class="n">docList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getDocuments</span><span class="o">();</span> <span class="n">List</span><span class="o"><</span><span class="n">Document</span><span class="o">></span> <span class="n">docs</span> <span class="o">=</span> <span class="n">docList</span><span class="o">.</span><span class="na">documents</span><span class="o">;</span> <span class="c1">// Get subsequent pages:</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">docList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> <span class="k">while</span><span class="o">(</span><span class="n">next</span> <span class="o">!=</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span> <span class="n">docList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getDcouments</span><span class="o">(</span><span class="n">next</span><span class="o">);</span> <span class="n">docs</span><span class="o">.</span><span class="na">addAll</span><span class="o">(</span><span class="n">docList</span><span class="o">.</span><span class="na">documents</span><span class="o">);</span> <span class="n">next</span> <span class="o">=</span> <span class="n">docList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> <span class="o">}</span> </code></pre> <p>Retrieves a list of documents.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/documents</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> <tr> <td>profile_id</td> <td>string</td> <td>the id of the profile that the document belongs to, that does not belong to any group. If not supplied returns users documents.</td> </tr> <tr> <td>group_id</td> <td>string</td> <td>the id of the group that the document belongs to. If not supplied returns users documents.</td> </tr> <tr> <td>modified_since</td> <td>string</td> <td>returns only documents modified since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>deleted_since</td> <td>string</td> <td>returns only documents deleted since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> <tr> <td>order</td> <td>string</td> <td>sort order</td> </tr> <tr> <td>sort</td> <td>string</td> <td>field to sort on</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated list of documents.</p> <h2 id="retrieving-a-bibtex-document">Retrieving a BiBTex document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents/cb58a7d9-8463-34e2-b1b8-457a3872ecdc?view=bib'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/x-bibtex'</span> @article<span class="o">{</span>Armbrust2009, title <span class="o">=</span> <span class="o">{</span>Above the clouds: A Berkeley view of cloud computing<span class="o">}</span>, year <span class="o">=</span> <span class="o">{</span>2009<span class="o">}</span>, journal <span class="o">=</span> <span class="o">{</span> University of California, Berkeley, Tech. Rep. UCB <span class="o">}</span>, author <span class="o">=</span> <span class="o">{</span>Armbrust, M and Fox, A and Griffith, R and Joseph, AD and RH<span class="o">}</span>, pages <span class="o">=</span> <span class="o">{</span>07-013<span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">coming</span> <span class="n">soon</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span> </code></pre> <p>Retrieves a document in BiBTex format.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/documents/{id}?view=bib</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> <tr> <td>view</td> <td>string</td> <td>needs to be set to ‘bib’</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a single document in BiBTex format</p> <h2 id="retrieving-bibtex-documents">Retrieving BiBTex documents</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents?view=bib'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/x-bibtex'</span> @article<span class="o">{</span>Mirashe2010, title <span class="o">=</span> <span class="o">{</span>Cloud Computing<span class="o">}</span>, year <span class="o">=</span> <span class="o">{</span>2010<span class="o">}</span>, journal <span class="o">=</span> <span class="o">{</span>Communications of the ACM<span class="o">}</span>, author <span class="o">=</span> <span class="o">{</span>Mirashe, Shivaji P and Kalyankar, N V<span class="o">}</span>, chapter <span class="o">=</span> <span class="o">{</span>6<span class="o">}</span>, doi <span class="o">=</span> <span class="o">{</span>10.1145/358438.349303<span class="o">}</span>, editor <span class="o">=</span> <span class="o">{</span>Antonopoulos, Nick and Gillam, Lee<span class="o">}</span>, number <span class="o">=</span> <span class="o">{</span>7<span class="o">}</span>, pages <span class="o">=</span> <span class="o">{</span>9<span class="o">}</span>, series <span class="o">=</span> <span class="o">{</span>Informatik im Fokus<span class="o">}</span>, volume <span class="o">=</span> <span class="o">{</span>51<span class="o">}</span> <span class="o">}</span> @misc<span class="o">{</span>Ghemawat2003, title <span class="o">=</span> <span class="o">{</span>The Google file system<span class="o">}</span>, year <span class="o">=</span> <span class="o">{</span>2003<span class="o">}</span>, booktitle <span class="o">=</span> <span class="o">{</span>ACM SIGOPS Operating Systems Review<span class="o">}</span>, author <span class="o">=</span> <span class="o">{</span>Ghemawat, Sanjay and Gobioff, Howard and Leung, Shun-Tak<span class="o">}</span>, number <span class="o">=</span> <span class="o">{</span>5<span class="o">}</span>, pages <span class="o">=</span> <span class="o">{</span>29<span class="o">}</span>, volume <span class="o">=</span> <span class="o">{</span>37<span class="o">}</span> <span class="o">}</span> @article<span class="o">{</span>Armbrust2009, title <span class="o">=</span> <span class="o">{</span>Above the clouds: A Berkeley view of cloud computing<span class="o">}</span>, year <span class="o">=</span> <span class="o">{</span>2009<span class="o">}</span>, journal <span class="o">=</span> <span class="o">{</span> University of California, Berkeley, Tech. Rep. UCB <span class="o">}</span>, author <span class="o">=</span> <span class="o">{</span>Armbrust, M and Fox, A and Griffith, R and Joseph, AD and RH<span class="o">}</span>, pages <span class="o">=</span> <span class="o">{</span>07-013<span class="o">}</span> <span class="o">}</span> @inproceedings<span class="o">{</span>Chang2006, title <span class="o">=</span> <span class="o">{</span>Bigtable: A distributed storage system <span class="k">for </span>structured data<span class="o">}</span>, year <span class="o">=</span> <span class="o">{</span>2006<span class="o">}</span>, booktitle <span class="o">=</span> <span class="o">{</span>7th Symposium on Operating Systems Design and Implementation <span class="o">(</span>OSDI <span class="s1">'06), November 6-8, Seattle, WA, USA}, author = {Chang, Fay and Dean, Jeffrey and Ghemawat, Sanjay and Hsieh, Wilson C. and Wallach, Deborah A. and Burrows, Mike and Chandra, Tushar and Fikes, Andrew and Gruber, Robert E.}, pages = {205-218} } </span></code></pre> <pre><code class="highlight python"><span class="n">coming</span> <span class="n">soon</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span> </code></pre> <p>Retrieves multiple documents in BiBTex format.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/documents?view=bib</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>view</td> <td>string</td> <td>needs to be set to 'bib’</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated list of BiBTex documents</p> <h2 id="creating-a-document-from-metadata">Creating a document from metadata</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-document.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"title"</span>: <span class="s2">"How To Build a Mendeley API"</span><span class="o">}</span><span class="s1">' { "id": "b3a561de-f317-3042-8a5e-0161e7b5fe1d", "title": "How To Build a Mendeley API", "type": "journal", "created": "2014-07-01T10:59:51.357Z", "profile_id": "4afc0c0f-88ab-3aed-a20a-f50934fc83b1", "year": 2009, "source": "Molecular Cell", "title": "How To Choose a Good Scientific Problem", "identifiers": { "doi": "10.1016/j.molcel.2009.09.013", "issn": "10972765" }, "authors": [ { "first_name": "Uri", "last_name": "Alon" } ], "pages": "726-728", "volume": "35", "issue": "6" } </span></code></pre> <pre><code class="highlight python"><span class="n">doc</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">documents</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s">'How To Choose a Good Scientific Problem'</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="s">'journal'</span><span class="p">)</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="nb">id</span> </code></pre> <pre><code class="highlight java"><span class="n">Document</span> <span class="n">doc</span> <span class="o">=</span> <span class="n">Document</span><span class="o">.</span><span class="na">getBuilder</span><span class="o">(</span><span class="s">"How To Choose a Good Scientific Problem"</span><span class="o">,</span> <span class="s">"journal"</span><span class="o">).</span><span class="na">build</span><span class="o">();</span> <span class="n">Document</span> <span class="n">created</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">postDocument</span><span class="o">(</span><span class="n">doc</span><span class="o">);</span> <span class="n">String</span> <span class="n">id</span> <span class="o">=</span> <span class="n">created</span><span class="o">.</span><span class="na">id</span><span class="o">;</span> </code></pre> <p>Creates a document.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/documents</code></p> <h3 id="returns">Returns</h3> <p>After a successful create request, the server will return newly created object and a 201 response with the URL of the newly created resource available in the Location header.</p> <h2 id="creating-a-document-from-a-file">Creating a document from a file</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/pdf'</span> <span class="se">\</span> -H <span class="s1">'Content-Disposition: attachment; filename="example.pdf"'</span> <span class="se">\</span> --data-binary @example.pdf </code></pre> <pre><code class="highlight python"><span class="n">document</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">documents</span><span class="o">.</span><span class="n">create_from_file</span><span class="p">(</span><span class="s">'example.pdf'</span><span class="p">)</span> </code></pre> <p>Creates a document by extracting metadata from a supplied file.</p> <h3 id="header-parameters">Header Parameters</h3> <p>The following header parameters must be set.</p> <table><thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>Content-Type</td> <td>This header will tell the server the file’s media type. For example, application/pdf.</td> </tr> <tr> <td>Content-Disposition</td> <td>This header is used to extract the file’s name. The value should be, for example: attachment; filename=“example.pdf”</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>After a successful create request, the server will return newly created object and a 201 response with the URL of the newly created resource available in the Location header.</p> <h2 id="updating-documents">Updating documents</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents/6e456c13-e850-3cf4-9f25-0d8307d36443'</span> <span class="se">\</span> -X PATCH <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-document.1+json'</span> <span class="se">\</span> --data-binary <span class="s1">'{"type": "journal", "title": "How To Build an Awesome Mendeley API"}'</span> </code></pre> <pre><code class="highlight python"><span class="n">updated_doc</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s">'How To Build an Awesome Mendeley API'</span><span class="p">)</span> </code></pre> <pre><code class="highlight java"><span class="n">Document</span> <span class="n">amendments</span> <span class="o">=</span> <span class="n">Document</span><span class="o">.</span><span class="na">getBuilder</span><span class="o">().</span><span class="na">setYear</span><span class="o">(</span><span class="mi">2015</span><span class="o">).</span><span class="na">build</span><span class="o">();</span> <span class="n">sdk</span><span class="o">.</span><span class="na">patchDocument</span><span class="o">(</span><span class="s">"6e456c13-e850-3cf4-9f25-0d8307d36443"</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span> <span class="n">Document</span> <span class="n">amendments</span><span class="o">);</span> </code></pre> <p>Only the fields you pass in the request will be updated. You can clear a field by passing a null value for it.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/documents/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> </tbody></table> <h3 id="header-parameters">Header Parameters</h3> <p>A client can put a precondition on the request using the <code class="prettyprint">If-Unmodified-Since</code> header e.g do not apply an update if the document was modified after this time.</p> <table><thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>If-Unmodified-Since</td> <td><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC-2616</a></td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A successful update will return a HTTP 200 with the updated document.</p> <h2 id="move-a-document-to-the-trash">Move a document to the trash</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents/6e456c13-e850-3cf4-9f25-0d8307d36443/trash'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="n">trashed_doc</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">move_to_trash</span><span class="p">()</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">trashDocument</span><span class="o">(</span><span class="s">"6e456c13-e850-3cf4-9f25-0d8307d36443"</span><span class="o">);</span> </code></pre> <p>Moves a document to the trash. It can still be restored.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/documents/{id}/trash</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h2 id="delete-a-document">Delete a document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/documents/c9939b3f-eddd-33ab-8f2f-7337fcd5cf39'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span><span class="o">.</span><span class="n">delete</span><span class="p">()</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">deleteDocument</span><span class="o">(</span><span class="s">"c9939b3f-eddd-33ab-8f2f-7337fcd5cf39"</span><span class="o">);</span> </code></pre> <p>Permanently deletes a document.</p> <p><code class="prettyprint">DELETE https://api.mendeley.com/documents/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h2 id="retrieve-list-of-deleted-documents-ids">Retrieve list of deleted documents ids</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/deleted_documents'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-deleted-document.1+json'</span> </code></pre> <p>Retrieve a list of deleted documents ids.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/deleted_documents</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>since</td> <td>date</td> <td>Returns only documents deleted since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>group_id</td> <td>string</td> <td>Group ID (UUID). If not supplied, returns user documents</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing the ids of the deleted documents</p> <h1 id="documents-metadata-lookup">Documents Metadata Lookup</h1> <h2 id="metadata-lookup">Metadata lookup</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/metadata?doi=10.1038%2F35095137'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document-lookup.1+json'</span> <span class="o">{</span> <span class="s2">"catalog_id"</span>: <span class="s2">"f5cc2417-a636-3c6a-9748-13aab2c2b35d"</span>, <span class="s2">"score"</span>: 100 <span class="o">}</span> </code></pre> <pre><code class="highlight python"> <span class="n">Coming</span> <span class="n">soon</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Finds the catalog_id with the best metadata for the provided data. </p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/metadata</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>arxiv</td> <td>string</td> <td><a href="http://uk.arxiv.org/help/arxiv_identifier">arXiv identifier </a></td> </tr> <tr> <td>doi</td> <td>string</td> <td><a href="http://uk.arxiv.org/help/arxiv_identifier">Digital Object Identifier </a></td> </tr> <tr> <td>pmid</td> <td>string</td> <td><a href="http://www.ncbi.nlm.nih.gov/pubmed">PubMed identifier</a></td> </tr> <tr> <td>title</td> <td>string</td> <td>Matches terms in the title of the document.</td> </tr> <tr> <td>filehash</td> <td>string</td> <td>Filehash of the file</td> </tr> <tr> <td>authors</td> <td>string</td> <td>Matches the names of one or more authors.</td> </tr> <tr> <td>year</td> <td>string</td> <td>Year of publication</td> </tr> <tr> <td>source</td> <td>string</td> <td>Matches the publication name.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>Returns the <code class="prettyprint">catalog_id</code> of the closest matching catalog document. The <code class="prettyprint">score</code> is a confidence indicator of the match with 100 being very confident. </p> <h1 id="files">Files</h1> <h2 id="file-attributes">File attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The unique identifier for the file (required for other operations).</td> </tr> <tr> <td>file_name</td> <td>string</td> <td>The name of the file. This is currently a generated name from the metadata of the document that the file is attached to. However, we will support original file names from the upload soon.</td> </tr> <tr> <td>mime_type</td> <td>string</td> <td>The mime type of the file. This is used to work out the extension of the file. More info on mime types <a href="http://en.wikipedia.org/wiki/Internet_media_type">here</a>.</td> </tr> <tr> <td>filehash</td> <td>string</td> <td>SHA1 hash of the file. This can be used to check the integrity of the file.</td> </tr> <tr> <td>document_id</td> <td>string</td> <td>The id of the document the file is attached to.</td> </tr> <tr> <td>size</td> <td>integer</td> <td>The size of the file, in bytes.</td> </tr> </tbody></table> <h2 id="retrieving-files">Retrieving files</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/files'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-file.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"16bd4f6e-4578-3391-356d-66b374143457"</span>, <span class="s2">"document_id"</span>: <span class="s2">"183217fc-9c61-34d1-be8b-996556410ccb"</span>, <span class="s2">"mime_type"</span>: <span class="s2">"application/pdf"</span>, <span class="s2">"file_name"</span>: <span class="s2">"MapReduce"</span>, <span class="s2">"filehash"</span>: <span class="s2">"f22d97429926d433552174507586c1ff9df3cabd"</span>, <span class="s2">"size"</span>: 383810 <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"14336272-ae94-1b83-2193-158c3f6afcef"</span>, <span class="s2">"document_id"</span>: <span class="s2">"3a691e84-8922-3de1-8819-53b85e54c559"</span>, <span class="s2">"mime_type"</span>: <span class="s2">"application/pdf"</span>, <span class="s2">"file_name"</span>: <span class="s2">"Inside Front Cover - Scope & Editors"</span>, <span class="s2">"filehash"</span>: <span class="s2">"12aa3051a009fa6e9ab5983e68b8fd3302b57690"</span>, <span class="s2">"size"</span>: 42641 <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"2e0daf4b-bb2d-8979-0c1f-a7f44f456d29"</span>, <span class="s2">"document_id"</span>: <span class="s2">"99ff5452-0aab-333c-9c81-79329146c2fb"</span>, <span class="s2">"mime_type"</span>: <span class="s2">"application/pdf"</span>, <span class="s2">"file_name"</span>: <span class="s2">"MapReduce Online"</span>, <span class="s2">"filehash"</span>: <span class="s2">"6c577e7518c8dfcf472f3be7e5686d4bcbbc4c45"</span>, <span class="s2">"size"</span>: 553896 <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="k">for</span> <span class="nb">file</span> <span class="ow">in</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">files</span><span class="o">.</span><span class="nb">iter</span><span class="p">():</span> <span class="k">print</span> <span class="nb">file</span><span class="o">.</span><span class="n">filehash</span> </code></pre> <pre><code class="highlight java"><span class="n">FileList</span> <span class="n">fileList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getFiles</span><span class="o">();</span> <span class="n">List</span><span class="o"><</span><span class="n">File</span><span class="o">></span> <span class="n">files</span> <span class="o">=</span> <span class="n">fileList</span><span class="o">.</span><span class="na">files</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">fileList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Returns a list of files in your library.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/files</code></p> <h3 id="query-parameters">Query Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>document_id</td> <td>When this is provided, the response will contain only the files attached to that particular document.</td> <td></td> </tr> <tr> <td>group_id</td> <td>When this is provided, the response will contain only the files attached to documents that belong to that particular group.</td> <td></td> </tr> <tr> <td>added_since</td> <td>Response will only contain those files uploaded since the ‘added_since’ date. This date should be an ISO 8601 timestamp.</td> <td></td> </tr> <tr> <td>deleted_since</td> <td>Response will only contain those files deleted since this date. It should be an ISO 8601 timestamp.</td> <td></td> </tr> </tbody></table> <h2 id="downloading-a-file">Downloading a file</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/files/16bd4f6e-4578-3391-356d-66b374143457'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="n">path</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">download_file</span><span class="p">(</span><span class="s">'/tmp'</span><span class="p">)</span> </code></pre> <pre><code class="highlight java"><span class="n">MendeleySdk</span> <span class="n">asyncSdk</span> <span class="o">=</span> <span class="n">MendeleySdkFactory</span><span class="o">.</span><span class="na">getInstance</span><span class="o">();</span> <span class="n">GetFileCallback</span> <span class="n">getFileCallback</span> <span class="o">=</span> <span class="k">new</span> <span class="n">GetFileCallback</span><span class="o">()</span> <span class="o">{</span> <span class="o">...</span> <span class="o">}</span> <span class="n">asyncSdk</span><span class="o">.</span><span class="na">getFile</span><span class="o">(</span><span class="s">"16bd4f6e-4578-3391-356d-66b374143457"</span><span class="o">,</span> <span class="s">"/sdcard"</span><span class="o">,</span> <span class="n">getFileCallback</span><span class="o">);</span> </code></pre> <p>Downloads a file.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET /files/{id}</code></p> <h3 id="returns">Returns</h3> <p>On a successful request the server will respond with a 303 See Other response together with a Location header. The URL in this location header is signed for a limited period of time where the file can be downloaded.</p> <h2 id="uploading-a-file">Uploading a file</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/files'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/pdf'</span> <span class="se">\</span> -H <span class="s1">'Content-Disposition: attachment; filename="example.pdf"'</span> <span class="se">\</span> -H <span class="s1">'Link: <https://api.mendeley.com/documents/cfb60e27-d3e4-397d-bb59-fc8388b98152>; rel="document"'</span> <span class="se">\</span> --data-binary @example.pdf </code></pre> <pre><code class="highlight python"><span class="nb">file</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">attach_file</span><span class="p">(</span><span class="s">'example.pdf'</span><span class="p">)</span> </code></pre> <pre><code class="highlight java"><span class="n">PostFileCallback</span> <span class="n">postFileCallback</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PostFileCallback</span><span class="o">()</span> <span class="o">{</span> <span class="o">...</span> <span class="o">}</span> <span class="n">asyncSdk</span><span class="o">.</span><span class="na">postFile</span><span class="o">(</span><span class="s">"application/pdf"</span><span class="o">,</span> <span class="s">"cfb60e27-d3e4-397d-bb59-fc8388b98152"</span><span class="o">,</span> <span class="s">"/sdcard/example.pdf"</span><span class="o">,</span> <span class="n">postFileCallback</span><span class="o">);</span> </code></pre> <p>Uploads a file.</p> <h3 id="header-parameters">Header Parameters</h3> <p>The following header parameters must be set.</p> <table><thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>Content-Type</td> <td>This header will tell the server the file’s media type. For example, application/pdf.</td> </tr> <tr> <td>Content-Disposition</td> <td>This header is used to extract the file’s name. The value should be, for example: attachment; filename=“example.pdf”</td> </tr> <tr> <td>Link</td> <td>We use this header to specify the document that the file should be attached to. For example: https://api.mendeley.com/documents/cfb60e27-d3e4-397d-bb59-fc8388b98152</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A successful request will respond with a 201 Created code and a Location header where you can find the URL where you can download the file.</p> <h2 id="linking-a-file-content-to-a-file">Linking a file content to a file</h2> <p>Creates a file based on a file content ticket obtained from /file_contents endpoint</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/files'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-file.1+json'</span> <span class="se">\</span> -H <span class="s1">'Content-Disposition: attachment; filename="file.pdf"'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-file-link.1+json'</span> <span class="se">\</span> -H <span class="s1">'Link: <https://api.mendeley.com/documents/34542a05-ca31-3f25-9280-678e81a8a848>; rel="document"'</span> <span class="se">\</span> --data-binary <span class="s1">'{"file_content_ticket" : "<FILE_CONTENT_TICKET_ID>"}'</span> </code></pre> <h3 id="header-parameters">Header Parameters</h3> <p>The following header parameters must be set.</p> <table><thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>Accept</td> <td>application/vnd.mendeley-file.1+json</td> </tr> <tr> <td>Content-Type</td> <td>application/vnd.mendeley-file-link.1+json</td> </tr> <tr> <td>Content-Disposition</td> <td>This header is used to extract the file’s name. The value should be, for example: attachment; filename=“example.pdf”</td> </tr> <tr> <td>Link</td> <td>We use this header to specify the document that the file should be attached to. For example: https://api.mendeley.com/documents/cfb60e27-d3e4-397d-bb59-fc8388b98152</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A successful request will respond with a 201 Created code and a Location header where you can find the URL where you can download the file.</p> <h2 id="deleting-a-file">Deleting a file</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/files/16bd4f6e-4578-3391-356d-66b374143457'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="nb">file</span><span class="o">.</span><span class="n">delete</span><span class="p">()</span> </code></pre> <pre><code class="highlight java"><span class="n">DeleteFileCallback</span> <span class="n">deleteFileCallback</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DeleteFileCallback</span><span class="o">()</span> <span class="o">{</span> <span class="o">...</span> <span class="o">}</span> <span class="n">asyncSdk</span><span class="o">.</span><span class="na">deleteFile</span><span class="o">(</span><span class="s">"16bd4f6e-4578-3391-356d-66b374143457"</span><span class="o">,</span> <span class="n">deleteFileCallback</span><span class="o">);</span> </code></pre> <p>Deletes a file.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE /files/{id}</code></p> <h3 id="returns">Returns</h3> <p>A successful request will respond with a 204 No Content code. Files are permanently deleted and cannot be recovered.</p> <h1 id="file-content">File Content</h1> <h2 id="file-content-attributes">File Content attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>The unique identifier for the content.</td> </tr> <tr> <td>file_hash</td> <td>string</td> <td>sha-256 calculated from file to upload</td> </tr> <tr> <td>signature</td> <td>string</td> <td>sha-256 calculated from concatenated profile id (UUID) and file to upload</td> </tr> </tbody></table> <h2 id="uploading-file-content">Uploading file content</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/file_contents'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/pdf'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-content-ticket.1+json'</span> <span class="se">\</span> --data-binary @example.pdf <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"3f2f968f-553b-467d-8121-ba02cab937a0"</span> <span class="o">}</span> </code></pre> <p>Uploads a file by sending its content as a payload.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/file_contents</code></p> <h3 id="headers">Headers</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>Content-Type</td> <td>string</td> <td>The mime type of the file. More info on mime types <a href="http://en.wikipedia.org/wiki/Internet_media_type">here</a>.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 201 OK response containing a JSON object with the id for the content.</p> <h2 id="uploading-file-contents-via-file-hash-with-signature">Uploading file contents via file hash with signature</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/file_contents'</span> <span class="se">\</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-file-hash.1+json'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-content-ticket.1+json'</span> <span class="se">\</span> --data-binary <span class="s1">'{"file_hash" : "4dab806d72af4224a5cfa168669dac17", "signature" : "7e280ae47152d6f39ddf7452fad300cf721c7b5c7487dfee434be0171e5031e1"}'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"3f2f968f-553b-467d-8121-ba02cab937a0"</span> <span class="o">}</span> </code></pre> <p>Uploads a file by sending a hash calculated from the file itself alongside a signature calculated from concatenated profile id (UUID) and the file itself.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/file_contents</code></p> <h3 id="returns">Returns</h3> <p>A 201 OK response containing a JSON object with the id for the content.</p> <p>A 412 Precondition Failed response when fileHash or signature are invalid</p> <h1 id="folders">Folders</h1> <h2 id="folder-attributes">Folder attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>id of the folder</td> </tr> <tr> <td>name</td> <td>string</td> <td>name of the folder</td> </tr> <tr> <td>parent_id</td> <td>string</td> <td>id of the parent folder</td> </tr> <tr> <td>group_id</td> <td>string</td> <td>id of the owning group</td> </tr> <tr> <td>created</td> <td>string</td> <td>date the folder was created. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>modified</td> <td>string</td> <td>date the folder was modified. This date is represented in ISO 8601 format.</td> </tr> </tbody></table> <h2 id="list-all-folders">List all folders</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span><span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-folder.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"68624820-2f4c-438d-ae54-ae2bc431cee3"</span>, <span class="s2">"name"</span>: <span class="s2">"API Related Papers"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-04-08T10:11:40.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"1cb47377-e3a1-40dd-bd82-11aff83a46eb"</span>, <span class="s2">"name"</span>: <span class="s2">"MapReduce"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-07-02T13:19:36.000Z"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight java"><span class="n">FolderList</span> <span class="n">folderList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getFolders</span><span class="o">();</span> <span class="n">List</span><span class="o"><</span><span class="n">Folder</span><span class="o">></span> <span class="n">folders</span> <span class="o">=</span> <span class="n">folderList</span><span class="o">.</span><span class="na">folders</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">folderList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Retrieves a list of folders.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/folders</code></p> <h3 id="query-parameters">Query Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>group_id</td> <td>string</td> <td>returns all folders in a particular group.</td> </tr> <tr> <td>limit</td> <td>string</td> <td>maximum number of entries to be returned</td> </tr> <tr> <td>marker</td> <td>string</td> <td>a marker for the last key in the previous page (automatically generated, here for completeness)</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>Returns a paginated collection of all of the folders in the user’s library.</p> <h2 id="creating-a-folder">Creating a folder</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-folder.1+json'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-folder.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"name"</span>: <span class="s2">"My favourite publications"</span><span class="o">}</span><span class="s1">' { "id": "a6433ad4-e694-498d-8134-b06d356e7f17", "name": "My favourite publications", "created": "2014-07-02T13:27:52.000Z" } </span></code></pre> <pre><code class="highlight java"><span class="n">Folder</span> <span class="n">folder</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Folder</span><span class="o">.</span><span class="na">Builder</span><span class="o">().</span><span class="na">setName</span><span class="o">(</span><span class="s">"My favourite publications"</span><span class="o">).</span><span class="na">build</span><span class="o">();</span> <span class="n">sdk</span><span class="o">.</span><span class="na">postFolder</span><span class="o">(</span><span class="n">folder</span><span class="o">);</span> </code></pre> <p>Creates a folder.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/folders</code></p> <h3 id="returns">Returns</h3> <p>A successful request will return a 201 and the newly created folder will be returned in the body.</p> <h2 id="updating-a-folder">Updating a folder</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders/a6433ad4-e694-498d-8134-b06d356e7f17'</span> <span class="se">\</span> -X PATCH -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-folder.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"name"</span>: <span class="s2">"My API Publications"</span><span class="o">}</span><span class="s1">' </span></code></pre> <pre><code class="highlight java"><span class="n">Folder</span> <span class="n">amendment</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Folder</span><span class="o">.</span><span class="na">Builder</span><span class="o">().</span><span class="na">setName</span><span class="o">(</span><span class="s">"My API Publications"</span><span class="o">).</span><span class="na">build</span><span class="o">();</span> <span class="n">sdk</span><span class="o">.</span><span class="na">patchFolder</span><span class="o">(</span><span class="s">"a6433ad4-e694-498d-8134-b06d356e7f17"</span><span class="o">,</span> <span class="n">amendment</span><span class="o">);</span> </code></pre> <p>Update the <code class="prettyprint">name</code> and <code class="prettyprint">parent_id</code> of a folder.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/folders/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier of the folder</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h2 id="deleting-a-folder">Deleting a folder</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders/a6433ad4-e694-498d-8134-b06d356e7f17'</span> <span class="se">\</span> -X DELETE -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">deleteFolder</span><span class="o">(</span><span class="s">"a6433ad4-e694-498d-8134-b06d356e7f17"</span><span class="o">);</span> </code></pre> <p>Deletes a folder.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE /folders/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier of the folder</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A successful request will return a 204 No Content.</p> <h2 id="retrieving-documents-in-a-folder">Retrieving documents in a folder</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders/68624820-2f4c-438d-ae54-ae2bc431cee3/documents'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"2bf33ebd-7cd1-3786-903d-d74d04958e40"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"dc9c7b4d-4221-3872-8f78-817f6e125486"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"9cd2fd1b-ec10-3bf8-a46f-d60e1b709075"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"3078c081-717e-3525-81d7-c8e4b1cb9226"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"f86a9bac-34ae-347f-860a-6687b38b18dc"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"c395c80e-3112-3b1f-aebc-b3944cc2f8e9"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight java"><span class="n">DocumentIdList</span> <span class="n">docIdList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getFolderDocumentIds</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="s">"68624820-2f4c-438d-ae54-ae2bc431cee3"</span><span class="o">);</span> <span class="n">List</span><span class="o"><</span><span class="n">DocumentId</span><span class="o">></span> <span class="n">docIds</span> <span class="o">=</span> <span class="n">docIdList</span><span class="o">.</span><span class="na">documentIds</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">docIdList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Retrive documents in a folder.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/folders/{id}/documents</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier of the folder</td> </tr> <tr> <td>limit</td> <td>string</td> <td>number of items to return</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated collection of IDs of the documents in the folder.</p> <h2 id="adding-a-document-to-a-folder">Adding a document to a folder</h2> <p>Adds a document to a folder</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders/68624820-2f4c-438d-ae54-ae2bc431cee3/documents'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-document.1+json'</span> <span class="se">\</span> --data-binary <span class="nv">$'</span><span class="o">{</span><span class="s2">"id"</span>: <span class="s2">"cb58a7d9-8463-34e2-b1b8-457a3872ecdc"</span><span class="o">}</span><span class="s1">' </span></code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">postDocumentToFolder</span><span class="o">(</span><span class="s">"68624820-2f4c-438d-ae54-ae2bc431cee3"</span><span class="o">,</span> <span class="s">"cb58a7d9-8463-34e2-b1b8-457a3872ecdc"</span><span class="o">);</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/folders/{id}/documents</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier of the folder</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 201 Created response.</p> <h2 id="deleting-a-document-from-a-folder">Deleting a document from a folder</h2> <p>Deletes a document from a folder. This will remove the relationship between the folder and the document, but you can still access the document in your library or group.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/folders/68624820-2f4c-438d-ae54-ae2bc431cee3/documents/cb58a7d9-8463-34e2-b1b8-457a3872ecdc'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">DeleteDocumentFromFolder</span><span class="o">(</span><span class="s">"68624820-2f4c-438d-ae54-ae2bc431cee3"</span><span class="o">,</span> <span class="s">"cb58a7d9-8463-34e2-b1b8-457a3872ecdc"</span><span class="o">);</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE https://api.mendeley.com/folders/{id}/documents/{document_id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier of the folder</td> </tr> <tr> <td>document_id</td> <td>string</td> <td>Identifier of the document to be deleted</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h1 id="followers">Followers</h1> <p>Follower resource represent a relationship follower/followee.</p> <h2 id="followers-attributes">Followers attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>UUID of the relationship</td> </tr> <tr> <td>follower_id</td> <td>string</td> <td>UUID of the following profile</td> </tr> <tr> <td>followed_id</td> <td>string</td> <td>UUID of the followed profile</td> </tr> <tr> <td>status</td> <td>string</td> <td>Can be <em>following</em> or <em>pending</em> (for not yet accepted requests)</td> </tr> </tbody></table> <h2 id="retrieve-the-list-of-followers">Retrieve the list of followers</h2> <p>Retrieve all the follow relationships for which the specified profile is the followee</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/followers?followed=c0925ecf-4de0-3b61-ae9a-ebe5f7406327'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-follow.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"15e75590-a1e8-31b5-b0ff-1777b27806a6"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"b84e3c54-55ad-35b3-9102-1b8ae5c13714"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"48cd5bcf-196c-3aac-a658-1d96bd77f2c9"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"3c1c23ad-4dca-3065-86e4-5a168459a171"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span>, ... <span class="o">]</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/followers?followed={followed_id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>followed_id</td> <td>string</td> <td>UUID of the profile for which the follower will be retrieved</td> </tr> <tr> <td>status</td> <td>string</td> <td>(optional) Limit the results of the query to following or pending relationships</td> </tr> <tr> <td>limit</td> <td>int</td> <td>The maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 response containing a paginated list of follow relationships.</p> <h2 id="retrieve-the-list-of-followees">Retrieve the list of followees</h2> <p>Retrieve all the follow relationships for which the specified profile is the follower</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/followers?follower=c0925ecf-4de0-3b61-ae9a-ebe5f7406327'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-follow.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"0f68a3e7-2cfd-3ca7-beaf-969914c98b0b"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"b84e3c54-55ad-35b3-9102-1b8ae5c13714"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"275bc168-5fc9-3d42-a5d0-821244e866fe"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"3c1c23ad-4dca-3065-86e4-5a168459a171"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span>, ... <span class="o">]</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/followers?follower={follower_id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>follower_id</td> <td>string</td> <td>UUID of the profile for which the followees will be retrieved</td> </tr> <tr> <td>status</td> <td>string</td> <td>(optional) Limit the results of the query to following or pending relationships</td> </tr> <tr> <td>limit</td> <td>int</td> <td>The maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 response containing a paginated list of follow relationships.</p> <h2 id="follow-a-profile">Follow a profile</h2> <p>Create a follow relationship with the logged profile as followers and the followed profile specified in the body.</p> <pre><code class="highlight shell">curl -X POST <span class="s1">'https://api.mendeley.com/followers'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-follow-request.1+json'</span> <span class="se">\</span> --data-binary <span class="s1">'{"followed" : "c0925ecf-4de0-3b61-ae9a-ebe5f7406327"}'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"ba7073da-ec89-347a-9651-6f46235f93a3"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"618fbf26-cd24-39d4-a49f-ceddccccfeb0"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST https://api.mendeley.com/followers</code></p> <h3 id="returns">Returns</h3> <p>A 201 Created response containing the follow object.</p> <h2 id="accept-a-follow-request">Accept a follow request</h2> <p>Change the status of a relationship from <em>pending</em> to <em>following</em>.</p> <pre><code class="highlight shell">curl -X PATCH <span class="s1">'https://api.mendeley.com/followers/135e5b6e-ba36-3321-a33e-986ae35779bb'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-follow-acceptance.1+json'</span> <span class="se">\</span> --data-binary <span class="s1">'{"status" : "following"}'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"135e5b6e-ba36-3321-a33e-986ae35779bb"</span>, <span class="s2">"follower_id"</span>: <span class="s2">"105da48f-4201-37cf-9e2f-67c49c0707b0"</span>, <span class="s2">"followed_id"</span>: <span class="s2">"618fbf26-cd24-39d4-a49f-ceddccccfeb0"</span>, <span class="s2">"status"</span>: <span class="s2">"following"</span> <span class="o">}</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/followers/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>UUID of the relationship</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing the updated follow object.</p> <h2 id="cancel-follow-request">Cancel follow request</h2> <p>Same procedure as <a href="#unfollow-a-profile">Unfollow a profile</a></p> <h2 id="reject-follow-request">Reject follow request</h2> <p>Same procedure as <a href="#unfollow-a-profile">Unfollow a profile</a></p> <h2 id="unfollow-a-profile">Unfollow a profile</h2> <p>Delete the follow relationship.</p> <pre><code class="highlight shell">curl -X DELETE <span class="s1">'https://api.mendeley.com/followers/87fee9d4-3ea1-36fd-a2c4-ba2796564cb0'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE https://api.mendeley.com/followers/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>UUID of the relationship</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response in case of success.</p> <h1 id="groups">Groups</h1> <h2 id="group-attributes">Group attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the group. This identifier is set by the server on create and cannot be modified.</td> </tr> <tr> <td>link</td> <td>string</td> <td>URL of the group page in Mendeley.</td> </tr> <tr> <td>owning_profile_id</td> <td>string</td> <td>Profile identifier of the owner of the group.</td> </tr> <tr> <td>access_level</td> <td>string</td> <td>Whether the group is public, private or invite_only. More on access levels below.</td> </tr> <tr> <td>created</td> <td>string</td> <td>Date the group was created. This date is set by the server after a successful create reques and is represented in ISO 8601 format.</td> </tr> <tr> <td>name</td> <td>string</td> <td>The name of the group.</td> </tr> <tr> <td>description</td> <td>string</td> <td>Small description of what the group is about.</td> </tr> <tr> <td>photo</td> <td>object</td> <td>The photo object contains the URL to the photo/logo of the group. There are three sizes available: original, standard and square.</td> </tr> <tr> <td>webpage</td> <td>string</td> <td>Website of the group outside Mendeley.</td> </tr> <tr> <td>disciplines</td> <td>array</td> <td>List of disciplines the group is part of.</td> </tr> <tr> <td>tags</td> <td>array</td> <td>List of tags assigned to the group.</td> </tr> <tr> <td>role</td> <td>string</td> <td>Role of the authenticated user in the group. More on group roles below.</td> </tr> </tbody></table> <h3 id="group-roles">Group roles</h3> <ul> <li><strong>owner</strong>: the creator of the group.</li> <li><strong>admin</strong>: administrator of the group. Only owners and admins can make other members administrators.</li> <li><strong>normal</strong>: normal member of the group. Users can add new references, add files and start discussions in the newsfeed of the group.</li> <li><strong>follower</strong>: followers of the group. Only public groups can have followers. Followers cannot interact with other members, i.e. post in newsfeed and participate in discussions, nor add references to the group. This is a read-only access membership.</li> <li><strong>invited</strong>: person who has been invited to the group, but not accepted the invitation. This is a read-only access membership.</li> </ul> <h2 id="retrieving-groups">Retrieving groups</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/groups'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-group.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendeley Advisor Group"</span>, <span class="s2">"description"</span>: <span class="s2">"This is an invite-only communication channel for Mendeley Advisors. Meet your fellow advisors from around the world, share papers, presentations, tips, and let us know how we're doing. Also feel free to post your upcoming presentation to the </span><span class="se">\"</span><span class="s2">Events Page</span><span class="se">\"</span><span class="s2"> by adding it here: www.mendeley.com/events. Add tips, tricks, and any relevant updates to the Mendeley Resource Center: http://resources.mendeley.com/"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Computer and Information Science"</span>, <span class="s2">"Social Sciences"</span>, <span class="s2">"Design"</span> <span class="o">]</span>, <span class="s2">"tags"</span>: <span class="o">[]</span>, <span class="s2">"photo"</span>: <span class="o">{</span> <span class="s2">"original"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876.png"</span>, <span class="s2">"standard"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-standard.jpg"</span>, <span class="s2">"square"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-square.jpg"</span> <span class="o">}</span>, <span class="s2">"webpage"</span>: <span class="s2">"http://resources.mendeley.com/"</span>, <span class="s2">"id"</span>: <span class="s2">"3463d2a0-f87e-3fea-a446-6c8287ce5a2f"</span>, <span class="s2">"created"</span>: <span class="s2">"2010-11-15T20:03:35.000Z"</span>, <span class="s2">"owning_profile_id"</span>: <span class="s2">"81727124-ca03-3684-ad66-90a4603bde26"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/groups/665771/mendeley-advisor-group/"</span>, <span class="s2">"role"</span>: <span class="s2">"user"</span>, <span class="s2">"access_level"</span>: <span class="s2">"private"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendeley API"</span>, <span class="s2">"description"</span>: <span class="s2">"A group for people interested in the Mendeley API."</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Social Sciences"</span> <span class="o">]</span>, <span class="s2">"tags"</span>: <span class="o">[]</span>, <span class="s2">"photo"</span>: <span class="o">{</span> <span class="s2">"original"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876.png"</span>, <span class="s2">"standard"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-standard.jpg"</span>, <span class="s2">"square"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-square.jpg"</span> <span class="o">}</span>, <span class="s2">"webpage"</span>: <span class="s2">"http://dev.mendeley.com/"</span>, <span class="s2">"id"</span>: <span class="s2">"9da69ed0-9d44-3d5f-b999-970f41c94c35"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-06-19T14:34:19.000Z"</span>, <span class="s2">"owning_profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/groups/4599001/mendeley-api/"</span>, <span class="s2">"role"</span>: <span class="s2">"owner"</span>, <span class="s2">"access_level"</span>: <span class="s2">"public"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="k">for</span> <span class="n">group</span> <span class="ow">in</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">groups</span><span class="o">.</span><span class="nb">iter</span><span class="p">():</span> <span class="k">print</span> <span class="n">group</span><span class="o">.</span><span class="n">name</span> </code></pre> <pre><code class="highlight java"><span class="n">GroupList</span> <span class="n">groupList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getGroups</span><span class="o">(</span><span class="kc">null</span><span class="o">);</span> <span class="n">List</span><span class="o"><</span><span class="n">Group</span><span class="o">></span> <span class="n">groups</span> <span class="o">=</span> <span class="n">groupList</span><span class="o">.</span><span class="na">groups</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">groupList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Retrieve all groups a user belongs to.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/groups</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated collection of groups.</p> <h2 id="retrieving-a-group">Retrieving a group</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/groups/9da69ed0-9d44-3d5f-b999-970f41c94c35'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-group.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendeley API"</span>, <span class="s2">"description"</span>: <span class="s2">"A group for people interested in the Mendeley API."</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Social Sciences"</span> <span class="o">]</span>, <span class="s2">"tags"</span>: <span class="o">[]</span>, <span class="s2">"photo"</span>: <span class="o">{</span> <span class="s2">"original"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876.png"</span>, <span class="s2">"standard"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-standard.jpg"</span>, <span class="s2">"square"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/bc/e8/bce8c532283273fb0f511321adcc2cafd07f5876-square.jpg"</span> <span class="o">}</span>, <span class="s2">"webpage"</span>: <span class="s2">"http://dev.mendeley.com/"</span>, <span class="s2">"id"</span>: <span class="s2">"9da69ed0-9d44-3d5f-b999-970f41c94c35"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-06-19T14:34:19.000Z"</span>, <span class="s2">"owning_profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/groups/4599001/mendeley-api/"</span>, <span class="s2">"role"</span>: <span class="s2">"owner"</span>, <span class="s2">"access_level"</span>: <span class="s2">"public"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">group</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">groups</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'9da69ed0-9d44-3d5f-b999-970f41c94c35'</span><span class="p">)</span> <span class="k">print</span> <span class="n">group</span><span class="o">.</span><span class="n">name</span> </code></pre> <pre><code class="highlight java"><span class="n">Group</span> <span class="n">group</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getGroup</span><span class="o">(</span><span class="s">"9da69ed0-9d44-3d5f-b999-970f41c94c35"</span><span class="o">);</span> </code></pre> <p>Retrieve a single group a user belongs to.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/groups/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>unique id of the group</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response with the group information.</p> <h2 id="retrieving-members-from-groups">Retrieving members from groups</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/groups/9da69ed0-9d44-3d5f-b999-970f41c94c35/members'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-membership.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"8349a3f4-8894-3910-81da-4f5d7a396e2a"</span>, <span class="s2">"role"</span>: <span class="s2">"user"</span>, <span class="s2">"joined"</span>: <span class="s2">"2014-07-02T00:13:10.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"d9ef2853-d330-3427-b90f-eff3f3fc14a3"</span>, <span class="s2">"role"</span>: <span class="s2">"user"</span>, <span class="s2">"joined"</span>: <span class="s2">"2014-06-30T17:34:32.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"caddcde9-bce7-3bd0-8762-c5058f92d910"</span>, <span class="s2">"role"</span>: <span class="s2">"user"</span>, <span class="s2">"joined"</span>: <span class="s2">"2014-07-01T08:32:29.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"role"</span>: <span class="s2">"owner"</span>, <span class="s2">"joined"</span>: <span class="s2">"2014-06-19T14:37:14.000Z"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"27dcaab3-d366-3c39-83c9-a53e4961ac98"</span>, <span class="s2">"role"</span>: <span class="s2">"admin"</span>, <span class="s2">"joined"</span>: <span class="s2">"2014-06-19T14:34:19.000Z"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="k">for</span> <span class="n">member</span> <span class="ow">in</span> <span class="n">group</span><span class="o">.</span><span class="n">members</span><span class="o">.</span><span class="nb">iter</span><span class="p">():</span> <span class="k">print</span> <span class="n">member</span><span class="o">.</span><span class="n">display_name</span> </code></pre> <pre><code class="highlight java"><span class="n">GroupMembersList</span> <span class="n">groupMembersList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getGroupMembers</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="s">"9da69ed0-9d44-3d5f-b999-970f41c94c35"</span><span class="o">);</span> <span class="n">List</span><span class="o"><</span><span class="n">UserRole</span><span class="o">></span> <span class="n">roles</span> <span class="o">=</span> <span class="n">groupMembersList</span><span class="o">.</span><span class="na">userRoles</span><span class="o">;</span> <span class="n">List</span><span class="o"><</span><span class="n">String</span><span class="o">></span> <span class="n">memberProfileIds</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ArrayList</span><span class="o"><</span><span class="n">String</span><span class="o">>();</span> <span class="k">for</span> <span class="o">(</span><span class="n">UserRole</span> <span class="n">role</span> <span class="o">:</span> <span class="n">roles</span><span class="o">)</span> <span class="o">{</span> <span class="n">memberProfileIds</span><span class="o">.</span><span class="na">add</span><span class="o">(</span><span class="n">role</span><span class="o">.</span><span class="na">profileId</span><span class="o">);</span> <span class="o">}</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">groupMembersList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Returns information about the members in a group</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/groups/{id}/members</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated collection of user roles.</p> <h1 id="groups-v2">Groups-V2</h1> <h2 id="group-attributes">Group attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the group. This identifier is set by the server on create and cannot be modified.</td> </tr> <tr> <td>link</td> <td>string</td> <td>URL of the group.</td> </tr> <tr> <td>owning_profile_id</td> <td>string</td> <td>Profile identifier of the owner of the group.</td> </tr> <tr> <td>access_level</td> <td>string</td> <td>Whether the group is public, private or invite_only. More on access levels below.</td> </tr> <tr> <td>created</td> <td>string</td> <td>Date the group was created. This date is set by the server after a successful create request and is represented in ISO 8601 format.</td> </tr> <tr> <td>name</td> <td>string</td> <td>The name of the group.</td> </tr> <tr> <td>description</td> <td>string</td> <td>Small description of what the group is about.</td> </tr> <tr> <td>photo</td> <td>object</td> <td>The photo object contains the URL to the photo/logo of the group. There are three sizes available: original, standard and square.</td> </tr> <tr> <td>webpage</td> <td>string</td> <td>Website of the group outside Mendeley.</td> </tr> <tr> <td>disciplines</td> <td>array</td> <td>List of disciplines the group is part of.</td> </tr> <tr> <td>tags</td> <td>array</td> <td>List of tags assigned to the group.</td> </tr> <tr> <td>role</td> <td>string</td> <td>Role of the authenticated user in the group. More on group roles below.</td> </tr> </tbody></table> <h3 id="group-roles">Group roles</h3> <ul> <li><strong>owner</strong>: owner of the group.</li> <li><strong>admin</strong>: administrator of the group. Only owners and admins can make other members administrators.</li> <li><strong>normal</strong>: normal member of the group. Users can add new references, add files and start discussions in the newsfeed of the group.</li> <li><strong>follower</strong>: followers of the group. Only public and invite-only groups can have followers. Followers cannot interact with other members, i.e. post in newsfeed and participate in discussions, nor add references to the group. This is a read-only access membership.</li> </ul> <h3 id="group-types">Group types</h3> <ul> <li><strong>private</strong>: publically not visible, users can’t join nor follow, they have to be invited.</li> <li><strong>invite_only</strong>: publically visible, users can’t join, can follow, can ask to join.</li> <li><strong>public</strong>: publically visible, user can join or follow.</li> </ul> <h2 id="creating-group">Creating group</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-Type: application/vnd.mendeley-group+json"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group+json"</span> <span class="se">\</span> --data-binary @new-group.json new-group.json: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"New group"</span>, <span class="s2">"description"</span>: <span class="s2">"New group description"</span>, <span class="s2">"access_level"</span>: <span class="s2">"public"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span><span class="s2">"Veterinary Science and Veterinary Medicine"</span><span class="o">]</span>, <span class="s2">"tags"</span>: <span class="o">[</span><span class="s2">"tag01"</span>, <span class="s2">"tag02"</span><span class="o">]</span> <span class="o">}</span> Response: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"New group"</span>, <span class="s2">"description"</span>: <span class="s2">"New group description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span>, <span class="s2">"tags"</span>: <span class="o">[</span> <span class="s2">"tag01"</span>, <span class="s2">"tag02"</span> <span class="o">]</span>, <span class="s2">"photo"</span>: <span class="o">{</span> <span class="s2">"standard"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/awaiting.png"</span>, <span class="s2">"square"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/disciplines/small/veterinary-science-and-veterinary-medicine.png"</span> <span class="o">}</span>, <span class="s2">"id"</span>: <span class="s2">"efe1b21a-7d57-38bd-1d1e-314db97dc11a"</span>, <span class="s2">"created"</span>: <span class="s2">"2016-07-01T13:48:03.000Z"</span>, <span class="s2">"owning_profile_id"</span>: <span class="s2">"61eef301-26ac-2841-a143-c4c7ec1826af"</span>, <span class="s2">"link"</span>: <span class="s2">"http://api.mendeley.com/groups/v2/efe8b71a-7d57-38bd-9d1e-314db97dc21a"</span>, <span class="s2">"invite_only"</span>: <span class="nb">false</span>, <span class="s2">"public"</span>: <span class="nb">true</span>, <span class="s2">"role"</span>: <span class="s2">"owner"</span>, <span class="s2">"access_level"</span>: <span class="s2">"public"</span> <span class="o">}</span> </code></pre> <h2 id="retrieving-groups">Retrieving groups</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-list+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Some group"</span>, <span class="s2">"id"</span>: <span class="s2">"efe1b21a-7d57-38bd-1d1e-314db97dc11a"</span>, ... <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Another group"</span>, <span class="s2">"id"</span>: <span class="s2">"dee1b21a-7d57-38bd-1d1e-314db97dc11b"</span>, ... <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h2 id="updating-group">Updating group</h2> <pre><code class="highlight shell">curl -X PATCH <span class="s2">"https://api.mendeley.com/groups/v2/05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group+json"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group+json"</span> <span class="se">\</span> --data-binary @patch_group.json patch_group.json: <span class="o">{</span> <span class="s2">"name"</span> : <span class="s2">"New name"</span>, <span class="s2">"description"</span> : <span class="s2">"New description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span> <span class="o">}</span> Response: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"New name"</span>, <span class="s2">"id"</span>: <span class="s2">"05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="s2">"description"</span>: <span class="s2">"New description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span>, ... <span class="o">}</span> </code></pre> <h2 id="deleting-group">Deleting group</h2> <pre><code class="highlight shell">curl -X DELETE <span class="s2">"https://api.mendeley.com/groups/v2/05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="retrieving-group">Retrieving group</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2/05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group+json"</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"New name"</span>, <span class="s2">"id"</span>: <span class="s2">"05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="s2">"description"</span>: <span class="s2">"New description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span>, ... <span class="o">}</span> </code></pre> <h2 id="retrieving-popular-groups">Retrieving popular groups</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2/popular"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-list+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"New name"</span>, <span class="s2">"id"</span>: <span class="s2">"05bedb28-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="s2">"description"</span>: <span class="s2">"New description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span>, ... <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Another group"</span>, <span class="s2">"id"</span>: <span class="s2">"6529abcd-71ad-328b-82cb-9d6fb2e4ddf7"</span> <span class="s2">"description"</span>: <span class="s2">"Another description"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="s2">"Veterinary Science and Veterinary Medicine"</span> <span class="o">]</span>, ... <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>limit</td> <td>int</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h2 id="retrieving-group-members">Retrieving group members</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2/05bedb28-71ad-328b-82cb-9d6fb2e4ddf7/members"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-member-list+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"17eef301-26fd-7641-a143-c4c7ec1822af"</span>, <span class="s2">"joined"</span>: <span class="s2">"2016-07-01T13:50:30.000Z"</span>, <span class="s2">"role"</span>: <span class="s2">"owner"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"17eef301-26fd-2269-a143-c4c7ec1822af"</span>, <span class="s2">"joined"</span>: <span class="s2">"2016-07-01T13:50:30.000Z"</span>, <span class="s2">"role"</span>: <span class="s2">"admin"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>query</td> <td>string</td> <td>search query which is matched against members first or last name.</td> </tr> <tr> <td>limit</td> <td>int</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h2 id="joining-public-group">Joining public group</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="leaving-public-group">Leaving public group</h2> <pre><code class="highlight shell">curl -X DELETE <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="following-group">Following group</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/followers"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="unfollowing-group">Unfollowing group</h2> <pre><code class="highlight shell">curl -X DELETE <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/followers"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="removing-member-from-group">Removing member from group</h2> <pre><code class="highlight shell">curl -X DELETE <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members/e9e11302-4887-30c8-88ec-fbded0cc22a3"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="updates-member's-role">Updates member’s role</h2> <pre><code class="highlight shell">curl -X PATCH <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members/e9e11302-4887-30c8-88ec-fbded0cc22a3"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group-membership+json"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-membership+json"</span> <span class="se">\</span> --data-binary @new_membership.json new_membership.json: <span class="o">{</span> <span class="s2">"membership"</span> : <span class="s2">"admin"</span> <span class="o">}</span> Response: <span class="o">{</span> <span class="s2">"profile_id"</span>: <span class="s2">"e9e11302-4887-30a1-88ec-fbded0cc22a3"</span>, <span class="s2">"joined"</span>: <span class="s2">"2016-07-01T14:03:26.000Z"</span>, <span class="s2">"role"</span>: <span class="s2">"admin"</span> <span class="o">}</span> </code></pre> <h2 id="inviting-users">Inviting users</h2> <p>Note: Sending email is currently disabled</p> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group-invitation+json"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-invitation-response-list+json"</span> <span class="se">\</span> --data-binary @invitations.json invitations.json: <span class="o">{</span> <span class="s2">"recipients"</span> : <span class="o">[</span> <span class="o">{</span> <span class="s2">"email"</span> : <span class="s2">"email1@abc.com"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"email"</span> : <span class="s2">"email2@abc.com"</span><span class="o">}</span>, <span class="o">{</span> <span class="s2">"email"</span> : <span class="s2">"email3@abc.com"</span><span class="o">}</span> <span class="o">]</span>, <span class="s2">"message"</span> : <span class="s2">"Custom invitation message which should be included in the mail"</span> <span class="o">}</span> Response: <span class="o">[</span> <span class="o">{</span> <span class="s2">"email"</span>: <span class="s2">"email1@abc.com"</span>, <span class="s2">"invitation_uuid"</span>: <span class="s2">"4ea48e40-20c5-4ff9-8153-4ab0487bf1da"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"email"</span>: <span class="s2">"email2@abc.com"</span>, <span class="s2">"error_message"</span>: <span class="s2">"Use already in a group"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"email"</span>: <span class="s2">"email3@abc.com"</span>, <span class="s2">"invitation_uuid"</span>: <span class="s2">"153e8734-f879-4838-93f1-b0e69bc49041"</span>, <span class="s2">"warning_message"</span>: <span class="s2">"Email sending failure"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <h2 id="retrieving-group-invitations">Retrieving group invitations</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-invitation-list+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"invitation_uuid"</span>: <span class="s2">"8aa48e40-20c5-4ff9-8111-12b0487bf1da"</span>, <span class="s2">"group_uuid"</span>: <span class="s2">"f8c54bf7-82ba-374a-8877-3cac3fc15c5f"</span>, <span class="s2">"invitee_email"</span>: <span class="s2">"email1@abc.com"</span>, <span class="s2">"status"</span>: <span class="s2">"SENT"</span>, <span class="s2">"sent"</span>: <span class="s2">"2016-07-04T14:54:03.000Z"</span>, <span class="s2">"message"</span>: <span class="s2">"Custom invitation message which should be included in the mail"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"invitation_uuid"</span>: <span class="s2">"a4a529b9-6b83-40f9-9191-6fb55699042f"</span>, <span class="s2">"invitee_profile_uuid"</span>: <span class="s2">"55686f2d-b821-3997-a968-2430d6e1eb1e"</span>, <span class="s2">"group_uuid"</span>: <span class="s2">"f8c54bf7-a5d5-374a-9283-3cac3fc15c5f"</span>, <span class="s2">"invitee_name"</span>: <span class="s2">"John Smith"</span>, <span class="s2">"invitee_email"</span>: <span class="s2">"email3@abc.com"</span>, <span class="s2">"status"</span>: <span class="s2">"CREATED"</span>, <span class="s2">"sent"</span>: <span class="s2">"2016-07-04T14:54:03.000Z"</span>, <span class="s2">"message"</span>: <span class="s2">"Custom invitation message which should be included in the mail"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>invitation_code</td> <td>string</td> <td>invitation code of a single invitation to retrieve. It’s a mean to distinguish a non-Mendeley user who was invited to the group from other non-Mendeley users.</td> </tr> <tr> <td>limit</td> <td>int</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h2 id="retrieving-user-invitations">Retrieving user invitations</h2> <pre><code class="highlight shell">curl -X GET <span class="s2">"https://api.mendeley.com/groups/v2/invitations"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-group-invitation-list+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"invitation_uuid"</span>: <span class="s2">"d5a85daa-8eb3-4857-a6b2-28e11a97ca96"</span>, <span class="s2">"invitee_profile_uuid"</span>: <span class="s2">"abc23f13-134a-3f51-906e-d81643ef7dc4"</span>, <span class="s2">"group_uuid"</span>: <span class="s2">"f8c54bf7-a5d5-374a-2177-3cac3fc15c5f"</span>, <span class="s2">"invitee_name"</span>: <span class="s2">"John Smith"</span>, <span class="s2">"invitee_email"</span>: <span class="s2">"email3@abc.com"</span>, <span class="s2">"status"</span>: <span class="s2">"SENT"</span>, <span class="s2">"sent"</span>: <span class="s2">"2016-07-04T15:08:45.000Z"</span>, <span class="s2">"message"</span>: <span class="s2">"Custom invitation message which should be included in the mail"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>limit</td> <td>int</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500.</td> </tr> </tbody></table> <h2 id="accepting-invitation">Accepting invitation</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations/d5a85daa-8eb3-4857-a6b2-28e11a97ca96/actions/accept"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="declining-invitation">Declining invitation</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations/d5a85daa-8eb3-4857-a6b2-28e11a97ca96/actions/decline"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="revoking-invitation">Revoking invitation</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations/d5a85daa-8eb3-4857-a6b2-28e11a97ca96/actions/revoke"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="resending-invitation">Resending invitation</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/invitations/d5a85daa-8eb3-4857-a6b2-28e11a97ca96/actions/resend"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> </code></pre> <h2 id="asking-to-join-a-group">Asking to join a group</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/actions/join_request"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group-message+json"</span> <span class="se">\</span> --data-binary @message.json message.json: <span class="o">{</span> <span class="s2">"message"</span>: <span class="s2">"I would like to join your group"</span> <span class="o">}</span> </code></pre> <h2 id="accepting-join-request">Accepting join request</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members/abc23f13-134a-3f51-906e-d81643ef7dc4/actions/accept"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group-message+json"</span> <span class="se">\</span> --data-binary @message.json message.json: <span class="o">{</span> <span class="s2">"message"</span>: <span class="s2">"I accept your request!"</span> <span class="o">}</span> </code></pre> <h2 id="declining-join-request">Declining join request</h2> <pre><code class="highlight shell">curl -X POST <span class="s2">"https://api.mendeley.com/groups/v2/c0bdadf0-1592-38b3-a1e3-a8be3b1b8d6c/members/abc23f13-134a-3f51-906e-d81643ef7dc4/actions/decline"</span> <span class="se">\</span> -H <span class="s2">"Authorization: Bearer <ACCESS_TOKEN>"</span> <span class="se">\</span> -H <span class="s2">"Content-type: application/vnd.mendeley-group-message+json"</span> <span class="se">\</span> --data-binary @message.json message.json: <span class="o">{</span> <span class="s2">"message"</span>: <span class="s2">"I decline your request!"</span> <span class="o">}</span> </code></pre> <h1 id="identifier-types">Identifier Types</h1> <h2 id="retrieve-all-identifier-types">Retrieve all identifier types</h2> <p>Retrieves all identifier types used. </p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/identifier_types'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document-identifier.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"arxiv"</span>, <span class="s2">"description"</span>: <span class="s2">"arXiv ID"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"doi"</span>, <span class="s2">"description"</span>: <span class="s2">"DOI"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"isbn"</span>, <span class="s2">"description"</span>: <span class="s2">"ISBN"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"issn"</span>, <span class="s2">"description"</span>: <span class="s2">"ISSN"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"pmid"</span>, <span class="s2">"description"</span>: <span class="s2">"PubMed Unique Identifier (PMID)"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"scopus"</span>, <span class="s2">"description"</span>: <span class="s2">"Scopus identifier (EID)"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/identifier_types</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all identifier types. </p> <h1 id="institution-trees">Institution Trees</h1> <p>An institution tree is a set of institutions that form a hierarchy, connected by the parent_id attribute, eg. Cambridge University -> University of Cambridge Pembroke College etc. The id field within the response indicates the root institution. An institution tree may be either partial or complete. Partial infers that the root institution may have a parent, whereas complete is where the root institution has no parent.</p> <h2 id="institution-tree-attributes">Institution tree attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the root institution. This should be used by tree walking algorithms, eg. to build the tree.</td> </tr> <tr> <td>institution_nodes</td> <td>array</td> <td>List of institutions as <a href="#institutions">institution</a> objects.</td> </tr> </tbody></table> <h2 id="retrieving-complete-institution_trees">Retrieving complete institution_trees</h2> <p>This institution_id parameter may be any institution within the returned tree, eg. it could be a leaf node.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institution_trees?institution_id=7f821859-e00b-5e3c-ad18-a03ad306f343'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"7f821859-e00b-5e3c-ad18-a03ad306f343"</span>, <span class="s2">"institution_nodes"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"7f821859-e00b-5e3c-ad18-a03ad306f343"</span>, <span class="s2">"name"</span>: <span class="s2">"Christchurch Polytechnic Institute of Technology"</span>, <span class="s2">"city"</span>: <span class="s2">"Christchurch"</span>, <span class="s2">"state"</span>: <span class="s2">""</span>, <span class="s2">"country"</span>: <span class="s2">"NZ"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.cpit.ac.nz"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Library Learning and Information Services - Te Ara Awhina i te Matauranga"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"CPIT"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"575055ff-a851-577b-8ad4-9b8f938382e6"</span>, <span class="s2">"name"</span>: <span class="s2">"Christchurch Polytechnic Institute of Technology School of Nursing and Human Services"</span>, <span class="s2">"city"</span>: <span class="s2">"Christchurch"</span>, <span class="s2">"state"</span>: <span class="s2">""</span>, <span class="s2">"country"</span>: <span class="s2">"NZ"</span>, <span class="s2">"parent_id"</span>: <span class="s2">"7f821859-e00b-5e3c-ad18-a03ad306f343"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.cpit.ac.nz/schools/school_of_nursing"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/institution_trees</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>institution_id</td> <td>string</td> <td>Contained institution node</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response.<br> A 403 Forbidden, tree to large.</p> <h2 id="retrieving-partial-institution_trees">Retrieving partial institution_trees</h2> <p>The id passed in the URL will always be the root id of the resulting tree.<br> nb. A parent_id exists for this example, which differs from the root id, hence it is a partial tree.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institution_trees/575055ff-a851-577b-8ad4-9b8f938382e6'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"575055ff-a851-577b-8ad4-9b8f938382e6"</span>, <span class="s2">"institution_nodes"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"575055ff-a851-577b-8ad4-9b8f938382e6"</span>, <span class="s2">"name"</span>: <span class="s2">"Christchurch Polytechnic Institute of Technology School of Nursing and Human Services"</span>, <span class="s2">"city"</span>: <span class="s2">"Christchurch"</span>, <span class="s2">"state"</span>: <span class="s2">""</span>, <span class="s2">"country"</span>: <span class="s2">"NZ"</span>, <span class="s2">"parent_id"</span>: <span class="s2">"7f821859-e00b-5e3c-ad18-a03ad306f343"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.cpit.ac.nz/schools/school_of_nursing"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/institution_trees/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response.<br> A 403 Forbidden, tree to large.</p> <h1 id="institutions">Institutions</h1> <h2 id="institution-attributes">Institution attributes</h2> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the institution.</td> </tr> <tr> <td>name</td> <td>string</td> <td>English name of the institution.</td> </tr> <tr> <td>city</td> <td>string</td> <td>City.</td> </tr> <tr> <td>state</td> <td>string</td> <td>State.</td> </tr> <tr> <td>country</td> <td>string</td> <td>Country.</td> </tr> <tr> <td>parent_id</td> <td>string</td> <td>Identifier (UUID) of the parent institution, where one exists.</td> </tr> <tr> <td>urls</td> <td>array</td> <td>URLs associated with the institution.</td> </tr> <tr> <td>alt_names</td> <td>array</td> <td>List of alternative names for the institution, as <a href="#alt_names">alt_name</a> objects.</td> </tr> </tbody></table> <h4 id="alt_names">alt_names</h4> <p>An alternative name is represented as an object with the following attribute:</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>name</td> <td>string</td> <td>Alternative name</td> </tr> </tbody></table> <h2 id="retrieving-institutions-by-hint">Retrieving institutions by hint</h2> <ul> <li><p>Hint must be at least three characters in length.</p></li> <li><p>Limited to 100 results. If no limit is provided then up to 100 results will be returned.</p></li> <li><p>Ordering of results is primarily based upon size of institution in terms of person count.</p></li> <li><p>Name and alternative names are searched when retrieving by hint.</p></li> <li><p>Hint is case insensitive.</p></li> </ul> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institutions?hint=mendel&limit=3'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"914b908c-e917-58fe-8a66-4361f1abf95f"</span>, <span class="s2">"name"</span>: <span class="s2">"Mendel University Brno"</span>, <span class="s2">"city"</span>: <span class="s2">"Brno"</span>, <span class="s2">"state"</span>: <span class="s2">""</span>, <span class="s2">"country"</span>: <span class="s2">"CZ"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.mendelu.cz"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendel University of Agriculture and Forestry"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendelova Univerzita v Brn?"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendelova Zemedelska a Lesnicka Univerzita v Brne"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendelova univerzita v Brne"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendel University in Brno"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"af7cf891-ad7b-5ce9-8913-0515da40b8a7"</span>, <span class="s2">"name"</span>: <span class="s2">"Rossiiskii khimiko-tekhnologicheskii universitet imeni DI Mendeleeva"</span>, <span class="s2">"city"</span>: <span class="s2">"Moscow"</span>, <span class="s2">"state"</span>: <span class="s2">""</span>, <span class="s2">"country"</span>: <span class="s2">"RU"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.muctr.ru"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"MUCTR"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendeleev University of Chemical Technology of Russia"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"38fbed71-139f-5dbc-95f6-b41714220efd"</span>, <span class="s2">"name"</span>: <span class="s2">"Yeshiva University"</span>, <span class="s2">"city"</span>: <span class="s2">"New York"</span>, <span class="s2">"state"</span>: <span class="s2">"NY"</span>, <span class="s2">"country"</span>: <span class="s2">"US"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.yu.edu"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Pollack Library"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mendel Gottesman Library"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h2 id="retrieving-institutions-by-email-address">Retrieving institutions by email address</h2> <ul> <li><p>The email domain (everything to the right of the @ symbol) will be matched against the URLs (stripped of www prefix) of the institutions. </p></li> <li><p>Exact matches, if any, will be returned above partial matches.</p></li> <li><p>Ordering of results is primarily based upon size of institution in terms of person count.</p></li> <li><p>Limited to 100 results. If no limit is provided then up to 100 results will be returned.</p></li> </ul> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institutions?email=joe%40cam.ac.uk&limit=3'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"9bb25e66-bd83-544e-b1b5-d0df25a29993"</span>, <span class="s2">"name"</span>: <span class="s2">"University of Cambridge"</span>, <span class="s2">"city"</span>: <span class="s2">"Cambridge"</span>, <span class="s2">"state"</span>: <span class="s2">"Cambridgeshire"</span>, <span class="s2">"country"</span>: <span class="s2">"GB"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.cam.ac.uk"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Cambridge University"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"University of Cambridge Betty and Gordon Moore Library"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"University of Cambridge Central Science Library"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"162d9c14-ff65-5d59-89ab-77dffb2d0e04"</span>, <span class="s2">"name"</span>: <span class="s2">"University of Cambridge Department of Land Economy"</span>, <span class="s2">"city"</span>: <span class="s2">"Cambridge"</span>, <span class="s2">"state"</span>: <span class="s2">"Cambridgeshire"</span>, <span class="s2">"country"</span>: <span class="s2">"GB"</span>, <span class="s2">"parent_id"</span>: <span class="s2">"afd94196-b4a8-5453-a28f-79525ed43efc"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.landecon.cam.ac.uk"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mill Lane Library"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"dae880dd-777a-5746-a9ea-7ad1eeefa48d"</span>, <span class="s2">"name"</span>: <span class="s2">"University of Cambridge Institute of Manufacturing"</span>, <span class="s2">"city"</span>: <span class="s2">"Cambridge"</span>, <span class="s2">"state"</span>: <span class="s2">"Cambridgeshire"</span>, <span class="s2">"country"</span>: <span class="s2">"GB"</span>, <span class="s2">"parent_id"</span>: <span class="s2">"9dcf803c-32b9-501f-844c-ccfbcf36bad8"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.ifm.eng.cam.ac.uk"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h2 id="retrieving-institutions-by-name">Retrieving institutions by name</h2> <ul> <li><p>This search matches the exact (case insensitive) name provided against the institution name field. </p></li> <li><p>City, state and country (or any combination) may also be given to limit the results where name has multiple matches.</p></li> <li><p>Ordering of results is primarily based upon size of institution in terms of person count.</p></li> <li><p>Limited to 100 results. If no limit is provided then up to 100 results will be returned.</p></li> </ul> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institutions?limit=10&name=City%20University'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"0e091aba-868f-5c72-8b0b-6e2ec9e289f5"</span>, <span class="s2">"name"</span>: <span class="s2">"City University"</span>, <span class="s2">"city"</span>: <span class="s2">"London"</span>, <span class="s2">"state"</span>: <span class="s2">"London"</span>, <span class="s2">"country"</span>: <span class="s2">"GB"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"www.city.ac.uk"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"City University Centre for Investigative Security and Police Sciences"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"City University Library"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"354eff87-07e7-5c9f-881b-a1fa3f5f4fa4"</span>, <span class="s2">"name"</span>: <span class="s2">"City University"</span>, <span class="s2">"city"</span>: <span class="s2">"Dhaka"</span>, <span class="s2">"state"</span>: <span class="s2">"Dhaka District"</span>, <span class="s2">"country"</span>: <span class="s2">"BD"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"cityuniversity.edu.bd"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"CU"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/institutions</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>hint</td> <td>string</td> <td>Part of institution name</td> </tr> <tr> <td>email</td> <td>string</td> <td>Email address</td> </tr> <tr> <td>name</td> <td>string</td> <td>Full institution name</td> </tr> <tr> <td>city</td> <td>string</td> <td>City of institution</td> </tr> <tr> <td>state</td> <td>string</td> <td>State of institution</td> </tr> <tr> <td>country</td> <td>string</td> <td>Country of institution</td> </tr> <tr> <td>limit</td> <td>integer</td> <td>Max number of results, defaults and limited to 100</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response</p> <h2 id="retrieve-institution-by-id">Retrieve institution by id</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/institutions/354eff87-07e7-5c9f-881b-a1fa3f5f4fa4'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-institution.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"354eff87-07e7-5c9f-881b-a1fa3f5f4fa4"</span>, <span class="s2">"name"</span>: <span class="s2">"City University"</span>, <span class="s2">"city"</span>: <span class="s2">"Dhaka"</span>, <span class="s2">"state"</span>: <span class="s2">"Dhaka District"</span>, <span class="s2">"country"</span>: <span class="s2">"BD"</span>, <span class="s2">"urls"</span>: <span class="o">[</span> <span class="s2">"cityuniversity.edu.bd"</span> <span class="o">]</span>, <span class="s2">"alt_names"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"CU"</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/institutions/{id}</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response</p> <h1 id="locations">Locations</h1> <h2 id="suggest-locations">Suggest locations</h2> <p>Suggests possible locations for a given prefix. Suggestions will be provided in cases where: </p> <ul> <li> an unaccented search term will return an accented suggestion e.g. Evreux will return Évreux</li> <li> an accented search term will return an accented suggestion e.g. Évreux will return Évreux</li> <li> an accented search term will return an unaccented suggestion e.g. ádḍîś äḅâbà will return Addis Ababa</li> </ul> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/locations?prefix=LON&limit=3'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-location.1+json"</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"cc185ce9-a459-43c5-849d-35ee6b8bfd05"</span>, <span class="s2">"latitude"</span>: -13.92, <span class="s2">"longitude"</span>: -171.47, <span class="s2">"name"</span>: <span class="s2">"Lona, Samoa"</span>, <span class="s2">"city"</span>: <span class="s2">"Lona"</span>, <span class="s2">"state"</span>: <span class="s2">"Rest of Upolu"</span>, <span class="s2">"country"</span>: <span class="s2">"Samoa"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"c8c1a5e9-841d-4e46-8796-35ee6b8b3839"</span>, <span class="s2">"latitude"</span>: 39.6002, <span class="s2">"longitude"</span>: -79.0112, <span class="s2">"name"</span>: <span class="s2">"Lonaconing, Maryland, United States"</span>, <span class="s2">"city"</span>: <span class="s2">"Lonaconing"</span>, <span class="s2">"state"</span>: <span class="s2">"Maryland"</span>, <span class="s2">"country"</span>: <span class="s2">"United States"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"d369b444-6741-4510-a9e1-35ee6b8b9a6a"</span>, <span class="s2">"latitude"</span>: 19.98, <span class="s2">"longitude"</span>: 76.53, <span class="s2">"name"</span>: <span class="s2">"Lonār, India"</span>, <span class="s2">"city"</span>: <span class="s2">"Lonār"</span>, <span class="s2">"state"</span>: <span class="s2">"Maharashtra"</span>, <span class="s2">"country"</span>: <span class="s2">"India"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/locations?prefix={prefix}&limit={limit}</code></p> <h3 id="query-parameters">Query Parameters</h3> <p>These are required query parameters. </p> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>prefix</td> <td>string</td> <td>first few characters of a city</td> </tr> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 100</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all locations</p> <h2 id="retrieve-a-location">Retrieve a location</h2> <p>Retrieves a location by a ID</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/locations/c8c1a5e9-841d-4e46-8796-35ee6b8b3839'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s2">"Accept: application/vnd.mendeley-location.1+json"</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"c8c1a5e9-841d-4e46-8796-35ee6b8b3839"</span>, <span class="s2">"latitude"</span>: 39.6002, <span class="s2">"longitude"</span>: -79.0112, <span class="s2">"name"</span>: <span class="s2">"Lonaconing, Maryland, United States"</span>, <span class="s2">"city"</span>: <span class="s2">"Lonaconing"</span>, <span class="s2">"state"</span>: <span class="s2">"Maryland"</span>, <span class="s2">"country"</span>: <span class="s2">"United States"</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/locations/{id}</code></p> <h3 id="query-parameters">Query Parameters</h3> <p>These are required query parameters. </p> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document. This identifier is set by the server on create and it cannot be modified.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a single location</p> <h1 id="profiles">Profiles</h1> <h2 id="profile-attributes">Profile attributes</h2> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the profile.</td> </tr> <tr> <td>first_name</td> <td>string</td> <td>First name of the user. This is a required field.</td> </tr> <tr> <td>last_name</td> <td>string</td> <td>Last name of the user. This is a required field.</td> </tr> <tr> <td>location</td> <td>object</td> <td>Current location of the user. The location object has the following information: name, latitude, longitude.</td> </tr> <tr> <td>display_name</td> <td>string</td> <td>Name of the user including their title.</td> </tr> <tr> <td>email</td> <td>string</td> <td>Primary email of the user. This is used as username for login into Mendeley services. The email will only be exposed through the GET /profiles/me request, but it will never be exposed to other users.</td> </tr> <tr> <td>research_interests</td> <td>string</td> <td>Comma separated list of research topics the user is interested in.</td> </tr> <tr> <td>education</td> <td>array[Education]</td> <td>Collection of education objects. See below for documentation.</td> </tr> <tr> <td>employment</td> <td>array[Employment]</td> <td>Collection of employment objects.See below for documentation.</td> </tr> <tr> <td>academic_status</td> <td>string</td> <td>Current academic status of the profile. Possible values can be found by doing GET /academic_statuses.</td> </tr> <tr> <td>link</td> <td>string</td> <td>URL to the Mendeley public profile page.</td> </tr> <tr> <td>discipline</td> <td>Discipline</td> <td>Current research discipline. Possible values can be found by doing GET /disciplines.</td> </tr> <tr> <td>disciplines</td> <td>array[Discipline]</td> <td>Additional research . Possible values can be found by doing GET /disciplines.</td> </tr> <tr> <td>photo</td> <td>object</td> <td><strong>(TO BE DEPRECATED - Please use Photos)</strong> The photo object contains the URL to the profile’s picture. There are three sizes available: original, standard and square.</td> </tr> <tr> <td>photos</td> <td>array[Image]</td> <td>Collection of Image objects for the profile’s picture. Each Image contains width, height, URL and original where original is the initially uploaded photo</td> </tr> <tr> <td>verified</td> <td>boolean</td> <td>Whether the profile has verified their email address or not.</td> </tr> <tr> <td>created</td> <td>string</td> <td>Date when the profile was created. This date is set by the server on creation and is represented in ISO 8601 format.</td> </tr> <tr> <td>biography</td> <td>string</td> <td>Biographical information</td> </tr> <tr> <td>marketing</td> <td>boolean</td> <td>Opt in or out of marketing material</td> </tr> <tr> <td>user_type</td> <td>UserType</td> <td>Possible types are ‘normal’ or 'devpartner’ or 'advisor’ or 'lead’ or 'staff’ or 'admin’</td> </tr> </tbody></table> <h3 id="education">Education</h3> <p>Education is represented as an object with the following attributes:</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>institution</td> <td>string</td> <td>255</td> <td>Name of the institution.</td> </tr> <tr> <td>degree</td> <td>string</td> <td>100</td> <td>Degree</td> </tr> <tr> <td>start_date</td> <td>string</td> <td>-</td> <td>Start date at institution. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>end_date</td> <td>string</td> <td>-</td> <td>End date at institution. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>website</td> <td>string</td> <td>255</td> <td>Website of the institution.</td> </tr> </tbody></table> <h3 id="employment">Employment</h3> <p>Employment is representated as a on object with the following attributes: </p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>institution</td> <td>string</td> <td>255</td> <td>Name of the institution.</td> </tr> <tr> <td>position</td> <td>string</td> <td>100</td> <td>Position held at instituion.</td> </tr> <tr> <td>degree</td> <td>string</td> <td>100</td> <td>Degree</td> </tr> <tr> <td>start_date</td> <td>string</td> <td>-</td> <td>Start date at institution. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>end_date</td> <td>string</td> <td>-</td> <td>End date at institution. This date is represented in ISO 8601 format.</td> </tr> <tr> <td>website</td> <td>string</td> <td>255</td> <td>Website of the institution.</td> </tr> <tr> <td>classes</td> <td>array[String]</td> <td>-</td> <td>Classes thought at the institution.</td> </tr> <tr> <td>is_main_employment</td> <td>boolean</td> <td>-</td> <td>True if this is your current employment, false otherwise.</td> </tr> </tbody></table> <h3 id="disciplines">Disciplines</h3> <p>People are represented as an object with the following attributes:</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>name</td> <td>string</td> <td>255</td> <td>Current research discipline. Possible values can be found by doing GET /disciplines.</td> </tr> <tr> <td>subdisciplines</td> <td>array[String]</td> <td>-</td> <td>Subdisciplines.</td> </tr> </tbody></table> <h3 id="image">Image</h3> <p>People are represented as an object with the following attributes:</p> <table><thead> <tr> <th>Attribute</th> <th>Type</th> <th>Maximum length</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>width</td> <td>integer</td> <td>-</td> <td>Width of the photo.</td> </tr> <tr> <td>height</td> <td>integer</td> <td>-</td> <td>Height of the photo.</td> </tr> <tr> <td>original</td> <td>boolean</td> <td>-</td> <td>True if the this is the original photo that was uploaded.</td> </tr> <tr> <td>url</td> <td>string</td> <td>-</td> <td>The S3 URL of the file in storage. Auto-generated.</td> </tr> </tbody></table> <h2 id="retrieving-a-profile">Retrieving a profile</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/profiles/c0925ecf-4de0-3b61-ae9a-ebe5f7406327'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-profiles.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Victor"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Henning"</span>, <span class="s2">"display_name"</span>: <span class="s2">"Dr. Victor Henning"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/profiles/victor-henning/"</span>, <span class="s2">"research_interests"</span>: <span class="s2">"Emotions, Decision Making, Theory of Reasoned Action, Intertemporal Choice, Motion Picture Economics"</span>, <span class="s2">"academic_status"</span>: <span class="s2">"Post Doc"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"photos"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29.png"</span>, <span class="s2">"original"</span>: <span class="nb">true</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"height"</span>: 120, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-standard.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 48, <span class="s2">"height"</span>: 48, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-square.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 256, <span class="s2">"height"</span>: 256, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/awaiting_square_256.png"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"verified"</span>: <span class="nb">true</span>, <span class="s2">"location"</span>: <span class="o">{</span> <span class="s2">"latitude"</span>: 52.37, <span class="s2">"longitude"</span>: 4.89, <span class="s2">"name"</span>: <span class="s2">"Amsterdam, Netherlands"</span> <span class="o">}</span>, <span class="s2">"created_at"</span>: <span class="s2">"2008-03-25T16:51:10.000Z"</span>, <span class="s2">"education"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Wissenschaftliche Hochschule für Unternehmensführung - Otto Beisheim Graduate School of Management"</span>, <span class="s2">"degree"</span>: <span class="s2">"Dipl.-Kfm. (MBA)"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2000-10-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2004-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.whu.edu"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Université Libre de Bruxelles - Free University of Brussel"</span>, <span class="s2">"degree"</span>: <span class="s2">""</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-01-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-06-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.ulb.ac.be"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Handelshøyskolen BI - Norwegian School of Management BI"</span>, <span class="s2">"degree"</span>: <span class="s2">""</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-08-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-12-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.bi.no"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"employment"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Mendeley Ltd."</span>, <span class="s2">"position"</span>: <span class="s2">"Co-Founder & CEO"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2007-11-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.mendeley.com"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Bauhaus-University of Weimar"</span>, <span class="s2">"position"</span>: <span class="s2">"Lecturer / Doctoral Student"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2004-10-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2010-12-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.uni-weimar.de"</span>, <span class="s2">"classes"</span>: <span class="o">[</span> <span class="s2">"The Kid Stays In The Picture: Economics of the Film Industry"</span>, <span class="s2">"Guru*Lab: Production and Distribution of a Major German Motion Picture"</span>, <span class="s2">"Guru*Talk: The Film Industry in the 21st Century"</span>, <span class="s2">"Hedonic Consumption"</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Oliver Wyman Consulting"</span>, <span class="s2">"position"</span>: <span class="s2">"Summer Associate"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2003-05-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2003-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.oliverwyman.de"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Revelation Records"</span>, <span class="s2">"position"</span>: <span class="s2">"Product Management / PR Dept."</span>, <span class="s2">"start_date"</span>: <span class="s2">"2001-05-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2001-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.revelation-records.com"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Helkon Media AG"</span>, <span class="s2">"position"</span>: <span class="s2">"Film Production / Business Affairs Dept."</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-06-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.imdb.com/company/co0069136/"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Sony Music Entertainment/Columbia Records"</span>, <span class="s2">"position"</span>: <span class="s2">"Junior A&R, Talent Scout"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2000-01-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2000-10-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.sonymusic.de"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Elsevier"</span>, <span class="s2">"position"</span>: <span class="s2">"Co-Founder/CEO, Mendeley & VP Strategy"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2013-04-01"</span>, <span class="s2">"is_main_employment"</span>: <span class="nb">true</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">profile</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">profiles</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'c0925ecf-4de0-3b61-ae9a-ebe5f7406327'</span><span class="p">)</span> <span class="k">print</span> <span class="n">profile</span><span class="o">.</span><span class="n">display_name</span> </code></pre> <pre><code class="highlight java"><span class="n">Profile</span> <span class="n">profile</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getProfile</span><span class="o">(</span><span class="s">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span><span class="o">);</span> </code></pre> <p>Get a profile by ID.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/profiles/{id}</code></p> <h3 id="query-parameters">Query Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>UUID of a profile</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response with the profile. </p> <h2 id="retrieving-profiles">Retrieving profiles</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/profiles'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-profiles.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Victor"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Henning"</span>, <span class="s2">"display_name"</span>: <span class="s2">"Dr. Victor Henning"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/profiles/victor-henning/"</span>, <span class="s2">"research_interests"</span>: <span class="s2">"Emotions, Decision Making, Theory of Reasoned Action, Intertemporal Choice, Motion Picture Economics"</span>, <span class="s2">"academic_status"</span>: <span class="s2">"Post Doc"</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"photos"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29.png"</span>, <span class="s2">"original"</span>: <span class="nb">true</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"height"</span>: 120, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-standard.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 48, <span class="s2">"height"</span>: 48, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-square.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 256, <span class="s2">"height"</span>: 256, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/awaiting_square_256.png"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"verified"</span>: <span class="nb">true</span>, <span class="s2">"location"</span>: <span class="o">{</span> <span class="s2">"latitude"</span>: 52.37, <span class="s2">"longitude"</span>: 4.89, <span class="s2">"name"</span>: <span class="s2">"Amsterdam, Netherlands"</span> <span class="o">}</span>, <span class="s2">"created_at"</span>: <span class="s2">"2008-03-25T16:51:10.000Z"</span>, <span class="s2">"education"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Wissenschaftliche Hochschule für Unternehmensführung - Otto Beisheim Graduate School of Management"</span>, <span class="s2">"degree"</span>: <span class="s2">"Dipl.-Kfm. (MBA)"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2000-10-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2004-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.whu.edu"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Université Libre de Bruxelles - Free University of Brussel"</span>, <span class="s2">"degree"</span>: <span class="s2">""</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-01-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-06-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.ulb.ac.be"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Handelshøyskolen BI - Norwegian School of Management BI"</span>, <span class="s2">"degree"</span>: <span class="s2">""</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-08-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-12-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.bi.no"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"employment"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Mendeley Ltd."</span>, <span class="s2">"position"</span>: <span class="s2">"Co-Founder & CEO"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2007-11-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.mendeley.com"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Bauhaus-University of Weimar"</span>, <span class="s2">"position"</span>: <span class="s2">"Lecturer / Doctoral Student"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2004-10-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2010-12-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.uni-weimar.de"</span>, <span class="s2">"classes"</span>: <span class="o">[</span> <span class="s2">"The Kid Stays In The Picture: Economics of the Film Industry"</span>, <span class="s2">"Guru*Lab: Production and Distribution of a Major German Motion Picture"</span>, <span class="s2">"Guru*Talk: The Film Industry in the 21st Century"</span>, <span class="s2">"Hedonic Consumption"</span> <span class="o">]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Oliver Wyman Consulting"</span>, <span class="s2">"position"</span>: <span class="s2">"Summer Associate"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2003-05-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2003-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.oliverwyman.de"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Revelation Records"</span>, <span class="s2">"position"</span>: <span class="s2">"Product Management / PR Dept."</span>, <span class="s2">"start_date"</span>: <span class="s2">"2001-05-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2001-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.revelation-records.com"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Helkon Media AG"</span>, <span class="s2">"position"</span>: <span class="s2">"Film Production / Business Affairs Dept."</span>, <span class="s2">"start_date"</span>: <span class="s2">"2002-06-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2002-08-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://www.imdb.com/company/co0069136/"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Sony Music Entertainment/Columbia Records"</span>, <span class="s2">"position"</span>: <span class="s2">"Junior A&R, Talent Scout"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2000-01-01"</span>, <span class="s2">"end_date"</span>: <span class="s2">"2000-10-01"</span>, <span class="s2">"website"</span>: <span class="s2">"www.sonymusic.de"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Elsevier"</span>, <span class="s2">"position"</span>: <span class="s2">"Co-Founder/CEO, Mendeley & VP Strategy"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2013-04-01"</span>, <span class="s2">"is_main_employment"</span>: <span class="nb">true</span> <span class="o">}</span> <span class="o">]</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">profile</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">profiles</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'c0925ecf-4de0-3b61-ae9a-ebe5f7406327'</span><span class="p">)</span> <span class="k">print</span> <span class="n">profile</span><span class="o">.</span><span class="n">display_name</span> </code></pre> <pre><code class="highlight java"><span class="n">Profile</span> <span class="n">profile</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getProfile</span><span class="o">(</span><span class="s">"c0925ecf-4de0-3b61-ae9a-ebe5f7406327"</span><span class="o">);</span> </code></pre> <p>Get a profile by ID.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/profiles/{id}</code></p> <h3 id="query-parameters">Query Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>UUID of a profile</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response with the profile.</p> <h2 id="retrieving-the-logged-in-user's-profile">Retrieving the logged-in user’s profile</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/profiles/me'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-profiles.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"9930207c-c19f-3de0-b531-86bd4388fa94"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Jenny"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Johnson"</span>, <span class="s2">"display_name"</span>: <span class="s2">"Jenny Johnson"</span>, <span class="s2">"email"</span>: <span class="s2">"matt.thomson+jenny@mendeley.com"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/profiles/jenny-johnson4/"</span>, <span class="s2">"academic_status"</span>: <span class="s2">"Librarian"</span>, <span class="s2">"discipline"</span>: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"photos"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29.png"</span>, <span class="s2">"original"</span>: <span class="nb">true</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"height"</span>: 120, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-standard.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 48, <span class="s2">"height"</span>: 48, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-square.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 256, <span class="s2">"height"</span>: 256, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/awaiting_square_256.png"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"verified"</span>: <span class="nb">false</span>, <span class="s2">"user_type"</span>: <span class="s2">"normal"</span>, <span class="s2">"created"</span>: <span class="s2">"2014-08-26T15:24:45.000Z"</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">profile</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">profiles</span><span class="o">.</span><span class="n">me</span> <span class="k">print</span> <span class="n">profile</span><span class="o">.</span><span class="n">display_name</span> </code></pre> <pre><code class="highlight java"><span class="n">Profile</span> <span class="n">profile</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getMyProfile</span><span class="o">();</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/profiles/me</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing the profile of the logged-in user.</p> <h2 id="updating-the-logged-in-user's-profile">Updating the logged-in user’s profile</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/profiles/me'</span> <span class="se">\</span> -X PATCH <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Content-Type: application/vnd.mendeley-profile-amendment.1+json'</span> <span class="se">\</span> --data-binary <span class="s1">'{"title": "Dr.", "biography": "Knowledge Discovery products and R&D activities"}'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"first_name"</span>: <span class="s2">"Joyce"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Stack"</span>, <span class="s2">"display_name"</span>: <span class="s2">"Dr. Joyce Stack"</span>, <span class="s2">"email"</span>: <span class="s2">"joyce.stack@mendeley.com"</span>, <span class="s2">"link"</span>: <span class="s2">"http://www.mendeley.com/profiles/joyce-stack1/"</span>, <span class="s2">"institution"</span>: <span class="s2">"Imperial College"</span>, <span class="s2">"academic_status"</span>: <span class="s2">"Other Professional"</span>, <span class="s2">"discipline"</span>: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer and Information Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[</span> <span class="s2">"Software Engineering"</span> <span class="o">]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"photo"</span>: <span class="o">{</span> <span class="s2">"original"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29.png"</span>, <span class="s2">"standard"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-standard.jpg"</span>, <span class="s2">"square"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-square.jpg"</span> <span class="o">}</span>, <span class="s2">"photos"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29.png"</span>, <span class="s2">"original"</span>: <span class="nb">true</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"height"</span>: 120, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-standard.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 48, <span class="s2">"height"</span>: 48, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/6a/bd/6abdab776feb7a1fd4e5b4979ea9c5bfc754fd29-square.jpg"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"width"</span>: 256, <span class="s2">"height"</span>: 256, <span class="s2">"url"</span>: <span class="s2">"http://s3.amazonaws.com/mendeley-photos/awaiting_square_256.png"</span>, <span class="s2">"original"</span>: <span class="nb">false</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"verified"</span>: <span class="nb">true</span>, <span class="s2">"marketing"</span>: <span class="nb">false</span>, <span class="s2">"user_type"</span>: <span class="s2">"admin"</span>, <span class="s2">"location"</span>: <span class="o">{</span> <span class="s2">"latitude"</span>: 51.513, <span class="s2">"longitude"</span>: -0.123, <span class="s2">"name"</span>: <span class="s2">"London, United Kingdom"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2013-10-08T09:26:16.000Z"</span>, <span class="s2">"employment"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"institution"</span>: <span class="s2">"Mendeley"</span>, <span class="s2">"position"</span>: <span class="s2">"Developer Outreach"</span>, <span class="s2">"start_date"</span>: <span class="s2">"2013-10-01"</span>, <span class="s2">"website"</span>: <span class="s2">"http://dev.mendeley.com"</span>, <span class="s2">"is_main_employment"</span>: <span class="nb">true</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"title"</span>: <span class="s2">"Dr."</span>, <span class="s2">"biography"</span>: <span class="s2">"Knowledge Discovery products and R&D activities"</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">yet</span> <span class="n">implemented</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">yet</span> <span class="n">implemented</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">PATCH https://api.mendeley.com/profiles/me</code></p> <h3 id="returns">Returns</h3> <p>A successful update will return a HTTP 200 with the updated profile.</p> <ul> <li>400 if the <strong>academic_status</strong> does not match a valid academic status as specified in <a href="#academic-statuses">Academic Statuses</a></li> <li>409 if the <strong>email</strong> is already in use </li> <li>422 is used for non-trivial error conditions such as multiple fields returning errors. </li> </ul> <h1 id="profile-search">Profile search</h1> <p>The profiles returned have the same attributes as the <a href="#profiles">Profiles</a> API.</p> <h2 id="search-by-query">Search by query</h2> <p>Retrieve profiles which match general query terms.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/search/profiles?query=Politecnico+di+Milano'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-profile.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"..."</span>, <span class="s2">"first_name"</span>: <span class="s2">"..."</span>, <span class="s2">"last_name"</span>: <span class="s2">"..."</span>, <span class="s2">"display_name"</span>: <span class="s2">"...."</span>, <span class="s2">"link"</span>: <span class="s2">"https://www.mendeley.com/profiles/....."</span>, <span class="s2">"folder"</span>: <span class="s2">"..."</span>, <span class="s2">"institution"</span>: <span class="s2">"Student"</span>, <span class="s2">"institution_details"</span>: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Student"</span> <span class="o">}</span>, <span class="s2">"research_interests_list"</span>: <span class="o">[]</span>, <span class="s2">"academic_status"</span>: <span class="s2">"Student > Master"</span>, <span class="s2">"discipline"</span>: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="s2">"disciplines"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"photo"</span>: <span class="o">{}</span>, <span class="s2">"photos"</span>: <span class="o">[]</span>, <span class="s2">"verified"</span>: <span class="nb">true</span>, <span class="s2">"user_type"</span>: <span class="s2">"normal"</span>, <span class="s2">"created"</span>: 1234567891011, <span class="s2">"employment"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"...."</span>, <span class="s2">"institution_details"</span>: <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Student"</span> <span class="o">}</span>, <span class="s2">"institution"</span>: <span class="s2">"Student"</span>, <span class="s2">"position"</span>: <span class="s2">"Politecnico di Milano"</span>, <span class="s2">"start_date"</span>: <span class="o">[</span> 1970, 1, 1 <span class="o">]</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"visibility"</span>: <span class="s2">"all"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/search/profiles?query=Politecnico+di+Milano</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>query</td> <td>string</td> <td>Query terms, which match any field in the profile, e.g. name, discipline, etc (<strong>required</strong>).</td> </tr> <tr> <td>limit</td> <td>int</td> <td>The maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 100.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 response containing a paginated list of the matching profiles.</p> <h1 id="trash">Trash</h1> <p>The documents returned have the same attributes as the <a href="#documents">Documents</a> API.</p> <h2 id="retrieve-a-trashed-document">Retrieve a trashed document</h2> <p>Retrieves a document from the trash.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/trash/183217fc-9c61-34d1-be8b-996556410ccb'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"183217fc-9c61-34d1-be8b-996556410ccb"</span>, <span class="s2">"title"</span>: <span class="s2">"MapReduce"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Jeffrey"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Dean"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Sanjay"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Ghemawat"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2008, <span class="s2">"source"</span>: <span class="s2">"Communications of the ACM"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"issn"</span>: <span class="s2">"00010782"</span>, <span class="s2">"pmid"</span>: <span class="s2">"11687618"</span>, <span class="s2">"doi"</span>: <span class="s2">"10.1145/1327452.1327492"</span>, <span class="s2">"isbn"</span>: <span class="s2">"9781595936868"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2013-10-16T09:24:45.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-06-19T10:12:05.000Z"</span>, <span class="s2">"abstract"</span>: <span class="s2">"MapReduce is a programming model and an associated implementation for processing ......"</span> <span class="o">}</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span> <span class="o">=</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">trash</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s">'183217fc-9c61-34d1-be8b-996556410ccb'</span><span class="p">)</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/trash/{id}</code></p> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document.</td> </tr> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a single document.</p> <h2 id="retrieve-all-trashed-documents">Retrieve all trashed documents</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/trash'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-document.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"183217fc-9c61-34d1-be8b-996556410ccb"</span>, <span class="s2">"title"</span>: <span class="s2">"MapReduce"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Jeffrey"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Dean"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Sanjay"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Ghemawat"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 2008, <span class="s2">"source"</span>: <span class="s2">"Communications of the ACM"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"issn"</span>: <span class="s2">"00010782"</span>, <span class="s2">"pmid"</span>: <span class="s2">"11687618"</span>, <span class="s2">"doi"</span>: <span class="s2">"10.1145/1327452.1327492"</span>, <span class="s2">"isbn"</span>: <span class="s2">"9781595936868"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2013-10-16T09:24:45.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-06-19T10:12:05.000Z"</span>, <span class="s2">"abstract"</span>: <span class="s2">"MapReduce is a programming model and an associated implementation for processing ......"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"id"</span>: <span class="s2">"e76d1e0d-c3fc-39af-83b4-a10e3d42cb28"</span>, <span class="s2">"title"</span>: <span class="s2">"Antler growth and extinction of Irish elk"</span>, <span class="s2">"type"</span>: <span class="s2">"journal"</span>, <span class="s2">"authors"</span>: <span class="o">[</span> <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Ron A"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Moen"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"John"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Pastor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"first_name"</span>: <span class="s2">"Yosef"</span>, <span class="s2">"last_name"</span>: <span class="s2">"Cohen"</span> <span class="o">}</span> <span class="o">]</span>, <span class="s2">"year"</span>: 1999, <span class="s2">"source"</span>: <span class="s2">"Evolutionary Ecology Research"</span>, <span class="s2">"identifiers"</span>: <span class="o">{</span> <span class="s2">"isbn"</span>: <span class="s2">"1522-0613"</span> <span class="o">}</span>, <span class="s2">"created"</span>: <span class="s2">"2014-01-15T12:38:57.000Z"</span>, <span class="s2">"profile_id"</span>: <span class="s2">"4afc0c0f-88ab-3aed-a20a-f50934fc83b1"</span>, <span class="s2">"last_modified"</span>: <span class="s2">"2014-06-30T14:24:09.000Z"</span>, <span class="s2">"abstract"</span>: <span class="s2">"Adult male Irish elk (Megaloceros giganteus) grew the largest antlers of any extinct or extant cervid...."</span> <span class="o">}</span>, <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="k">for</span> <span class="n">doc</span> <span class="ow">in</span> <span class="n">mendeley</span><span class="o">.</span><span class="n">trash</span><span class="o">.</span><span class="nb">iter</span><span class="p">():</span> <span class="k">print</span> <span class="n">doc</span><span class="o">.</span><span class="n">title</span> </code></pre> <pre><code class="highlight java"><span class="n">DocumentList</span> <span class="n">documentList</span> <span class="o">=</span> <span class="n">sdk</span><span class="o">.</span><span class="na">getTrashedDocuments</span><span class="o">();</span> <span class="n">List</span><span class="o"><</span><span class="n">Document</span><span class="o">></span> <span class="n">docs</span> <span class="o">=</span> <span class="n">documentList</span><span class="o">.</span><span class="na">documents</span><span class="o">;</span> <span class="n">Page</span> <span class="n">next</span> <span class="o">=</span> <span class="n">documentList</span><span class="o">.</span><span class="na">next</span><span class="o">;</span> </code></pre> <p>Retrieves all documents in the trash.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/trash</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>view</td> <td>string</td> <td>includes core document fields plus additional fields.</td> </tr> <tr> <td>group_id</td> <td>string</td> <td>the id of the group that the document belongs to. If not supplied returns users documents.</td> </tr> <tr> <td>modified_since</td> <td>string</td> <td>returns only documents modified since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>deleted_since</td> <td>string</td> <td>returns only documents deleted since this timestamp. Should be supplied in ISO 8601 format</td> </tr> <tr> <td>limit</td> <td>string</td> <td>the maximum number of items on the page. If not supplied, the default is 20. The largest allowable value is 500</td> </tr> <tr> <td>order</td> <td>string</td> <td>sort order</td> </tr> <tr> <td>sort</td> <td>string</td> <td>field to sort on</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A paginated collection of documents.</p> <h2 id="restoring-a-document">Restoring a document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/trash/183217fc-9c61-34d1-be8b-996556410ccb/restore'</span> -X POST <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="n">restored_doc</span> <span class="o">=</span> <span class="n">doc</span><span class="o">.</span><span class="n">restore</span><span class="p">()</span> </code></pre> <pre><code class="highlight java"><span class="n">sdk</span><span class="o">.</span><span class="na">restoreDocument</span><span class="o">(</span><span class="s">"183217fc-9c61-34d1-be8b-996556410ccb"</span><span class="o">);</span> </code></pre> <p>Restores a document from the trash.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">POST /trash/{id}/restore</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h2 id="deleting-a-trashed-document">Deleting a trashed document</h2> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/trash/183217fc-9c61-34d1-be8b-996556410ccb'</span> <span class="se">\</span> -X DELETE <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> </code></pre> <pre><code class="highlight python"><span class="n">doc</span><span class="o">.</span><span class="n">delete</span><span class="p">()</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <p>Permanently deletes a document from the trash.</p> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">DELETE /trash/{id}</code></p> <h3 id="url-parameters">URL Parameters</h3> <table><thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead><tbody> <tr> <td>id</td> <td>string</td> <td>Identifier (UUID) of the document.</td> </tr> </tbody></table> <h3 id="returns">Returns</h3> <p>A 204 No Content response.</p> <h1 id="subject-areas">Subject Areas</h1> <h2 id="retrieve-all-subject-areas">Retrieve all subject areas</h2> <p>Retrieves all subject areas.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/subject_areas'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-subject-area.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Agricultural and Biological Sciences"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Arts and Humanities"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Biochemistry, Genetics and Molecular Biology"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Business, Management and Accounting"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Chemical Engineering"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Chemistry"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Computer Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Decision Sciences"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Design"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Earth and Planetary Sciences"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Economics, Econometrics and Finance"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Energy"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Engineering"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Environmental Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Immunology and Microbiology"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Linguistics"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Materials Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Mathematics"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Medicine and Dentistry"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Neuroscience"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Nursing and Health Professions"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Pharmacology, Toxicology and Pharmaceutical Science"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Philosophy"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Physics and Astronomy"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Psychology"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Social Sciences"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Sports and Recreations"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"name"</span>: <span class="s2">"Veterinary Science and Veterinary Medicine"</span>, <span class="s2">"subdisciplines"</span>: <span class="o">[]</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/subject_areas</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all subject areas.</p> <h1 id="user-roles">User Roles</h1> <h2 id="retrieve-all-user-roles">Retrieve all user roles</h2> <p>Retrieves all user roles.</p> <pre><code class="highlight shell">curl <span class="s1">'https://api.mendeley.com/user_roles'</span> <span class="se">\</span> -H <span class="s1">'Authorization: Bearer <ACCESS_TOKEN>'</span> <span class="se">\</span> -H <span class="s1">'Accept: application/vnd.mendeley-user-role.1+json'</span> <span class="o">[</span> <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Lecturer"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Lecturer > Senior Lecturer"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Librarian"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Other"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Professor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Professor > Associate Professor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Researcher"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student > Bachelor"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student > Doctoral Student"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student > Master"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student > Ph. D. Student"</span> <span class="o">}</span>, <span class="o">{</span> <span class="s2">"description"</span>: <span class="s2">"Student > Postgraduate"</span> <span class="o">}</span> <span class="o">]</span> </code></pre> <pre><code class="highlight python"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <pre><code class="highlight java"><span class="n">Not</span> <span class="n">implemented</span><span class="o">.</span> </code></pre> <h3 id="http-request">HTTP Request</h3> <p><code class="prettyprint">GET https://api.mendeley.com/user_roles</code></p> <h3 id="returns">Returns</h3> <p>A 200 OK response containing a all user roles.</p> <h1 id="errors">Errors</h1> <p>The Mendeley API uses standard <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP codes</a> to provide the clients with information about whether the request has been successful or not.</p> <p>In some cases we have used extensions to HTTP such as <a href="http://tools.ietf.org/html/rfc4918">RFC-4918</a></p> <table><thead> <tr> <th>Error Code</th> <th>Meaning</th> </tr> </thead><tbody> <tr> <td>200</td> <td>OK – The request was successful</td> </tr> <tr> <td>201</td> <td>Created – The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the Location header.</td> </tr> <tr> <td>204</td> <td>No content – The request was successful and no extra information will be provided in the body of the response.</td> </tr> <tr> <td>400</td> <td>Bad Request – The request you sent to the server is invalid.</td> </tr> <tr> <td>401</td> <td>Unauthorized – Your API key is wrong</td> </tr> <tr> <td>403</td> <td>Forbidden – Access to the resource is not allowed.</td> </tr> <tr> <td>404</td> <td>Not Found – The resource you were requesting cannot be found.</td> </tr> <tr> <td>405</td> <td>Method Not Allowed – The HTTP method (GET/POST/PUT/PATCH/DELETE) is not valid for this resource.</td> </tr> <tr> <td>406</td> <td>Not Acceptable – The media type in the Accept header is not valid for this resource.</td> </tr> <tr> <td>409</td> <td>Conflict – The resource conflicts with one that already exists.</td> </tr> <tr> <td>412</td> <td>Precondition Failed</td> </tr> <tr> <td>415</td> <td>Unsupported Media Type – The media type in the Content-Type header is not valid for this resource.</td> </tr> <tr> <td>422</td> <td>Unprocessable Entity – The server understands the request entity but was semantically erroneous. See <a href="http://tools.ietf.org/html/rfc4918">RFC-4918</a></td> </tr> <tr> <td>429</td> <td>Too Many Requests - We’ve rate limited you. Contact api-support@mendeley.com.</td> </tr> <tr> <td>500</td> <td>Internal Server Error – We had a problem with our server. Try again later.</td> </tr> <tr> <td>503</td> <td>Service Unavailable – We’re temporarily offline for maintenance. Please try again later.</td> </tr> </tbody></table> </div> <div class="dark-box"> <div class="lang-selector"> <a href="#" data-language-name="shell">cURL</a> </div> </div> </div> </body> </html>