adobe_connect_api 0.0.44.alpha → 0.0.45.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/adobe_connect_api.rb +0 -31
- data/lib/adobe_connect_api/version.rb +1 -1
- metadata +3 -3
    
        data/lib/adobe_connect_api.rb
    CHANGED
    
    | @@ -124,37 +124,6 @@ class AdobeConnectAPI | |
| 124 124 | 
             
                return res.body
         | 
| 125 125 | 
             
              end
         | 
| 126 126 |  | 
| 127 | 
            -
              # create a new meeting in Adobe Connect
         | 
| 128 | 
            -
              # e.g. "https://collab-test.switch.ch/api/xml?action=sco-update&type=meeting&name=API-Test&folder-id=12578070&date-begin=2012-06-15T17:00&date-end=2012-06-15T23:00&url-path=apitest"
         | 
| 129 | 
            -
              def create_meeting_with_host(name, folder_id, url_path, email)
         | 
| 130 | 
            -
                puts "ACS create meeting with name, folder_id and url_path: " + name + folder_id.to_s + url_path
         | 
| 131 | 
            -
             | 
| 132 | 
            -
                res = query("sco-update", 
         | 
| 133 | 
            -
                  "type" => "meeting", 
         | 
| 134 | 
            -
                  "name" => name, 
         | 
| 135 | 
            -
                  "folder-id" => folder_id, 
         | 
| 136 | 
            -
                  "url-path" => url_path)
         | 
| 137 | 
            -
             | 
| 138 | 
            -
                puts "ACS: meeting created"
         | 
| 139 | 
            -
                puts res.body
         | 
| 140 | 
            -
                data = XmlSimple.xml_in(res.body)
         | 
| 141 | 
            -
                sco_id = data["sco"].first['sco-id']
         | 
| 142 | 
            -
             | 
| 143 | 
            -
                #get principal id
         | 
| 144 | 
            -
                filter = AdobeConnectApi::FilterDefinition.new
         | 
| 145 | 
            -
                filter["email"] == email
         | 
| 146 | 
            -
                principal_id = get_principal_id(filter)
         | 
| 147 | 
            -
                puts principal_id.inspect
         | 
| 148 | 
            -
                puts "ACS: add principal " + principal_id + " as host to new created meeting " + sco_id
         | 
| 149 | 
            -
             | 
| 150 | 
            -
                # aktuellen Benutzer als Host hinzufügen
         | 
| 151 | 
            -
                result = permissions_update(principal_id, sco_id, 'host')
         | 
| 152 | 
            -
                puts result.inspect
         | 
| 153 | 
            -
                puts "ACS: added meeting host: " + result.status
         | 
| 154 | 
            -
             | 
| 155 | 
            -
                return sco_id
         | 
| 156 | 
            -
              end
         | 
| 157 | 
            -
             | 
| 158 127 | 
             
              # create a new meeting in Adobe Connect
         | 
| 159 128 | 
             
              # e.g. "https://collab-test.switch.ch/api/xml?action=sco-update&type=meeting&name=API-Test&folder-id=12578070&date-begin=2012-06-15T17:00&date-end=2012-06-15T23:00&url-path=apitest"
         | 
| 160 129 | 
             
              def create_meeting(name, folder_id, url_path)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: adobe_connect_api
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.45.alpha
         | 
| 5 5 | 
             
              prerelease: 7
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -13,7 +13,7 @@ date: 2012-09-28 00:00:00.000000000Z | |
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: xml-simple
         | 
| 16 | 
            -
              requirement: & | 
| 16 | 
            +
              requirement: &2153338220 !ruby/object:Gem::Requirement
         | 
| 17 17 | 
             
                none: false
         | 
| 18 18 | 
             
                requirements:
         | 
| 19 19 | 
             
                - - ! '>='
         | 
| @@ -21,7 +21,7 @@ dependencies: | |
| 21 21 | 
             
                    version: '0'
         | 
| 22 22 | 
             
              type: :runtime
         | 
| 23 23 | 
             
              prerelease: false
         | 
| 24 | 
            -
              version_requirements: * | 
| 24 | 
            +
              version_requirements: *2153338220
         | 
| 25 25 | 
             
            description: Wrapper to the Adobe Connect API
         | 
| 26 26 | 
             
            email:
         | 
| 27 27 | 
             
            - christian.rohrer@switch.ch
         |