Skip to content

anvari1313/splitwise.go

Repository files navigation

Splitwise Golang SDK

Test

A community driven Golang SDK for Splitwise 3rd-party APIs.

How to use it?

  1. You should get the package via go get command:
go get -u github.com/anvari1313/splitwise.go
  1. Register your application here and obtain an API key for your app.

  2. Put your API key in your code:

package main

import (
  "context"
  "fmt"

  "github.com/anvari1313/splitwise.go"
)

func main() {
  auth := splitwise.NewAPIKeyAuth("PUT_YOUR_API_KEY_HERE")
  client := splitwise.NewClient(auth)
	
  currentUser, err := client.CurrentUser(context.Background())
  if err != nil {
	  panic(err)
  }
  
  fmt.Println(currentUser)
}

About

Golang SDK for Splitwise 3rd party integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages