Git Product home page Git Product logo

standalone-notification-service's Introduction

Sms For Standalone Notification Service

The Standalone SMS Notification Service is a robust Spring Boot solution that seamlessly integrates multiple SMS service providers, including Twilio, Figensoft, and AWS SNS.

Requirements

Before running the project, please ensure that you provide the necessary environment variables for proper configuration. The YAML file (application.yml) contains placeholders within ${} for sensitive information such as access credentials, API tokens, and authentication details. When launching the project, make sure to replace these placeholders with the actual values of your credentials in your local environment or deployment platform. These environment variables ensure secure and personalized configuration for services like AWS, Twilio, and Figensoft, allowing the Standalone SMS Notification Service to function seamlessly and securely.

cloud:
    aws:
        credentials:
            accessKeyId: ${ACCESS_KEY_ID}
            secretKey: ${SECRET_KEY}
        region: us-east-1

twilio:
    account_sid: ${ACCOUNT_SID}
    auth_token: ${AUTH_TOKEN}
    from_number: ${FROM_NUMBER}

figensoft:
    url: https://www.postaguvercini.com/api_http
    singleSMS: /sendsms.asp
    username: ${FIGEN SOFT_USERNAME}
    password: ${FIGEN SOFT_PASSWORD}
    timeout: 5s

Running the application

You can directly run your application your local machine. There’s no need to install a Servlet container. In a terminal window execute the following command from the root level of the project:

Mac OS X/ Unix

./gradlew bootRun

Windows

gradlew.bat bootRun

Using the Service

To leverage the capabilities of the Service, you can make requests to the designated endpoint using your preferred HTTP client. Follow the steps below to send SMS notifications:

Endpoint:

http://localhost:8080/sms/send

Request Body:

{
    "phoneNumbers": ["+90xxxxxxxxxx", "+90xxxxxxxxx"],
    "message": "You can write your message here!",
    "channel": "AWS"
}

Select one of the desired SMS providers (Twilio, AWS, or Figensoft) by specifying the corresponding channel in the request.

standalone-notification-service's People

Contributors

zeynep59 avatar

Watchers

 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.