Skip to content

akosmarton/go-frappe-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-frappe-client

Frappe Client in Golang

Example

package main

import (
	"fmt"

	frappe "github.com/akosmarton/go-frappe-client"
)

func main() {
	client := &frappe.Client{
		URL:    "http://localhost:8000",
		Key:    "api key",
		Secret: "api secret",
	}

	doc, err := client.Get("DocType", "Document", nil)
	if err != nil {
		panic(err)
	}

	err = client.AddTag("DocType", doc, "MyTag")
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(doc)
}

Running Tests

# URL="https://demo.erpnext.com" KEY="..." SECRET="..."  go test

About

Frappe Client in Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages