https://github.com/sailthru/sailthru-java-client
Java client library for Sailthru API
https://github.com/sailthru/sailthru-java-client
team-platform
Last synced: 12 days ago
JSON representation
Java client library for Sailthru API
- Host: GitHub
- URL: https://github.com/sailthru/sailthru-java-client
- Owner: sailthru
- License: mit
- Created: 2011-04-28T12:19:45.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T22:32:09.000Z (about 1 year ago)
- Last Synced: 2025-05-07T13:56:15.638Z (12 days ago)
- Topics: team-platform
- Language: Java
- Homepage: http://getstarted.sailthru.com
- Size: 1.83 MB
- Stars: 11
- Watchers: 64
- Forks: 31
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
sailthru-java-client
====================For installation instructions, documentation, and examples please visit:
[http://getstarted.sailthru.com/new-for-developers-overview/api-client-library/java](http://getstarted.sailthru.com/new-for-developers-overview/api-client-library/java)A simple client library to remotely access the `Sailthru REST API` as per [http://getstarted.sailthru.com/developers/api](http://getstarted.sailthru.com/developers/api)
By default, it will make request in `JSON` format.
Examples
--------See the examples directory for examples invoking various api actions with the client.
### Rate Limit Information
The library allows inspection of the 'X-Rate-Limit-*' headers returned by the Sailthru API. The `getLastRateLimitInfo(action, method)` function allows you to retrieve the last known rate limit information for the given ApiAction / HttpRequestMethod combination. It must follow an API call. For example, if you do a `/send POST`, you can follow up with a call to `getLastRateLimitInfo(ApiAction.send, HttpRequestMethod.POST)`. See the examples directory for how to use this function.