* Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
session_start();
require_once __DIR__ . '/common.php';
require_once __DIR__ . '/aabUtil.php';
require_once __DIR__ . '/../lib/AAB/AABService.php';
use Att\Api\AAB\AABService;
$arr = null;
try {
    envinit();
    $aabService = new AABService(getFqdn(), getSessionToken());
    $contact = $aabService->getMyInfo();
    $tables = array();
    $tables[] = generateContactTable($contact);
    $contactId = $contact->getContactId();
    $table = generatePhonesTable($contactId, $contact->getPhones());
    if ($table !== null) {
        $tables[] = $table;
    }
    $table = generateEmailsTable($contactId, $contact->getEmails());
    if ($table !== null) {
        $tables[] = $table;
    }
    $table = generateImsTable($contactId, $contact->getIms());
    if ($table !== null) {
        $tables[] = $table;
    }
 private function _handleGetMyInfo()
 {
     $vnames = array('getMyInfo');
     $this->copyToSession($vnames);
     if (!isset($_SESSION['getMyInfo'])) {
         return;
     }
     try {
         $aabSrvc = new AABService($this->apiFQDN, $this->getSessionToken());
         $result = $aabSrvc->getMyInfo();
         $this->results[C_MY_INFO] = $result;
         $this->clearSession($vnames);
     } catch (Exception $e) {
         $this->errors[C_MY_INFO] = $e->getMessage();
         $this->clearSession($vnames);
     }
 }