gateway 4.0.1 API

This package includes Messaging SDK for Java to send SMS & MMS messages directly from your app via https://szybkisms.pl messaging platform.

Additional documentation

Please find documentation with examples on our GitHub

You can also refer to the REST API documentation for additional details about the basics of this SDK.

Builder style SDK

This SDK uses builders and method chaining for all SDK objects. For example, to create a SmsMessage object please use this style:


SmsMessage.builder()
   .recipients(
          Recipients.of("+48999999999")
   )
   .message("To jest treść wiadomości")
   .sender("Bramka SMS")
   .type(SmsType.SmsPro)
   .unicode(true)
   .flash(false)
   .build()

For example, to build a SenderInput object you call SenderInput.builder() and not new Builders.SenderInputFactory().

Null safety

For non-required and nullable fields, the java.util.Optional and JSONNullable classes are used.

Initialization

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();

Author
SzybkiSMS.pl
Packages 
Package Description
pl.gsmservice.gateway  
pl.gsmservice.gateway.hooks  
pl.gsmservice.gateway.models.components  
pl.gsmservice.gateway.models.errors  
pl.gsmservice.gateway.models.errors.async  
pl.gsmservice.gateway.models.operations  
pl.gsmservice.gateway.models.operations.async  
pl.gsmservice.gateway.operations  
pl.gsmservice.gateway.utils  
pl.gsmservice.gateway.utils.reactive