webhook

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 Imported by: 0

README

Webhook

Ini adalah Webhook yang digunakan pada web GIS Adam.

Installment

Silahkan buat Cloud Function di GCP.

Setting API dengan setting berikut:

Gambar 1

Isikan Secret dengan kode sesuka hati.

Isikan Token dengan token yang di generate di website wa.my.id

Next.

Pilih Runtime Go 1.21

Copy Codingan yang ada pada function.go kedalam function.go yang disediakan google.

Berikut codingan : function.go

Pastikan samakan Entry Point dengan functions.HTTP pada func init().

Gambar 2

Deploy dan lihat hasilnya. Selanjutnya silahkan dicoba di APIDocs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LiveLoc added in v1.0.4

func LiveLoc(w http.ResponseWriter, r *http.Request)

func Post

func Post(w http.ResponseWriter, r *http.Request)

func ReverseGeocode added in v1.0.4

func ReverseGeocode(latitude, longitude float64) (string, error)

Types

type Reply added in v1.0.2

type Reply struct {
	Message string `bson:"messsage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL