getAuthToken(); $request = [ 'name' => $this->applicationCode . ' SMS ' . $phoneNumber, 'send_at' => date('Y-m-d H:i:s', time()), 'recipients' => [ [ 'application_user_id' => $userId, 'delivery_destination' => $phoneNumber, 'delivery_type' => 'SMS', 'body' => $text ] ] ]; return $this->postAPI('notification/send', $request, $token); } }