Giter Club home page Giter Club logo

third-party-api-integration's Introduction

Third party API integration

An example to integrate with third party APIs like AWS S3 and Google maps APIs.

Compatibility

  • Java 8+
  • Vert.x 3.x.x

How to start the server

cd third-party-api-integration/config
update AWS access key, secret key and S3 bucket name in config.json file.
cd ..
mvn clean install
java -jar target/third-party-api-integration-1.0-SNAPSHOT-fat.jar -conf config/config.json

How to call the APIs

Use the following sample curls to hit the API:
1. curl -X POST "http://127.0.0.1:8080/api/v1/s3/upload" -d '{"file_name":"<file_name>","file_path":"<local_file_path>","cloud_folder_name":"<folder_for_uploading>"}'
2. curl -X GET "http://127.0.0.1:8080/api/v1/s3/download?file_name=test.jpg&location_to_save=<file_name_with_extension>&cloud_folder_name=<folder_in_s3>"
3.a. curl -X GET "http://127.0.0.1:8080/api/v1/google/maps/geocode?latlng=12.9255259,77.6366633" if you don't have google key
3.b. curl -X GET "http://127.0.0.1:8080/api/v1/google/maps/geocode?latlng=12.9255259,77.6366633&key=<google_key>"
4. curl -X GET "http://127.0.0.1:8080//api/v1/google/maps/place?location=12.9255259,77.6366633&radius=500&key=<google_key>"

third-party-api-integration's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.