Giter Site home page Giter Site logo

adobeconnect-php-api-client's Introduction

Adobe Connect 8 API client

Overview

Simply PHP-client.

Requirements

###Usage All methods are throwable and you should wrap API-calls to try-catch blocks

$client = new AdobeConnectClient();
$acc->createUser('[email protected]', 'p4s$w0rD', 'Firstname', 'Lastname');
$acc->getUserByEmail('[email protected]', true);
$folder_id = $acc->createFolder('test folder', 'api_test_folder');
$meeting_id = $acc->createMeeting(
	$folder_id, 
	'test meeting', 
	'2012-11-04T09:00', 
	'2012-11-04T11:00', 
	'api_test'
);
$acc->inviteUserToMeeting($meeting_id, '[email protected]');

###Contacts

adobeconnect-php-api-client's People

Contributors

sc0rp10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

adobeconnect-php-api-client's Issues

code issue

Hi,

I am using exactly same code with valid username and password but it doesn't seems to be working.
I have used exactly same thing as below:

$client = new AdobeConnectClient();
$acc->createUser('[email protected]', 'p4s$w0rD', 'Firstname', 'Lastname');
$acc->getUserByEmail('[email protected]', true);
$folder_id = $acc->createFolder('test folder', 'api_test_folder');
$meeting_id = $acc->createMeeting(
$folder_id,
'test meeting',
'2014-11-04T09:00',
'2014-11-04T11:00',
'api_test'
);
$acc->inviteUserToMeeting($meeting_id, '[email protected]');

Change User password functionality

Hi,

i was using this library but facing problems using the updateUser to change the password, so i have added this function to do that:#

public function changeUserPassword($email, $newPassword) {
        $principal_id = $this->getUserByEmail($email, true);
        return $this->makeRequest('user-update-pwd', 
                array(
                    'user-id'           => $principal_id,
                    'password'          => $newPassword,
                    'password-verify'   => $newPassword
                )
            );
    }

i have used the information provided here: https://helpx.adobe.com/adobe-connect/webservices/user-update-pwd.html

If you want to add to your library, feel free. And thank you very much for your work !!

Issue With Event Descriptions Containing Line Breaks

First off, thanks for a nice library to make working with this API easier.

I've run into an issue when events have line breaks in their descriptions. The way you are grabbing the XML data out of the response code is by exploding the response on two line breaks:

$temp = explode("\r\n\r\n", $response);

This works great on most responses, as the content of the information comes after two line breaks following the date:

HTTP/1.1

200 OK
Server: Apache-Coyote/1.1
Set-Cookie:
BREEZESESSION=xxxxxxxxxxxxxxxx;HttpOnly;domain=.adobeconnect.com;secure;path=/
Cache-Control: max-age:5
Expires: now
Content-Type: text/xml
Content-Length: 3682
Date: Wed, 30 Mar 2016 16:22:54 GMT

Completed/123456abcde/2015-04-30T12:33:45.810-04:00

However, this is not always the only place where two line breaks could occur, so the possibility exists that you could wind up with multiple results in the array, so you can't rely on using $temp[1].

You can get around this issue by prepending your explode string with 'GMT', as that is always present prior to the line breaks:

$temp = explode("GMT\r\n\r\n", $response);

It's been working in my testing so far, but please, feel free to suggest an alternate solution.

Thanks again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.