<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get all types of a document type in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321887#M8888</link>
    <description>&lt;P&gt;Using automation /api/automation/Directory.Entries can do the trick&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 17:52:28 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-12-02T17:52:28Z</dc:date>
    <item>
      <title>Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321884#M8885</link>
      <description>&lt;P&gt;Hello, I have a question.
In my nuxeo db I have an a table, who name is studio_vocabulary_type_doc but I can't access this through sql out of nuxeo.
This table contains a diferent types of documents which I would want get all of this types from php but I don't know the correct way for do it.&lt;/P&gt;
&lt;P&gt;I want to get all the types of documents that are set in the vocabulary of nuxeo using php&lt;/P&gt;
&lt;P&gt;Any idea?
thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 14:19:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321884#M8885</guid>
      <dc:creator>Domingo_Gonzále</dc:creator>
      <dc:date>2016-11-30T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321885#M8886</link>
      <description>&lt;P&gt;You should have a look at the directory endpoint of the REST API&lt;/P&gt;
&lt;P&gt;&lt;A href="http://nuxeo.github.io/api-playground/" target="test_blank"&gt;http://nuxeo.github.io/api-playground/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:31:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321885#M8886</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-11-30T15:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321886#M8887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As &lt;A href="https://app.quandora.com/object/bb905221-dbe8-4178-8f5f-5d744ace6c00"&gt;pibou Bouvret&lt;/A&gt; mentioned, you can use the playground to find out how to get the content of your vocabulary.&lt;/P&gt;
&lt;P&gt;Unfortunately the Automation PHP Client is currently only a client for the Command Endpoint (Automation API). Support for the other endpoints are planned as new features with the next releases.&lt;/P&gt;
&lt;P&gt;I recommend you create a ticket to our support so we can work on a dedicated patch for your use-case as soon as possible.&lt;/P&gt;
&lt;P&gt;Still, if you have a dependency to the Automation PHP Client v1.0.0+, you have access to the Guzzle HTTP Client as a transitive dependency; you could write your own call to the Resources Endpoint to get the content of your vocabulary.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 16:28:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321886#M8887</guid>
      <dc:creator>Pierre-Gildas_M</dc:creator>
      <dc:date>2016-12-02T16:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321887#M8888</link>
      <description>&lt;P&gt;Using automation /api/automation/Directory.Entries can do the trick&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:52:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321887#M8888</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-12-02T17:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321888#M8889</link>
      <description>&lt;P&gt;Indeed you're right, I was thinking about that afterwards.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 18:56:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321888#M8889</guid>
      <dc:creator>Pierre-Gildas_M</dc:creator>
      <dc:date>2016-12-02T18:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get all types of a document type</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321889#M8890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I managed to fix the issue in the client &lt;A href="https://github.com/nuxeo/nuxeo-automation-php-client/releases/tag/1.1.1"&gt;v1.1.1&lt;/A&gt; (if you're using the 1.5-rc1 it's still a WIP).&lt;/P&gt;
&lt;P&gt;You should be able to get the entries with the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-php"&gt;$client = new \Nuxeo\Automation\Client\NuxeoPhpAutomationClient('http://nuxeo:8080/nuxeo/site/automation');

$session = $client-&amp;gt;getSession('Administrator', 'Administrator');

$entries = $session-&amp;gt;newRequest("Directory.Entries")-&amp;gt;set('params', 'directoryName', 'category')-&amp;gt;sendRequest();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-all-types-of-a-document-type/m-p/321889#M8890</guid>
      <dc:creator>Pierre-Gildas_M</dc:creator>
      <dc:date>2016-12-07T11:15:38Z</dc:date>
    </item>
  </channel>
</rss>

