Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
w8fyz authored Mar 29, 2023
1 parent 5f346f3 commit 44a4cde
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ for (Courier carrier : carriers) {
System.out.println(carrier.getCourierCode());
}
```

Create webhook listener and print tracking number :
```java
WebhookListener.listen(8070).secret("secret webhook").onWebhookReceived(new WebhookReceived() {
@Override
public void execute(ArrayList<Tracking> trackingsFromWebhook) {
for(Tracking track : trackingsFromWebhook) {
System.out.println("TRACK : "+track.getTracker().getTrackingNumbers()[0]);
}
}
}).start();
```

# Conclusion
That's it! With Ship24-4J, you can easily and quickly integrate Ship24's tracking functionality into your Java application. If you have any questions or issues, please feel free to open an issue on our GitHub repository. Thank you for using Ship24-4J!

0 comments on commit 44a4cde

Please sign in to comment.