Skip to content

Rebilly/hello-world-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World Application

This repository is an example Hello World application. It has already been submitted and is available in App Store sandbox environment. This readme describes how to submit and configure your own version of this application.

Structure

The application is an AWS Lambda function with two handlers:

  • application_enabled: handles webhooks when the app is installed.
  • customer_created: handles webhooks when new customers are added to users accounts in Rebilly.

When this app is installed, it provides discounts to new users.

Configuration in Rebilly

  1. Submit an app to the Rebilly App Store.
  2. Deploy this Lambda function and receive an invocation URL.
  3. In Rebilly, in the left navigation bar, click Automations, then click Rules engine.
  4. Click Core events, and select the Application instance enabled event.
  5. Click Ruleset, go to Binds tab, then click Add Bind.
  6. Complete all fields.
  7. In the Actions section, click Add action, and select Trigger webhook.
  8. Add your invocation URL. Ensure that the URL is in the following format: https://your-api-name.execute-api.your-region.amazonaws.com/Prod/application-enabled.
  9. Click Body, and include an organization identifier of user who installed your app, using the following format:
    {"organizationId":  "{{organizationId}}"}

For more information on developing Rebilly apps, see Rebilly App Store.

Develop and deploy

To develop, run, and deploy your own Lambda function, follow the AWS SAM Reference.

About

Sample Rebilly App Store app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages