2017 © Pedro Peláez
 

library apps

Client library to assist with building dynamic apps that integrate with the Help Scout UI

image

helpscout/apps

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  • Friday, April 6, 2018
  • by stevenwadejr
  • Repository
  • 30 Watchers
  • 24 Stars
  • 43,269 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

New Apps Platform Available! :rocket:

:loudspeaker: We're thrilled to announce that our new App Developer Platform is now available to all customers. We highly encourage all new apps to be built on the platform to take advantage of its expanded capabilities., (*1)

For those looking to migrate from our legacy custom apps, we have prepared a comprehensive Migration Guide. This guide will help you seamlessly transition to the new platform., (*2)

All existing legacy custom apps will continue to function as before. If you'd like to use the legacy framework to install a legacy custom app, click here. You can still access the documentation for Legacy Custom Apps here., (*3)


Please note: While we will continue to support this legacy PHP library, future development will be focused on our new Apps Platform., (*4)

Dynamic Apps Client Library

Client library to assist with building custom apps that integrate with Help Scout. More information: http://developer.helpscout.net/custom-apps/, (*5)

Current Version

  • 1.1.1

Please see the Changelog for details., (*6)

Installation

The Help Scout apps client can be installed using Composer., (*7)

Composer

Inside of composer.json specify the following:, (*8)

{
  "require": {
    "helpscout/apps": "1.1.*"
  }
}

Example Usage (1)

use HelpScoutApp\DynamicApp;

include 'src/HelpScoutApp/DynamicApp.php';

$app = new DynamicApp('SECRET-KEY-HERE');
if ($app->isSignatureValid()) {
        $customer = $app->getCustomer();
        $user     = $app->getUser();
        $convo    = $app->getConversation();
        $mailbox  = $app->getMailbox();

        $html = array(
            '<p>Convo</p>',
            '<ul>',
                '<li>Id: ' . $convo->getId() . '</li>',
                '<li>Number: ' . $convo->getNumber() . '</li>',
                '<li>Subject: ' . $convo->getSubject() . '</li>',
            '</ul>',
            '<p>Customer</p>',
            '<ul>',
                '<li>First: ' . $customer->getFirstName() . '</li>',
                '<li>Last: ' . $customer->getLastName() . '</li>',
                '<li>Email: ' . $customer->getEmail() . '</li>',
            '</ul>',
            '<p>User</p>',
            '<ul>',
                '<li>First: ' . $user->getFirstName() . '</li>',
                '<li>Last: ' . $user->getLastName() . '</li>',
                '<li>Id: ' . $user->getId() . '</li>',
            '</ul>',
            '<p>Mailbox</p>',
            '<ul>',
                '<li>ID: ' . $mailbox->getId() . '</li>',
                '<li>Email: ' . $mailbox->getEmail() . '</li>',
            '</ul>'
        );
        echo $app->getResponse($html);
} else {
        echo 'Invalid Request';
}

Example Usage (2)

use HelpScoutApp\DynamicApp;

include 'src/HelpScoutApp/DynamicApp.php';

$app = new DynamicApp('SECRET-KEY-HERE');
if ($app->isSignatureValid()) {               
    echo $app->getResponse('

Hello World, (*9)

'); } else { echo 'Invalid Request'; }

The Versions

06/04 2018

dev-master

9999999-dev http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

The Development Requires

helpscout apps dynamic-app

06/04 2018

dev-develop

dev-develop http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

The Development Requires

helpscout apps dynamic-app

06/04 2018

1.1.1

1.1.1.0 http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

The Development Requires

helpscout apps dynamic-app

26/06 2015

1.1.0

1.1.0.0 http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

helpscout apps dynamic-app

30/05 2014

v1.0

1.0.0.0 http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

helpscout apps dynamic-app

30/05 2014

1.0.1

1.0.1.0 http://www.helpscout.net

Client library to assist with building dynamic apps that integrate with the Help Scout UI

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • ext-curl *

 

helpscout apps dynamic-app