Prerequisites:

  • Installing SDK

Steps to Follow:

  1. Create Deep Page Builder:
LandingPage.Builder builder = new
LandingPage.Builder() ;
  1. Add your page values:
  builder.withLang("en") ;  
  builder.withWebPushSubscription(true) ;  
  builder.withLogo("url" , "header") ;  
  builder.withParagraph("pargraph …")  
  builder.withButton(" btt text " , " btt alt text " , targets ) ;   
  builder.withImage(" url ") ;   
  builder.withLabel("testcreate") ;   
  builder.withSocialMedia(" sm title " , " sm description " ," URL") ; 
  builder.withSlider( 300 , 2000 , "horizontal" , "URL 1" , " URL 2" , "URL 3") ;  
  1. Build you page link request: ```java LandingPage landingPage = builder.build() ;
 5.  Your request not called unless you called enqueue() method
```java 
landingPage.enqueue(new LandingPageCallBack() {
   @Override 
   public void onLandingPageCreated(LandingPageResponseresponse) {
      // get created link 
      String createdLink = response.getLink(); 
    } 
    @Override 
    public void onLandingPageFail(BaseResponse failure) { 
      // your your link creation has failed log to see errors 
      Log.e("LandingPageFail" , "Message " + failure.getMessage()); 
    }  
});