Ok we  got   it working.   The problem was case sensitivity :


'i was using a case insensitive parameter for search while the ws is case sensitive'




On 1/25/2020 5:48 AM, Daniel Baker wrote:

Yes  we have  created  files  using  OM official plugin and  then    call the API   with externaltype *moodle*

But  we  get  this error :


getAllExternalResponse Object
(
     [getAllExternalResponse] =>
)

Is it working ok for you ?*
*

On 1/25/2020 1:59 AM, Maxim Solodovnik wrote:
Not sure I got the question

Do you mean you have created files via plugin, and unable to get them via this call?
What externaltype have you used while creation?

On Sat, Jan 25, 2020, 05:06 Daniel Baker <[email protected] <mailto:[email protected]>> wrote:

    Currently  we  are  getting this  result.  Have files  created 
    from moodle  in OM



    On 1/24/2020 9:33 PM, Daniel Baker wrote:

    How would I separate files ?



    On 1/24/2020 6:54 AM, Maxim Solodovnik wrote:
    Hello Daniel,

    I'm surprised this question arise only now :)

    Om is designed to be used with multiple external systems
    You can configure several Moodle instances for ex. to work with
    one OM server
    In such case you need to separate users/rooms/files etc.
    So each connected external system should have unique externalType
    for ex.
    Moodle1
    Moodle2
    MySuperCMS
    etc.

    On Thu, 23 Jan 2020 at 01:26, Daniel Baker
    <[email protected]
    <mailto:[email protected]>> wrote:

        Hi,
               What is meant  by 'external type'?

               @GET @Path("/{externaltype}") publicList  
<https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html?is-external=true><FileItemDTO  
<https://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/file/FileItemDTO.html?is-external=true>>
 getAllExternal​(@QueryParam("sid")String  
<https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true>  sid,
               @PathParam("externaltype")String  
<https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true>
  *externalType)*

        Get all files by *external type*

        
https://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html#getAllExternal(java.lang.String,java.lang.String)



-- WBR
    Maxim aka solomax

Reply via email to