Skip to content

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"
)
funcmain() {
auth:=splitwise.NewAPIKeyAuth("PUT_YOUR_API_KEY_HERE")
client:=splitwise.NewClient(auth)
currentUser, err:=client.CurrentUser(context.Background())
iferr!=nil {
panic(err)
}
fmt.Println(currentUser)
}

About

Golang SDK for Splitwise 3rd party integration

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages