An open API service indexing awesome lists of open source software.

https://github.com/rsathishtechit/webex

PHP WebEx package for XML and NBR API's (XML API inprogress)
https://github.com/rsathishtechit/webex

nbr package php php5 php7 webex webex-nbr-apis webex-xml-apis

Last synced: about 1 year ago
JSON representation

PHP WebEx package for XML and NBR API's (XML API inprogress)

Awesome Lists containing this project

README

          

# PHP package for WebEx NBR API (XML API inprogress)
----------------------------------------------------

### Installation

To install this package you will need:

- PHP >= 5.3

Run this command to install via composer

```
composer require sathish/webex:dev-master
```

or edit the `composer.json`

```
"require": {
"sathish/webex": "dev-master"
}
```
then run
```
composer install
```

### API Implementation

| Available NBR API Methods | Available (in this package) |
| --------------------------|:---------------------------:|
| deleteMeetingXML | No |
| deleteNBRStorageFile | No |
| downloadFile | No |
| downloadNBRStorageFile | Yes |
| downloadWAVFile | No |
| getMeetingTicket | No |
| getNBRConfIdList | No |
| getNBRRecordIdList | Yes |
| getNBRStorageFile | No |
| getSCXML | No |
| getStorageAccessTicket | Yes |

To know more about WebEx NBR API https://developer.cisco.com/site/webex-developer/develop-test/nbr-web-services-api/api-functions.gsp

## Usage

```
use Sathish\Webex\Nbr\WebExNBR;

$nbr = new WebExNBR('', '', '');
$nbr->setServiceUrl(''); /** Don't append slash(/) at the end **/
$nbr->generateTicket();
```
### To download recording (Response will be in multipart format)

```
$nbr->downloadRecording('');
```

### Retrieve recording list

```
$nbr->recordingList();
```

### Regenerate ticket after 1 hour

```
$nbr->refreshTicket();
```

Use Riverline\MultiPartParse package to parse the downloadRecording method response on success. For more info https://github.com/Riverline/multipart-parser

Note: PRs are welcomed.