Twilio_Helpers::get_client()

get_client


Return Return

(void|bool)


Source Source

File: src/integrations/twilio/helpers/twilio-helpers.php

	public function get_client() {

		$sid      = get_option( 'uap_automator_twilio_api_account_sid' );
		$token    = get_option( 'uap_automator_twilio_api_auth_token' );

		if ( empty( $sid ) || empty( $token ) ) {
			throw new \Exception( 'Twilio is not connected' );
		}

		return array('account_sid' => $sid, 'auth_token' => $token );

	}