Code Monkey home page Code Monkey logo

webex's Introduction

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('<admin username>', '<admin password>', '<site id>');
    $nbr->setServiceUrl('<NBR API URL>'); /** Don't append slash(/) at the end **/
    $nbr->generateTicket();

To download recording (Response will be in multipart format)

    $nbr->downloadRecording('<recoding id>');

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.

webex's People

Contributors

rsathishtechit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

webex's Issues

Parsing the downloadRecording response

Hi,

Thanks for the great package!

I'm using this package to pull down recordings from the NBR API and so far all is working very well. I'm now moving to parse the response from the downloadRecording method and I know that you've mentioned using the multi-part parser package and was wondering if you happen to have any sample code for this?

I'm working through it now but thought I'd check to see if you've had success already and might be able to give a head start on working with the response. I'm able to download and save the raw response but it has the rest of the XML included, which I'd like to eliminate in a clean way.

Right now when I call var_dump($document->isMultiPart()); on the response I get false

Thanks for any tips you can provide!

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.