2017 © Pedro Peláez
 

project incontact-laravel-oauth2-rest

An inContact REST api wrapper utilizing oAuth2

image

frankkessler/incontact-laravel-oauth2-rest

An inContact REST api wrapper utilizing oAuth2

  • Saturday, February 18, 2017
  • by frankkessler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

Travis CI Build Status Coverage Status StyleCI Latest Stable Version, (*1)

INSTALLATION

To install this package, add the following to your composer.json file, (*2)

frankkessler/incontact-laravel-oauth2-rest: "0.2.*"

LARAVEL 5 SPECIFIC INSTALLATION TASKS

Add the following to your config/app.php file in the providers array, (*3)

Frankkessler\Incontact\Providers\IncontactLaravelServiceProvider::class,

Add the following to your config/app.php file in the aliases array, (*4)

'Incontact'    => Frankkessler\Incontact\Facades\Incontact::class,

Run the following command to pull the project config file and database migration into your project, (*5)

php artisan vendor:publish

Run the migration, (*6)

php artisan migrate

OPTIONAL INSTALLATION

Logging is enabled by default if using Laravel. If not, add the following to the $config parameter when initializing the Incontact class. (This class must implement the Psr\Log\LoggerInterface interface.), (*7)

'incontact.logger' => $class_or_class_name

TOKEN SETUP

Currently, this package only supports the username/password flow for oauth2., (*8)

To get started, you'll have to setup an Application in Incontact. 1. Navigate to Manage -> API Applications 2. Click "Create API Application" 3. Select "Register Internal Application" 4. Fill out the form keeping in mind that your OAUTH_CONSUMER_TOKEN will be [APPLICATION_NAME]@[VENDOR_NAME] 5. Save and find your business unit if which will be your OAUTH_CONSUMER_SECRET., (*9)

Now that you have your Consumer Token and Consumer Secret, add them to your .env file:, (*10)

INCONTACT_OAUTH_DOMAIN=api.incontact.com
INCONTACT_OAUTH_CONSUMER_TOKEN=[APPLICATION_NAME]@[VENDOR_NAME]
INCONTACT_OAUTH_CONSUMER_SECRET=BUSINESS_UNIT_NUMBER
INCONTACT_OAUTH_SCOPES=RealTimeApi AdminApi ReportingApi
INCONTACT_OAUTH_USERNAME=YOUR_INCONTACT_USERNAME
INCONTACT_OAUTH_PASSWORD=YOUR_INCONTACT_PASSWORD

EXAMPLES

AdminApi

Get Agents

$incontact = new \Frankkessler\Incontact\Incontact();

$result = $incontact->AdminApi()->agents();

foreach($result['agents'] as $record) {
    $agentId =  $record['AgentId'];
}

ReportingApi

Get Call by Contact Id

$incontact = new \Frankkessler\Incontact\Incontact();

$result = $incontact->ReportingApi()->contact('9999999999');

foreach($result as $record) {
    $contactId = $record['contactId'];
}

The Versions

20/09 2016

dev-analysis-XpEj7L

dev-analysis-XpEj7L

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

19/09 2016

v0.2.3

0.2.3.0

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

19/09 2016

dev-analysis-87P9E2

dev-analysis-87P9E2

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

19/09 2016

v0.2.2

0.2.2.0

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

19/09 2016

dev-analysis-qoLP4Q

dev-analysis-qoLP4Q

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

16/09 2016

v0.2.1

0.2.1.0

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

16/09 2016

dev-analysis-XV04a3

dev-analysis-XV04a3

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

15/09 2016

dev-analysis-8PeKDA

dev-analysis-8PeKDA

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

14/09 2016

v0.2.0

0.2.0.0

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

14/09 2016

dev-analysis-8wymdK

dev-analysis-8wymdK

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact

31/01 2016

v0.1

0.1.0.0

An inContact REST api wrapper utilizing oAuth2

  Sources   Download

MIT

The Requires

 

The Development Requires

rest oauth2 incontact