Class LamlRepository

    • Constructor Summary

      Constructors 
      Constructor Description
      LamlRepository​(java.lang.String projectId, java.lang.String apiToken, java.lang.String spaceUrl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Bin create​(java.lang.String name, java.lang.String contents)
      Create an XML bin
      SuccessResponse delete​(java.lang.String sid)
      Delete an XML bin by ID
      Bin get​(java.lang.String sid)
      Retrieve a particular xml bin by ID
      LamlResponse list()
      Returns a list of your XML Bins.
      LamlResponse list​(java.lang.String friendlyName)
      Get list of xml bins by friendly name
      Bin update​(java.lang.String sid, java.lang.String name, java.lang.String contents)
      Update an XML by ID
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LamlRepository

        public LamlRepository​(java.lang.String projectId,
                              java.lang.String apiToken,
                              java.lang.String spaceUrl)
    • Method Detail

      • list

        public LamlResponse list()
        Returns a list of your XML Bins. The Bins are returned sorted by creation date, with the most recent appearing first
        Specified by:
        list in interface XMLInterface
        Returns:
        LamlResponse
      • list

        public LamlResponse list​(java.lang.String friendlyName)
        Get list of xml bins by friendly name
        Specified by:
        list in interface XMLInterface
        Parameters:
        friendlyName - name of xml to be queried
        Returns:
        LamlResponse
      • get

        public Bin get​(java.lang.String sid)
        Retrieve a particular xml bin by ID
        Specified by:
        get in interface XMLInterface
        Returns:
        Bin
      • update

        public Bin update​(java.lang.String sid,
                          java.lang.String name,
                          java.lang.String contents)
                   throws SignalWireException
        Update an XML by ID
        Specified by:
        update in interface XMLInterface
        Parameters:
        sid - unique SID for the bin
        name - friendly name of the created bin
        contents - full contents and xml values of the bin
        Returns:
        Bin
        Throws:
        SignalWireException
      • delete

        public SuccessResponse delete​(java.lang.String sid)
        Delete an XML bin by ID
        Specified by:
        delete in interface XMLInterface
        Parameters:
        sid - unique SID for the bin
        Returns:
        SuccessResponse