Chatwee

Setup

To use Chatwee PHP SDK you need to download it first. Click below to download the PHP SDK for Chatwee.

Download Chatwee PHP SDK

Next, you have to include it in your project. In order to do that, just add the following line to your code.


<?php
  require_once(dirname( __FILE__ ) . "/ChatweeV2_SDK/Chatwee.php");
?>
			

Before you can perform any of the Chatwee API operations, you have to set up your credentials. You can find them in your Chatwee Dashboard in the INTEGRATION section of the Customize tab.


<?php
  ChatweeV2_Configuration::setApiUrl(YOUR_API_URL);
  ChatweeV2_Configuration::setChatId(YOUR_PERSONAL_CHAT_ID);
  ChatweeV2_Configuration::setClientKey(YOUR_PERSONAL_CLIENT_KEY);
?>