Skip to content

RaaS is an Application Programming Interface that integrates with websites and applications. (TIST and DigitalHumani integration for planting trees using Google form and Zapier)

Notifications You must be signed in to change notification settings

gaurav-convert/RAAS-DigitalHumani-and-TIST-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

RAAS-DigitalHumani-and-TIST

About

Reforestation as a Service(RaaS) is an Application Programming Interface(API) that integrates with websites and applications. It facilitates the interaction between enterprises and reforestation organizations. By automating the donation process with trusted reforestation partners, it enables enterprises to plant trees and track their reforestation efforts.

How it works

1- Choose a reforestation project: You can choose a project from worldwide reforestation organizations list to plant trees (We have chosen “TIST”).

You can find the list of reforestation organizations from all over the world in this document Here.

2- Add Integration or Code to your project: Use integration or add a few lines of code in your website or mobile app to call the API requesting the planting of trees.You can add this on the actions of user in your website or app of your choice(Subscribe to online billing, buying an specific products/services, purchasing from app, etc.)

3- User makes an Action: When a user makes an action on your website or apps(buying, purchasing,subscribing, etc.) a request to plant trees will be made to a trusted organization.

4- Trees are planted: That’s it! You will be billed by the trusted reforestation organization of your choice at a cost of ($1 USD per tree). You will receive an invoice monthly and a report( That specifies how many trees are planted on your behalf).

You can find more information here.

Detailed guide on How to integrate Tree Planting API with Zapier and generates certificate for user

  1. You can get started using the API by registering on the DigitalHumani dashboard at Dashboard. Once signed up, navigate to the “Developer” page to find your API key. You’ll need that key to authenticate with the API.

You can get all the API related detailed information on this Page.

We can use below mentioned API to plant single/multiple trees accordingly.

API - [To plant trees] Request Method - POST

Request Body- (sends data in json format)

      {  
      "treeCount": “Number of trees a user requested to plant”,[Dynamic Value],  
      "enterpriseId": “ID we will get when you Sign Up in digitalhumani.com”,[Static value]  
      "projectId": “Will get this ID when you choose a reforestation project”,[Static value]  
      "user": “End user’s Email  by whom the trees were planted”[Dynamic Value]  
      }  



PostReqDigitalHumani

  1. You can create a Google Form which will be used to collect information like:

    (A) Password-A Password field can be created to limit the access to few users by providing data validation to the Password field.

    TestPassword

    (B) NAME- User Name for TIST Certificate
    (C) Email- User’s email for the request body of the DigitalHumani and TIST API
    (D) Number of Trees wants to plant- treeCount for the request body of the DigitalHumani API

    Form

    Submitting the Google Form will trigger the Zapier’s Flow that hits DigitalHumani and TIST API.

  2. You can create a zap in Zapier using a trigger “New Form Response” comes from Google Form. It will fetch “treeCount” and “User’s email” from the Form Response for the request body of the API.(“enterpriseId” and “projectId” remain static by default).

    Form :

    FormResponse

    Tree Planting API :

    PlantTreeRequest

    Certificate Generation API :

    You can get the TIST API (Provided by the TIST Reforestation Organization support) that sends Tree Plant Certificates to the user's email and organization’s email(Your organization Email)

    CertificateRequest

    Certificate API Request Method:- POST

    Certificate API Request Body:-

     			{  
     			"Name":-  " user name from the Form Response",  
     			"User_email":-  "user’s email from the Form Response where user will receives certificate",   
     			"Company_email":-  "Email of your organization where you also receives a copy of  the user’s certificate",   
     			"Date":-  "Date can also be fetched from the Form Response in DD-MM-YYYY",   
     			"Tree":-  "treeCount from the Form Response",    
     			}
    

You can use Zapier to fetch the attached certificate file from the email and save it in a database as well.

TIST API will send certificates to end users as an appreciation.

About

RaaS is an Application Programming Interface that integrates with websites and applications. (TIST and DigitalHumani integration for planting trees using Google form and Zapier)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published