Package pl.gsmservice.gateway
Class AsyncClient
- java.lang.Object
-
- pl.gsmservice.gateway.AsyncClient
-
public class AsyncClient extends java.lang.ObjectMessaging Gateway SzybkiSMS.pl (former GSMService.pl):
This package includes Messaging SDK for JAVA to send SMS & MMS messages directly from your app via https://szybkisms.pl messaging platform.
Client class is used to initialize SDK environment.
Please initialize it this way:
import java.lang.Exception; import pl.gsmservice.gateway.Client; import pl.gsmservice.gateway.models.errors.ErrorResponse;Client sdk = Client.builder() .bearer("<YOUR API ACCESS TOKEN>") .build();
If you want to use a Sandbox test system please initialize it as follows:
Client sdk = Client.builder() .server(Client.AvailableServers.SANDBOX) .bearer("<YOUR API ACCESS TOKEN>") .build();
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncAccountsaccounts()AsyncCommoncommon()AsyncIncomingincoming()AsyncOutgoingoutgoing()AsyncSenderssenders()Clientsync()Switches to the sync SDK.
-
-
-
Method Detail
-
accounts
public AsyncAccounts accounts()
-
outgoing
public AsyncOutgoing outgoing()
-
incoming
public AsyncIncoming incoming()
-
common
public AsyncCommon common()
-
senders
public AsyncSenders senders()
-
sync
public Client sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
-