Giter Club home page Giter Club logo

Comments (5)

yepher avatar yepher commented on August 17, 2024

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.

geniushkg avatar geniushkg commented on August 17, 2024

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.

yepher avatar yepher commented on August 17, 2024

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.

yepher avatar yepher commented on August 17, 2024

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.

yepher avatar yepher commented on August 17, 2024

You can now provide your own RestConnection class that implements IRestConnection.

That should resolve this issue.

from java-sparkpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.