Repository navigation
2.1.0
- PR #110 resolves #108 - A User's first and last name is now properly hydrated when fetching a Conversation the user created
- PR #109 fulfills #98 by adding support for the Authorization Code Flow through
$client->swapAuthorizationCodeForReusableTokens()enabling developers to quickly and easily exchange the code for a refresh and access token pair. A shout out goes to @scr4bble for pushing this work forward! - PR #102 deprecates a
Customer'sChatand replaces it withChatHandleto better reflect what data is being provided and to get in sync with our updated API documentation. Relevant getter and setter methods have also been deprecated in favor of$customer->getChatHandles(). - PR #112 deprecates
$client->useLegacyToken()and all relevant legacy credentials configuration. These will be fully removed on June 6, 2019 so you'll need to make sure you've upgraded your authentication to OAuth2. Here's an example of how to upgrade painlessly using the SDK:
Upgrading Legacy tokens to OAuth2
$authenticator = HelpScout\Api\ApiClientFactory::createClient()
->useLegacyToken($clientId, $apiKey)
->getAuthenticator();
$authenticator->convertLegacyToken():
var_dump($authenticator->getTokens()); // an array containing your new tokens