# README
Splitwise Golang SDK
A community driven Golang SDK for Splitwise 3rd-party APIs.
How to use it?
- You should get the package via
go get
command:
go get -u github.com/anvari1313/splitwise.go
-
Register your application here and obtain an API key for your app.
-
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)
}
# Functions
NewAPIKeyAuth returns a new AuthProvider that is working with API key.
No description provided by the author
NewClient returns a new Client with the given AuthProvider.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
AuthProvider knows how to provide authentication for calling the service APIs.
No description provided by the author
Comments contains methods to access and modify comments on expenses.
Expenses contains method to work with expense resource.
Friends contains method to work with friend resource.
Groups A Group represents a collection of users who share expenses together.
Users resources to access and modify user information.
No description provided by the author