Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 677 Bytes

ReadMe.md

File metadata and controls

44 lines (32 loc) · 677 Bytes

SFGO

Client for StandardFile written in golang

Implemented the bare minimum to make it work. Do not use for production API might change at any time.

Working:

  • Sync with server
  • Decrypt item
  • Update item
  • Create new item

TODO:

  • Register a user
  • Update a user's password

Example

package main

import (
	sf "github.com/VictorNine/sfgo"
	"fmt"
)

func main() {
	sess := sf.NewSession(
		"https://sync.standardnotes.org",
		"## YOUR EMAIL ##",
	)

	err := sess.Signin("## YOUR PASSWORD ##")
	if err != nil {
		log.Fatal(err)
	}

	log.Println("Login successful!")

	items, _ := sess.Sync()

	fmt.Printf("%+v\n", items)
}