Package pl.gsmservice.gateway
Class Client
- java.lang.Object
-
- pl.gsmservice.gateway.Client
-
public class Client 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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClient.AvailableServersAvailableServers contains identifiers for the servers available to the SDK.static classClient.BuilderThe Builder class allows the configuration of a new instance of the SDK.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<Client.AvailableServers,java.lang.String>SERVERSSERVERS contains the list of server urls available to the SDK.
-
Constructor Summary
Constructors Constructor Description Client(SDKConfiguration sdkConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Accountsaccounts()AsyncClientasync()Switches to the async SDK.static Client.Builderbuilder()Get a new instance of the SDK builder to configure a new instance of the SDK.Commoncommon()Incomingincoming()Outgoingoutgoing()Senderssenders()
-
-
-
Field Detail
-
SERVERS
public static final java.util.Map<Client.AvailableServers,java.lang.String> SERVERS
SERVERS contains the list of server urls available to the SDK.
-
-
Constructor Detail
-
Client
public Client(SDKConfiguration sdkConfiguration)
-
-
Method Detail
-
accounts
public Accounts accounts()
-
outgoing
public Outgoing outgoing()
-
incoming
public Incoming incoming()
-
common
public Common common()
-
senders
public Senders senders()
-
builder
public static Client.Builder builder()
Get a new instance of the SDK builder to configure a new instance of the SDK.- Returns:
- The SDK builder instance.
-
async
public AsyncClient async()
Switches to the async SDK.- Returns:
- The async SDK
-
-