Comments (5)
It has been several years since I worked on Android. As I recall Android provides it own customized version of 'org.apache:commons httpclient
. I've not tested on Android but I believe it should work fine.
As for integration with Gradle, I expected it to work with the provided POM. Can you tell me a little more about the concurrent error you are seeing?
from java-sparkpost.
I managed by making rest request using curl example , It would be great if you build an sdk on top of okhttp. I will try if possible will provide a wrapper class on top of rest api to send emails for android.
from java-sparkpost.
Sure, if you would like to update the library to use okHTTP just submit a pull request.
All the HTTP calls are in com.sparkpost.transport.RestConnection and that implements an Interface. So you could make a second implementation or retrofit the existing class. I expect most of the changes would be in the doHTTP method and the challenging bit (not that challenging) would be the non 2xx error handling.
from java-sparkpost.
Also for your reference refer to https://github.com/SparkPost/java-sparkpost/blob/master/CONTRIBUTING.md for how to build project and some othe helpful information.
from java-sparkpost.
You can now provide your own RestConnection class that implements IRestConnection.
That should resolve this issue.
from java-sparkpost.
Related Issues (20)
- Log4j critical vulnerability!! HOT 4
- SuppressionList update endpoints throw com.google.gson.JsonSyntaxException
- RestConnection does not honor Client base URL
- Upgrade to Log4J 2.17.1
- Webhook events no longer derive from AbstractWebhookEvent, making getting type more difficult
- Webhook fields initial_pixel and open_tracking are presented as int, rather than boolean in event classes, making deserialization harder
- GSON error when calling insertOrUpdate or insertOrUpdateBulk
- Add 'template_id' key in X-MSYS-API Custom Header
- SparkPost/Java
- Unable to use Java SDK to map the Webhook Event
- Support for EventsAPI
- Webhook active property missing from model HOT 2
- Webhook properties are out of date HOT 1
- attach pdf HOT 2
- Webhook resource is missing /validate endpoint
- SparkPost Java API Suppression list limitations HOT 1
- event webhook - handle ping events
- Message Event API ending point changed - please update HOT 1
- TransimisionBase should allow other types than String for Metadata value HOT 2
- Subaccount CRUDs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-sparkpost.